change eggSkip variable name more descriptive to eggSkipPreference

This commit is contained in:
KimJeongSun 2024-09-12 17:39:19 +09:00
parent 0a7b2ae273
commit 2c782ddf55
3 changed files with 4 additions and 4 deletions

View File

@ -167,7 +167,7 @@ export default class BattleScene extends SceneBase {
* - 1 = Always * - 1 = Always
* - 2 = Ask * - 2 = Ask
*/ */
public eggSkip: number = 0; public eggSkipPreference: number = 0;
/** /**
* Defines the experience gain display mode. * Defines the experience gain display mode.

View File

@ -31,7 +31,7 @@ export class EggLapsePhase extends Phase {
this.eggHatchData= []; this.eggHatchData= [];
if (eggsToHatchCount > 0) { if (eggsToHatchCount > 0) {
if (eggsToHatchCount >= this.minEggsToPromptSkip && this.scene.eggSkip === 2) { if (eggsToHatchCount >= this.minEggsToPromptSkip && this.scene.eggSkipPreference === 2) {
this.scene.ui.showText(i18next.t("battle:eggHatching"), 0, () => { this.scene.ui.showText(i18next.t("battle:eggHatching"), 0, () => {
// show prompt for skip // show prompt for skip
this.scene.ui.showText(i18next.t("battle:eggSkipPrompt"), 0); this.scene.ui.showText(i18next.t("battle:eggSkipPrompt"), 0);
@ -44,7 +44,7 @@ export class EggLapsePhase extends Phase {
} }
); );
}, 100, true); }, 100, true);
} else if (eggsToHatchCount >= this.minEggsToPromptSkip && this.scene.eggSkip === 1) { } else if (eggsToHatchCount >= this.minEggsToPromptSkip && this.scene.eggSkipPreference === 1) {
this.scene.queueMessage(i18next.t("battle:eggHatching")); this.scene.queueMessage(i18next.t("battle:eggHatching"));
this.hatchEggsSkipped(eggsToHatch); this.hatchEggsSkipped(eggsToHatch);
this.showSummary(); this.showSummary();

View File

@ -749,7 +749,7 @@ export function setSetting(scene: BattleScene, setting: string, value: integer):
scene.skipSeenDialogues = Setting[index].options[value].value === "On"; scene.skipSeenDialogues = Setting[index].options[value].value === "On";
break; break;
case SettingKeys.Egg_Skip: case SettingKeys.Egg_Skip:
scene.eggSkip = value; scene.eggSkipPreference = value;
break; break;
case SettingKeys.Battle_Style: case SettingKeys.Battle_Style:
scene.battleStyle = value; scene.battleStyle = value;