RequirementProfession ​
Inherits: Requirement < Resource
Needs a profession (a craft school): learned, and optionally at a skill level or in a tier.
Description ​
"Needs Blacksmithing 150 (Expert)". Whose profession it is, the party or the character, follows the project setting. Only players have professions.
Properties ​
int | craft_school_id | 0 |
int | min_level | 0 |
int | min_tier | 0 |
Methods ​
bool | check( entity: Entity ) |
String | get_failure_message( entity: Entity ) |
String | get_summary() |
Array[Dictionary] | validate() |
Property descriptions ​
int craft_school_id = 0 ​
The profession
int min_level = 0 ​
The skill level needed (0 = only that the profession is learned)
int min_tier = 0 ​
The tier needed: a number from 0 (0 = any tier)
Method descriptions ​
bool check( entity: Entity ) ​
Does the entity meet the requirement?
String get_failure_message( entity: Entity ) ​
The reason shown when the entity does not meet the requirement.
String get_summary() ​
A short text about the requirement and its settings.
Array[Dictionary] validate() ​
Checks the settings of the requirement. Gives the problems found (empty when it is fine).