Fix Logger

Logging tool now does its job

Removed unnecessary import in `arena-flyout.ts` that was showing an error in the editor
This commit is contained in:
RedstonewolfX 2024-09-03 11:05:18 -04:00
parent 763ec3c1c0
commit f5cea9896c
2 changed files with 10 additions and 2 deletions

View File

@ -221,6 +221,15 @@ export class TurnStartPhase extends FieldPhase {
this.scene.pushPhase(new BerryPhase(this.scene)); this.scene.pushPhase(new BerryPhase(this.scene));
this.scene.pushPhase(new TurnEndPhase(this.scene)); this.scene.pushPhase(new TurnEndPhase(this.scene));
this.scene.arenaFlyout.updateFieldText();
if (LoggerTools.Actions.length > 1 && !this.scene.currentBattle.double) {
LoggerTools.Actions.pop() // If this is a single battle, but we somehow have two actions, delete the second
}
if (LoggerTools.Actions.length > 1 && (LoggerTools.Actions[0] == "" || LoggerTools.Actions[0] == undefined || LoggerTools.Actions[0] == null))
LoggerTools.Actions.shift() // If the left slot isn't doing anything, delete its entry
LoggerTools.logActions(this.scene, this.scene.currentBattle.waveIndex, LoggerTools.Actions.join(" & "))
/** /**
* this.end() will call shiftPhase(), which dumps everything from PrependQueue (aka everything that is unshifted()) to the front * this.end() will call shiftPhase(), which dumps everything from PrependQueue (aka everything that is unshifted()) to the front
* of the queue and dequeues to start the next phase * of the queue and dequeues to start the next phase

View File

@ -11,8 +11,7 @@ import TimeOfDayWidget from "./time-of-day-widget";
import * as Utils from "../utils"; import * as Utils from "../utils";
import i18next, {ParseKeys} from "i18next"; import i18next, {ParseKeys} from "i18next";
import { getNatureDecrease, getNatureIncrease, getNatureName } from "#app/data/nature.js"; import { getNatureDecrease, getNatureIncrease, getNatureName } from "#app/data/nature.js";
import * as LoggerTools from "../logger" import * as LoggerTools from "../logger";
import { BattleEndPhase } from "#app/phases.js";
import { Gender } from "#app/data/gender.js"; import { Gender } from "#app/data/gender.js";
import { getBiomeName } from "#app/data/biomes.js"; import { getBiomeName } from "#app/data/biomes.js";
import { getLuckString } from "#app/modifier/modifier-type.js"; import { getLuckString } from "#app/modifier/modifier-type.js";