Methods
HealItem:getBattleHealAmount(id: string)
Gets the amount of HP this item should restore for a specific character when used in battle
@param id
— The id of the character to get the HP amount for
Arguments:
id: string | The id of the character to get the HP amount for |
Returns:
1: integer |
HealItem:getBattleHealAmountModified(id: string, healer: PartyMember)
Applies Battle:applyHealBonuses()
to the battle heal amount. Can be overriden to disable or change behaviour.
@param id
— The id of the character to get the HP amount for
@param healer
— The party member performing the heal action
Arguments:
id: string | The id of the character to get the HP amount for |
healer: PartyMember | The party member performing the heal action |
Returns:
1: number |
HealItem:getHealAmount(id: string)
Gets the amount of HP this item should restore for a specific character
@param id
— The id of the character to get the HP amount for
Arguments:
id: string | The id of the character to get the HP amount for |
Returns:
1: integer |
HealItem:getWorldHealAmount(id: string)
Gets the amount of HP this item should restore for a specific character when used in the world
@param id
— The id of the character to get the HP amount for
Arguments:
id: string | The id of the character to get the HP amount for |
Returns:
1: integer |
HealItem:onBattleUse(user: PartyBattler, target: Battler[]|EnemyBattler|EnemyBattler[]|PartyBattler|PartyBattler[])
Modified to perform healing based on the set healing amounts
Arguments:
user: PartyBattler |
|
target: Battler[]|EnemyBattler|EnemyBattler[]|PartyBattler|PartyBattler[] |
|
HealItem:onWorldUse(target: PartyMember|PartyMember[])
Modified to perform healing based on the set healing amounts
Arguments:
target: PartyMember|PartyMember[] | The PartyMember class is a type of data class that stores information about a member of the party. |
Returns:
1: boolean |