Power (Reward Type)
Grants an Apoli power to the player while the skill holding this reward is unlocked, and takes it back when the skill is locked or refunded. It is only registered when Pufferfish's Skills is installed.
Type ID: apoli:power
Fields
| Field | Type | Default | Description |
|---|---|---|---|
power | Identifier | required | The power to grant. |
operation | String | add | add grants the power while the skill is unlocked. remove turns that around: the power is held while the skill is locked and dropped once it is unlocked. |
Examples
{
"type": "apoli:power",
"data": {
"power": "example:double_jump"
}
}Unlocking the skill grants example:double_jump, and refunding it takes the power away again.
{
"type": "apoli:power",
"data": {
"power": "example:slow_falling_penalty",
"operation": "remove"
}
}The player carries example:slow_falling_penalty until this skill is unlocked, and then the reward stops granting it.
note
operation: remove can't take away a power the player got from somewhere else, because Apoli powers are held per source and a reward only ever controls its own. It works by granting the power while the skill is locked, so use it for drawbacks the skill tree itself introduces.