SkillPointReward ​
Grants skill points to a specific point pool
Properties ​
int | skill_pool_id | |
int | skill_points_granted | 1 |
Methods ​
Dictionary | apply_to_player( player: Player ) |
bool | unapply_from_player( player: Player, tracking_data: Dictionary ) |
bool | supports_unapply() |
String | get_summary() |
void | set_skill_point_reward( pool: int, points: int ) |
Array[Dictionary] | validate() |
Property descriptions ​
int skill_pool_id ​
The skill point pool that receives the points
int skill_points_granted = 1 ​
How many points the pool receives (above 0)
Method descriptions ​
Dictionary apply_to_player( player: Player ) ​
Gives the reward to the player. Gives back how it went and what it needs to take the reward back.
bool unapply_from_player( player: Player, tracking_data: Dictionary ) ​
Takes the reward back from the player (only for a reward that supports it).
bool supports_unapply() ​
Can the reward be taken back?
String get_summary() ​
A short text about the reward and its settings.
void set_skill_point_reward( pool: int, points: int ) ​
Sets the pool and the number of points the reward gives.
Array[Dictionary] validate() ​
Checks the settings of the reward. Gives the problems found (empty when it is fine).