Skip to content

RequirementProficiency ​

Inherits: Requirement < Resource

Requires a level in a proficiency (swords, heavy armor, lockpicking): "needs Plate 25 to wear this". Only players have proficiencies; any other entity has the starting level.

Properties ​

intproficiency_id0
intrequired_level1
intmin_tier0

Methods ​

boolcheck( entity: Entity )
Stringget_failure_message( entity: Entity )
Stringget_summary()
voidconnect_to_entity_signals( entity: Entity )
voiddisconnect_from_entity_signals( entity: Entity )
Array[Dictionary]validate()

Property descriptions ​

int proficiency_id = 0 ​

The proficiency

int required_level = 1 ​

The level the entity needs

int min_tier = 0 ​

The tier the entity needs to be in, 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.

void connect_to_entity_signals( entity: Entity ) ​

Connect to the level changes of the player's proficiencies, so the answer is asked again when one changes

void disconnect_from_entity_signals( entity: Entity ) ​

Stop listening to the proficiencies of the entity

Array[Dictionary] validate() ​

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