mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 15:22:19 +02:00
change eggSkip variable name more descriptive to eggSkipPreference
This commit is contained in:
parent
0a7b2ae273
commit
2c782ddf55
@ -167,7 +167,7 @@ export default class BattleScene extends SceneBase {
|
||||
* - 1 = Always
|
||||
* - 2 = Ask
|
||||
*/
|
||||
public eggSkip: number = 0;
|
||||
public eggSkipPreference: number = 0;
|
||||
|
||||
/**
|
||||
* Defines the experience gain display mode.
|
||||
|
@ -31,7 +31,7 @@ export class EggLapsePhase extends Phase {
|
||||
this.eggHatchData= [];
|
||||
|
||||
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, () => {
|
||||
// show prompt for skip
|
||||
this.scene.ui.showText(i18next.t("battle:eggSkipPrompt"), 0);
|
||||
@ -44,7 +44,7 @@ export class EggLapsePhase extends Phase {
|
||||
}
|
||||
);
|
||||
}, 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.hatchEggsSkipped(eggsToHatch);
|
||||
this.showSummary();
|
||||
|
@ -749,7 +749,7 @@ export function setSetting(scene: BattleScene, setting: string, value: integer):
|
||||
scene.skipSeenDialogues = Setting[index].options[value].value === "On";
|
||||
break;
|
||||
case SettingKeys.Egg_Skip:
|
||||
scene.eggSkip = value;
|
||||
scene.eggSkipPreference = value;
|
||||
break;
|
||||
case SettingKeys.Battle_Style:
|
||||
scene.battleStyle = value;
|
||||
|
Loading…
Reference in New Issue
Block a user