Skip to main content

ItemData

ItemData struct

Properties​

id: number​

Item ID

name: string​

Item name

displayName: string​

Display name

spellName: string​

Spell name

description: string​

Item description

tooltip: string​

Tooltip string key argument to be used in Game.TranslateString function.

price: number​

Item price in the shop

Functions​

GetCalculateInfo​

ItemData:GetCalculateInfo(
  source: AIBaseClient,
  hash: number - integer
) → number

ArgumentTypeDescription
sourceAIBaseClientSouce for calculate.
hashnumber - integerCalculation name hash.

Returns calculation result similar to SpellBookEntry.GetCalculateInfo