EquippedWeaponTypeCondition ​
Inherits: EntityCondition < Condition < Resource
Checks the weapons an entity holds: "holds a one-handed weapon". On a stat effect it makes a skill work only with its own weapon type (a Weapon Skill stat that raises the hit chance only while a sword is held). A disarmed entity holds nothing.
Properties ​
Array[int] | weapon_type_ids | [] |
bool | require_all | false |
bool | invert | false |
Methods ​
bool | evaluate_entity( entity: Entity ) |
String | get_entity_description() |
String | get_entity_function_description() |
Property descriptions ​
Array[int] weapon_type_ids = [] ​
The weapon types to look for (WeaponTypeDefinition ids)
bool require_all = false ​
True: the entity must hold a weapon of every type. False: one of them is enough
bool invert = false ​
True: the condition is met when the entity holds none of these types (no sword in hand)
Method descriptions ​
bool evaluate_entity( entity: Entity ) ​
Is the condition met for this entity?
String get_entity_description() ​
A short text about what the condition checks on the entity.
String get_entity_function_description() ​
The sentence the editor shows for the condition, with {placeholders} for its values.