Item.finished

If the item is a tool, checks whether its damage is higher than its durability.

class Item
pure nothrow @property @safe @nogc
bool
finished
()

Examples

assert(new Items.Beetroot().finished == false); // beetroots aren't tools
assert(new Items.DiamondSword().finished == false);
assert(new Items.DiamondSword(Items.DiamondSword.DURABILITY + 1).finished == true);

Meta