[fix] add description for the manageItemMode function

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
This commit is contained in:
Mikhail Shueb 2025-07-30 08:04:37 +01:00 committed by GitHub
parent f631072828
commit e10f0f2ee7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -987,6 +987,11 @@ export class PartyUiHandler extends MessageUiHandler {
return !(this.partyUiMode === PartyUiMode.FAINT_SWITCH || this.partyUiMode === PartyUiMode.REVIVAL_BLESSING);
}
/**
* Return whether this UI handler is responsible for managing items.
* Used to ensure proper placement of mode toggle buttons in the UI, etc.
* @returns Whether the current handler is responsible for managing items.
*/
private isItemManageMode(): boolean {
return this.partyUiMode === PartyUiMode.MODIFIER_TRANSFER || this.partyUiMode === PartyUiMode.DISCARD;
}