Updated Store Tutorial Gold Qualifier

This commit is contained in:
Brian Fertig 2026-04-01 10:23:46 -06:00
parent 307704b90d
commit 7513cb2bf5
3 changed files with 3 additions and 3 deletions

View File

@ -977,7 +977,7 @@ export class BattleResultScene extends Phaser.Scene {
// Stage 5 tutorial redirect: if player has enough gold and hasn't seen store tutorial yet // Stage 5 tutorial redirect: if player has enough gold and hasn't seen store tutorial yet
const save = this.registry.get('save'); const save = this.registry.get('save');
const needsStoreTutorial = save.gold > 400 && const needsStoreTutorial = save.gold >= 400 &&
!TutorialManager.isStageComplete(save, TutorialManager.STAGES.STORE_INTRO); !TutorialManager.isStageComplete(save, TutorialManager.STAGES.STORE_INTRO);
if (needsStoreTutorial) { if (needsStoreTutorial) {
this.scene.start('MainMenuScene'); this.scene.start('MainMenuScene');

View File

@ -144,7 +144,7 @@ export class MainMenuScene extends Phaser.Scene {
if (!TutorialManager.isStageComplete(save, TutorialManager.STAGES.CAMPAIGN_INTRO)) { if (!TutorialManager.isStageComplete(save, TutorialManager.STAGES.CAMPAIGN_INTRO)) {
this._showCampaignIntroTutorial(save); this._showCampaignIntroTutorial(save);
} else if ( } else if (
save.gold > 400 && save.gold >= 400 &&
!TutorialManager.isStageComplete(save, TutorialManager.STAGES.STORE_INTRO) !TutorialManager.isStageComplete(save, TutorialManager.STAGES.STORE_INTRO)
) { ) {
this._showStoreIntroTutorial(save); this._showStoreIntroTutorial(save);

View File

@ -542,7 +542,7 @@ export class StoreScene extends Phaser.Scene {
_showTutorial() { _showTutorial() {
if (TutorialManager.isStageComplete(this.save, TutorialManager.STAGES.STORE_INTRO)) return; if (TutorialManager.isStageComplete(this.save, TutorialManager.STAGES.STORE_INTRO)) return;
if (this.save.gold <= 400) return; if (this.save.gold < 400) return;
const { width, height } = this.scale; const { width, height } = this.scale;
const DEPTH = 1000; const DEPTH = 1000;