Browse Source

fixed player supporting global

tags/v1.5.0
argo neus louis <louis@poweris.moe> 4 years ago
parent
commit
bdc076b664
Signed by: louis <louis@poweris.moe> GPG Key ID: 44D7E1DE4E23D6F2
3 changed files with 6 additions and 4 deletions
  1. +2
    -2
      Js/Main.js
  2. +1
    -1
      Js/Translations
  3. +3
    -1
      Js/UtageParse.js

+ 2
- 2
Js/Main.js View File

@@ -142,7 +142,7 @@ function buildQuestSelectList() {
let tl_key = utage.questTranslations[cust][q.QuestMstId];
if (!tl_key) {
console.log("Failed to build quest list: missing translations");
return;
continue;
}
if (!tl_key.Enabled && !utage.quests[cust][q.QuestMstId].Scenes.some((s) => { return utage.sceneTranslations[cust][s].Enabled === true })) {
continue;
@@ -191,7 +191,7 @@ function buildSceneSelectList() {
let tl_key = utage.sceneTranslations[cust][questSceneMstId];
if (!tl_key) {
console.log("Failed to build scene list: missing translations");
return;
continue;
}
if (!tl_key.Enabled) {
continue;


+ 1
- 1
Js/Translations

@@ -1 +1 @@
Subproject commit 178ec9be36f504418d6aae0bb099d5006bd4186a
Subproject commit ac0bfbd699431e9befdd843379e7c91ad1014cec

+ 3
- 1
Js/UtageParse.js View File

@@ -141,7 +141,9 @@ class UtageInfo {
for (const k of Object.keys(this.questTranslationsInner[this.currentTranslation][c])) {
if (this.questTranslationsInner[this.currentTranslation][c][k].Enabled) {
for (const s of this.quests[c][k].Scenes) {
this.sceneTranslationsInner[this.currentTranslation][c][s].Enabled = true;
if (c in this.sceneTranslationsInner[this.currentTranslation] && s in this.sceneTranslationsInner[this.currentTranslation][c]) {
this.sceneTranslationsInner[this.currentTranslation][c][s].Enabled = true;
}
}
}
}


Loading…
Cancel
Save