Skip to content

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[]
boolrequire_allfalse
boolinvertfalse

Methods ​

boolevaluate_entity( entity: Entity )
Stringget_entity_description()
Stringget_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.