Fix zoom out for large sprites and trade full heal for elixir in shop

This commit is contained in:
Flashfyre 2024-03-24 17:32:44 -04:00
parent 133c1c364a
commit f87dbcbac3
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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)
],
[