Added some TODOs

This commit is contained in:
Wlowscha 2025-05-14 09:38:25 +02:00
parent ee4cb23c44
commit b46d890689
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -51,6 +51,7 @@ export enum PartyUiMode {
* Indicates that the party UI is open because of a start-of-encounter optional * Indicates that the party UI is open because of a start-of-encounter optional
* switch. This type of switch can be cancelled. * switch. This type of switch can be cancelled.
*/ */
// TODO: Rename to PRE_BATTLE_SWITCH
POST_BATTLE_SWITCH, POST_BATTLE_SWITCH,
/** /**
* Indicates that the party UI is open because of the move Revival Blessing. * Indicates that the party UI is open because of the move Revival Blessing.
@ -870,6 +871,7 @@ export default class PartyUiHandler extends MessageUiHandler {
} }
// Pressing return button // Pressing return button
if (this.cursor === 6) { if (this.cursor === 6) {
// TODO: define an "allowCancel (PartyUiMode) method to check here and below"
if (this.partyUiMode === PartyUiMode.FAINT_SWITCH || this.partyUiMode === PartyUiMode.REVIVAL_BLESSING) { if (this.partyUiMode === PartyUiMode.FAINT_SWITCH || this.partyUiMode === PartyUiMode.REVIVAL_BLESSING) {
ui.playError(); ui.playError();
} else { } else {
@ -1100,6 +1102,7 @@ export default class PartyUiHandler extends MessageUiHandler {
); );
} }
// TODO: add FORCED_SWITCH (and perhaps also BATON_PASS_SWITCH) to the modes
isBatonPassMove(): boolean { isBatonPassMove(): boolean {
const moveHistory = globalScene.getPlayerField()[this.fieldIndex].getMoveHistory(); const moveHistory = globalScene.getPlayerField()[this.fieldIndex].getMoveHistory();
return !!( return !!(