Skip to content

RequirementSpecialization ​

Inherits: Requirement < Resource

Needs a specialization of a proficiency or a profession (or needs that the character does NOT have it).

Properties ​

KindkindKind.PROFICIENCY
inttarget_id0
intspecialization_id0
boolmust_havetrue

Methods ​

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

Enumerations ​

enum Kind ​

The options of kind: proficiency, profession.

  • PROFICIENCY = 0 - A proficiency (swords, lockpicking)
  • PROFESSION = 1 - A profession (a craft school: blacksmithing)

Property descriptions ​

Kind kind = Kind.PROFICIENCY ​

What the specialization belongs to

int target_id = 0 ​

The id of the proficiency, or of the craft school

int specialization_id = 0 ​

The id of the specialization

bool must_have = true ​

On: the character must have it. Off: the character must not have it

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).