Added some TODOs for later

This commit is contained in:
Wlowscha 2025-05-13 22:27:13 +02:00
parent e8de3054fe
commit e4a550550e
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -764,6 +764,7 @@ export default class PartyUiHandler extends MessageUiHandler {
if (option === PartyOption.SPLICE) { if (option === PartyOption.SPLICE) {
(this.selectCallback as PartyModifierSpliceSelectCallback)(this.transferCursor, this.cursor); (this.selectCallback as PartyModifierSpliceSelectCallback)(this.transferCursor, this.cursor);
this.clearTransfer(); this.clearTransfer();
// TODO: Surely this else should specify some other option too...
} else { } else {
this.startTransfer(); this.startTransfer();
} }
@ -778,6 +779,7 @@ export default class PartyUiHandler extends MessageUiHandler {
selectCallback(this.cursor, option); selectCallback(this.cursor, option);
} }
} else { } else {
// TODO: Where is the value for option set in this case?
if (option >= PartyOption.FORM_CHANGE_ITEM && globalScene.getCurrentPhase() instanceof SelectModifierPhase) { if (option >= PartyOption.FORM_CHANGE_ITEM && globalScene.getCurrentPhase() instanceof SelectModifierPhase) {
if (this.partyUiMode === PartyUiMode.CHECK) { if (this.partyUiMode === PartyUiMode.CHECK) {
const formChangeItemModifiers = this.getFormChangeItemsModifiers(pokemon); const formChangeItemModifiers = this.getFormChangeItemsModifiers(pokemon);
@ -785,6 +787,7 @@ export default class PartyUiHandler extends MessageUiHandler {
modifier.active = !modifier.active; modifier.active = !modifier.active;
globalScene.triggerPokemonFormChange(pokemon, SpeciesFormChangeItemTrigger, false, true); globalScene.triggerPokemonFormChange(pokemon, SpeciesFormChangeItemTrigger, false, true);
} }
// TODO: Not clear at all... why are we passing the baton here?
} else if (this.cursor) { } else if (this.cursor) {
(globalScene.getCurrentPhase() as CommandPhase).handleCommand( (globalScene.getCurrentPhase() as CommandPhase).handleCommand(
Command.POKEMON, Command.POKEMON,