From f87dbcbac32808d37d73a019a96ae4b1749cd2f1 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 24 Mar 2024 17:32:44 -0400 Subject: [PATCH] Fix zoom out for large sprites and trade full heal for elixir in shop --- src/battle-scene.ts | 4 ++-- src/modifier/modifier-type.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/battle-scene.ts b/src/battle-scene.ts index ba70415da..39f47fe05 100644 --- a/src/battle-scene.ts +++ b/src/battle-scene.ts @@ -965,9 +965,9 @@ export default class BattleScene extends Phaser.Scene { return resolve(); const defaultWidth = this.arenaBg.width * 6; - const defaultHeight = this.arenaBg.height * 6; + const defaultHeight = 132 * 6; const scaledWidth = this.arenaBg.width * scale; - const scaledHeight = this.arenaBg.height * scale; + const scaledHeight = 132 * scale; this.tweens.add({ targets: this.field, diff --git a/src/modifier/modifier-type.ts b/src/modifier/modifier-type.ts index 5813c0a9c..b74262e05 100644 --- a/src/modifier/modifier-type.ts +++ b/src/modifier/modifier-type.ts @@ -1267,10 +1267,10 @@ export function getPlayerShopModifierTypeOptionsForWave(waveIndex: integer, base ], [ new ModifierTypeOption(modifierTypes.SUPER_POTION(), 0, baseCost * 0.45), - new ModifierTypeOption(modifierTypes.ELIXIR(), 0, baseCost) + new ModifierTypeOption(modifierTypes.FULL_HEAL(), 0, baseCost), ], [ - new ModifierTypeOption(modifierTypes.FULL_HEAL(), 0, baseCost), + new ModifierTypeOption(modifierTypes.ELIXIR(), 0, baseCost), new ModifierTypeOption(modifierTypes.MAX_ETHER(), 0, baseCost) ], [