Item.toolType

Gets the item's tool type.

class Item
pure nothrow @property @safe @nogc
ubyte
toolType
()

Return Value

Type: ubyte

Tools.none if the item is not a tool or a number higher than 0 indicating the tool type.

Examples

assert(new Items.Beetroot().toolType == Tools.none);
assert(new Items.DiamondSword().toolType == Tools.sword);

Meta