Skip to content

CraftingSkillPointReward ​

Inherits: Reward < Resource

Grants skill levels to a crafting school via the CraftingManager of the party

Properties ​

intcraft_school_id0
intskill_points1

Methods ​

Dictionaryapply_to_player( player: Player )
boolunapply_from_player( player: Player, tracking_data: Dictionary )
boolsupports_unapply()
Stringget_summary()
voidset_skill_reward( new_school: int, new_points: int = 1 )
Array[Dictionary]validate()

Property descriptions ​

int craft_school_id = 0 ​

The crafting school that gains skill

int skill_points = 1 ​

How many skill levels the school gains (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_reward( new_school: int, new_points: int = 1 ) ​

Sets the craft school and the number of levels the reward gives.

Array[Dictionary] validate() ​

Checks the settings of the reward. Gives the problems found (empty when it is fine).