Item.attack

Indicates the damage caused by the item when used as a weapon. The value indicates the base damage without the influence of enchantments or effects.

class Item
pure nothrow @property @safe @nogc
uint
attack
()

Examples

if(item.attack > 1)
   assert(item.tool);

Meta