Weapons

Weapons are assigned to Units and provide them with an Autoattack.

The "Period" of the Weapon will be the Autoattack speed of the Unit.

The Weapon is also configured with a Projectile. Even melee weapons require a projectile (It is still up to the user to configure an invisible projectile).

There is no difference between melee and ranged weapons other than the range of the weapon.

Assigning a Weapon to a Unit

"Innate" Weapon

When you fill the Weapon field of the Unit in the Data Editor then the Unit will have this Weapon assigned at the Unit’s birth.

When you leave this field empty, you can still give the unit a weapon by equipping an Item.

Equipped Weapon

To equip a weapon, the following criteria have to be met:

  • The unit has an Item in one of its inventories whose "Equip Weapon" field is not empty.

  • That item is in an Inventory slot whose "equip" flag is true.

Equipping a weapon via an Item will discard the existing "innate" weapon if any.

Multiple Weapons

While it is possible to model your data so that a unit can have multiple usable weapons at the same time, multiple usable weapons on a unit are not yet supported.

Currently, a Unit can only have one Weapon.