Skip to content

RequirementKnowsRecipe ​

Inherits: Requirement < Resource

Needs the character to know a crafting recipe (learned, or given by the profession, or by a specialization).

Properties ​

intrecipe_id0

Methods ​

boolcheck( entity: Entity )
Stringget_failure_message( _entity: Entity )
Stringget_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).