Properties

PropertyTypeDescription
typeEquipment.TypeThe inventory slot this equipment occupies.
twoHandedboolWhen true, equipping this item also occupies the Shield slot.
statsIReadOnlyList<Equipment.StatValue>Passive stat bonuses granted while this item is equipped.

Methods

MethodReturnsDescription
GetStatValue(Stat stat)intReturns the bonus this equipment contributes to stat, or 0 if it does not affect that stat.

Equipment.Type

Enum that controls which inventory slot the equipment occupies.

ValueSlot
WeaponMain-hand weapon slot. If twoHanded is true, also occupies the Shield slot.
ShieldOff-hand shield slot.
HelmetHead armour slot.
ArmorBody armour slot.
BootsFoot armour slot.

Equipment.StatValue

Serializable inner class. Pairs a Stat asset with a numeric bonus. Configured in the Equipment Inspector under the Stats list.

PropertyTypeDescription
statStatThe stat asset this entry modifies.
valueintThe numeric bonus. Positive values increase the stat; negative values reduce it.

Create an Equipment

  1. In the Project window right-click Assets/Scriptable Objects/Items/Create → Loop Adventure → Inventory → Equipment.
  2. Fill in the shared Item fields: displayName, description, and image.
  3. Set type to the appropriate slot (Weapon, Shield, Helmet, Armor, or Boots).
  4. Enable twoHanded if equipping this weapon should also block the Shield slot.
  5. In the Stats list click + and add one StatValue entry per bonus: assign a Stat asset and set the numeric bonus (positive to increase, negative to reduce).
  6. Register the asset in the ItemsReferences collection.