Skip to content

RequirementAbilityRank ​

Inherits: Requirement < Resource

Needs the ability that uses the effect to be at a rank: put it on an effect of an ability so that rank 3 adds the burn and rank 5 the second projectile.

Description ​

Only an effect that an ability uses has a rank to ask about. Anywhere else (no ability to ask) the requirement is met.

Properties ​

intmin_rank2
intmax_rank0

Methods ​

boolcheck( _entity: Entity )
boolcheck_in_context( _entity: Entity, context: Dictionary )
Stringget_failure_message( _entity: Entity )
Stringget_failure_message_in_context( _entity: Entity, context: Dictionary )
Stringget_summary()
Array[Dictionary]validate()

Property descriptions ​

int min_rank = 2 ​

The lowest rank the ability must have

int max_rank = 0 ​

The highest rank (0 = no limit): an effect that is replaced by a better one above a rank

Method descriptions ​

bool check( _entity: Entity ) ​

Does the entity meet the requirement?

bool check_in_context( _entity: Entity, context: Dictionary ) ​

Is the ability at the rank? It passes when there is no rank in the context.

String get_failure_message( _entity: Entity ) ​

The reason shown when the entity does not meet the requirement.

String get_failure_message_in_context( _entity: Entity, context: Dictionary ) ​

The reason shown when the ability is not at the rank.

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