RequirementKnowsRecipe ​
Inherits: Requirement < Resource
Needs the character to know a crafting recipe (learned, or given by the profession, or by a specialization).
Properties ​
int | recipe_id | 0 |
Methods ​
bool | check( entity: Entity ) |
String | get_failure_message( _entity: Entity ) |
String | get_summary() |
Array[Dictionary] | validate() |
Property descriptions ​
int recipe_id = 0 ​
The recipe
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).