Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DestinyInventoryItemStatDefinition

Defines a specific stat value on an item, and the minimum/maximum range that we could compute for the item based on our heuristics for how the item might be generated.

Not guaranteed to match real-world instances of the item, but should hopefully at least be close. If it's not close, let us know on the Bungie API forums.

Hierarchy

  • DestinyInventoryItemStatDefinition

Index

Properties

maximum

maximum: number

The maximum possible value for this stat that we think the item can roll.

WARNING: In Destiny 1, this field was calculated using the potential stat rolls on the item's talent grid. In Destiny 2, items no longer have meaningful talent grids and instead have sockets: but the calculation of this field was never altered to adapt to this change. As such, this field should be considered deprecated until we can address this oversight.

minimum

minimum: number

The minimum possible value for this stat that we think the item can roll.

statHash

statHash: number

The hash for the DestinyStatDefinition representing this stat.

Mapped to DestinyStatDefinition in the manifest.

value

value: number

This value represents the stat value assuming the minimum possible roll but accounting for any mandatory bonuses that should be applied to the stat on item creation.

In Destiny 1, this was different from the "minimum" value because there were certain conditions where an item could be theoretically lower level/value than the initial roll.

In Destiny 2, this is not possible unless Talent Grids begin to be used again for these purposes or some other system change occurs... thus in practice, value and minimum should be the same in Destiny 2. Good riddance.