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 ​
int | min_rank | 2 |
int | max_rank | 0 |
Methods ​
bool | check( _entity: Entity ) |
bool | check_in_context( _entity: Entity, context: Dictionary ) |
String | get_failure_message( _entity: Entity ) |
String | get_failure_message_in_context( _entity: Entity, context: Dictionary ) |
String | get_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).