mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-26 17:29:30 +02:00
Update phases.ts
This commit is contained in:
parent
20a9362a1b
commit
f4ca84944f
@ -891,6 +891,11 @@ export class TitlePhase extends Phase {
|
|||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
label: "Manage Logs (Old Menu)",
|
||||||
|
handler: () => {
|
||||||
|
return this.logRenameMenu()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
options.push({
|
options.push({
|
||||||
label: i18next.t("menu:loadGame"),
|
label: i18next.t("menu:loadGame"),
|
||||||
@ -1569,6 +1574,7 @@ export class EncounterPhase extends BattlePhase {
|
|||||||
LoggerTools.rarities.pop()
|
LoggerTools.rarities.pop()
|
||||||
}
|
}
|
||||||
LoggerTools.rarityslot[0] = 0
|
LoggerTools.rarityslot[0] = 0
|
||||||
|
//console.log(this.scene.gameMode.getDailyOverride())
|
||||||
battle.enemyLevels.forEach((level, e) => {
|
battle.enemyLevels.forEach((level, e) => {
|
||||||
if (!this.loaded) {
|
if (!this.loaded) {
|
||||||
if (battle.battleType === BattleType.TRAINER) {
|
if (battle.battleType === BattleType.TRAINER) {
|
||||||
@ -3450,7 +3456,6 @@ export class TurnStartPhase extends FieldPhase {
|
|||||||
//this.scene.unshiftPhase(new AttemptCapturePhase(this.scene, turnCommand.targets[0] % 2, turnCommand.cursor));
|
//this.scene.unshiftPhase(new AttemptCapturePhase(this.scene, turnCommand.targets[0] % 2, turnCommand.cursor));
|
||||||
break;
|
break;
|
||||||
case Command.POKEMON:
|
case Command.POKEMON:
|
||||||
LoggerTools.Actions[pokemon.getBattlerIndex()] = ((turnCommand.args[0] as boolean) ? "Baton" : "Switch")
|
|
||||||
break;
|
break;
|
||||||
case Command.RUN:
|
case Command.RUN:
|
||||||
LoggerTools.Actions[pokemon.getBattlerIndex()] = "Run"
|
LoggerTools.Actions[pokemon.getBattlerIndex()] = "Run"
|
||||||
@ -3594,6 +3599,7 @@ export class TurnStartPhase extends FieldPhase {
|
|||||||
this.scene.unshiftPhase(new AttemptCapturePhase(this.scene, turnCommand.targets[0] % 2, turnCommand.cursor));
|
this.scene.unshiftPhase(new AttemptCapturePhase(this.scene, turnCommand.targets[0] % 2, turnCommand.cursor));
|
||||||
break;
|
break;
|
||||||
case Command.POKEMON:
|
case Command.POKEMON:
|
||||||
|
LoggerTools.Actions[pokemon.getBattlerIndex()] = ((turnCommand.args[0] as boolean) ? "Baton" : "Switch") + " " + LoggerTools.playerPokeName(this.scene, pokemon) + " to " + LoggerTools.playerPokeName(this.scene, turnCommand.cursor)
|
||||||
this.scene.unshiftPhase(new SwitchSummonPhase(this.scene, pokemon.getFieldIndex(), turnCommand.cursor, true, turnCommand.args[0] as boolean, pokemon.isPlayer()));
|
this.scene.unshiftPhase(new SwitchSummonPhase(this.scene, pokemon.getFieldIndex(), turnCommand.cursor, true, turnCommand.args[0] as boolean, pokemon.isPlayer()));
|
||||||
break;
|
break;
|
||||||
case Command.RUN:
|
case Command.RUN:
|
||||||
@ -5941,8 +5947,7 @@ export class SwitchPhase extends BattlePhase {
|
|||||||
if (slotIndex >= this.scene.currentBattle.getBattlerCount() && slotIndex < 6) {
|
if (slotIndex >= this.scene.currentBattle.getBattlerCount() && slotIndex < 6) {
|
||||||
if (LoggerTools.isPreSwitch.value) {
|
if (LoggerTools.isPreSwitch.value) {
|
||||||
LoggerTools.logActions(this.scene, this.scene.currentBattle.waveIndex, "Pre-switch " + (option == PartyOption.PASS_BATON ? "+ Baton" : "") + " " + LoggerTools.playerPokeName(this.scene, fieldIndex) + " to " + LoggerTools.playerPokeName(this.scene, slotIndex))
|
LoggerTools.logActions(this.scene, this.scene.currentBattle.waveIndex, "Pre-switch " + (option == PartyOption.PASS_BATON ? "+ Baton" : "") + " " + LoggerTools.playerPokeName(this.scene, fieldIndex) + " to " + LoggerTools.playerPokeName(this.scene, slotIndex))
|
||||||
}
|
} else if (LoggerTools.isFaintSwitch.value) {
|
||||||
if (LoggerTools.isFaintSwitch.value) {
|
|
||||||
LoggerTools.logActions(this.scene, this.scene.currentBattle.waveIndex, (option == PartyOption.PASS_BATON ? "Baton" : "Send") + " in " + LoggerTools.playerPokeName(this.scene, slotIndex))
|
LoggerTools.logActions(this.scene, this.scene.currentBattle.waveIndex, (option == PartyOption.PASS_BATON ? "Baton" : "Send") + " in " + LoggerTools.playerPokeName(this.scene, slotIndex))
|
||||||
} else {
|
} else {
|
||||||
//LoggerTools.Actions[this.scene.getParty()[fieldIndex].getBattlerIndex()] += " to " + LoggerTools.playerPokeName(this.scene, slotIndex)
|
//LoggerTools.Actions[this.scene.getParty()[fieldIndex].getBattlerIndex()] += " to " + LoggerTools.playerPokeName(this.scene, slotIndex)
|
||||||
|
Loading…
Reference in New Issue
Block a user