tab -> spaces final (maybe)

This commit is contained in:
Greenlamp 2024-05-03 18:59:46 +02:00
parent 62e4ff7b33
commit 7715dbd993

View File

@ -203,24 +203,24 @@ export default class BattleScene extends SceneBase {
async preload() { async preload() {
this.load.scenePlugin('inputController', InputsController); this.load.scenePlugin('inputController', InputsController);
this.load.scenePlugin('uiInputs', UiInputs); this.load.scenePlugin('uiInputs', UiInputs);
if (DEBUG_RNG) { if (DEBUG_RNG) {
const scene = this; const scene = this;
const originalRealInRange = Phaser.Math.RND.realInRange; const originalRealInRange = Phaser.Math.RND.realInRange;
Phaser.Math.RND.realInRange = function (min: number, max: number): number { Phaser.Math.RND.realInRange = function (min: number, max: number): number {
const ret = originalRealInRange.apply(this, [ min, max ]); const ret = originalRealInRange.apply(this, [ min, max ]);
const args = [ 'RNG', ++scene.rngCounter, ret / (max - min), `min: ${min} / max: ${max}` ]; const args = [ 'RNG', ++scene.rngCounter, ret / (max - min), `min: ${min} / max: ${max}` ];
args.push(`seed: ${scene.rngSeedOverride || scene.waveSeed || scene.seed}`); args.push(`seed: ${scene.rngSeedOverride || scene.waveSeed || scene.seed}`);
if (scene.rngOffset) if (scene.rngOffset)
args.push(`offset: ${scene.rngOffset}`); args.push(`offset: ${scene.rngOffset}`);
console.log(...args); console.log(...args);
return ret; return ret;
}; };
} }
populateAnims(); populateAnims();
await this.initVariantData(); await this.initVariantData();
} }
create() { create() {
initGameSpeed.apply(this); initGameSpeed.apply(this);