ProfessionReward ​
Teaches the player a profession (a craft school): a blacksmith trainer, a quest that opens alchemy. It can give levels in it too.
Description ​
A profession that is learned from the start (CraftSchoolDefinition.starts_learned) is known already; this reward is for the ones that are not. Whose profession it is, the party or the character, follows the project setting. See docs/systems/skill-trainers.md, section 3.8.
Properties ​
int | craft_school_id | 0 |
int | levels | 0 |
Methods ​
Dictionary | apply_to_player( player: Player ) |
bool | unapply_from_player( player: Player, tracking_data: Dictionary ) |
bool | supports_unapply() |
String | get_summary() |
Array[Dictionary] | validate() |
Property descriptions ​
int craft_school_id = 0 ​
The profession
int levels = 0 ​
Skill levels to give with it (0 = none)
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.
Array[Dictionary] validate() ​
Checks the settings of the reward. Gives the problems found (empty when it is fine).