Skip to main content

LootValue

A class in Root.Township, the global namespace.

An item's loot value tier, as an asset. Items compare by its number, and it sets the tint of docks holding the item.

Constructors​

MemberWhat it is
LootValue()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private Color dockColorTintBacking field for DockColorTint.
private int valueThe number values are compared by.

Properties​

MemberWhat it is
Color DockColorTint { get; }Colour tint a dock shows when holding an item of this value.
override string SubFolder { get; }Asset sub folder for these assets (Items/).

Methods​

MemberWhat it is
static bool op_GreaterThan(LootValue valueA, LootValue ValueB)True if the first value's number is higher.
static bool op_LessThan(LootValue valueA, LootValue ValueB)True if the first value's number is lower.

Used in​

Members of other types that take, return or hold a LootValue: