SkillTierReward ​
Trains a proficiency or a profession into a tier (Journeyman, Expert, Master): the cap of its level goes up.
Description ​
It only raises: a character already in that tier, or a higher one, keeps it. The lessons of a trainer and quests give it. See docs/systems/skill-trainers.md, section 3.4.
Properties ​
Kind | kind | Kind.PROFICIENCY |
int | target_id | 0 |
int | tier_index | 1 |
Methods ​
Dictionary | apply_to_player( player: Player ) |
bool | unapply_from_player( player: Player, tracking_data: Dictionary ) |
bool | supports_unapply() |
Array[SkillTier] | get_tiers() |
String | get_summary() |
Array[Dictionary] | validate() |
Enumerations ​
enum Kind ​
The options of kind: proficiency, profession.
- PROFICIENCY =
0- A proficiency (swords, lockpicking) - PROFESSION =
1- A profession (a craft school: blacksmithing)
Property descriptions ​
Kind kind = Kind.PROFICIENCY ​
What is trained
int target_id = 0 ​
The id of the proficiency, or of the craft school
int tier_index = 1 ​
The tier to put it in: a number from 0 (0 = the first tier)
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?
Array[SkillTier] get_tiers() ​
The tiers of the target
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).