Skip to content
Aaron edited this page Apr 28, 2018 · 3 revisions

General

  • Item health for destructible items is weight * 100. For artifacts, it's max(price, 50000).
  • Each item has its sell price, which is set at 75% of the base one.
  • Enchantment chances are stored in a 3-item byte array @41724. A random number 1..10 is tested against it. Elements mean: special material, enchantment, material + enchantment

Material bonus

  • Names: szlist @41A6B (8 elements)
  • Bonus: signed byte array @41AA4
  • Chances: byte array @41AAC
  • Price multipliers: WORD array @41CAE (in 1/4s)

Armor

There are 11 types of armor.

Plate

  • Names: szlist @41ABA
  • Quality: byte array @41B51 (the higher the value, the rarer is the item)
  • Base price: byte array @41920
  • Weight: WORD array @41957 (in kg/256)
  • Armor class: 45 + material bonus, except for shields: shieldAC[itemType-ARMOR_BUCKLER] + material bonus; shieldAC is a byte array @47A89.

Chain

  • Names: szlist @41B5C
  • Quality: @41BF3 (huge values for shields prevent their generation)
  • Base price: @41915
  • Weight: @41941
  • Armor class: 30, except for shields

Leather

  • Names: szlist @41BFE
  • Quality: @41CA3
  • Base price: @4190A
  • Weight: @4192B
  • Armor class: 15, except for shields

Enchantments

There are 14 possible enchantments.

  • Names: szlist @41979
  • Quality: @41A41
  • Spells: byte array @41A33. A 255 value means that the attribute bonus must be set instead of the spell.
  • Bonus price: @41A4F

Weapons

There are 18 types of weapons.

  • Names: szlist @41630
  • Quality: @41712
  • Base price: @41700
  • Weight: @416DC
  • Damage: 36-element byte array at @41727 (pairs of minimal/maximal damage); both increased by (material bonus/5)
  • Handness: byte array @416CA

Enchantments

There are likewise 14 possible enchantments.

  • Names: szlist @4174B
  • Quality: @41815
  • Spells: @41807. See the note above.
  • Bonus price: @41823

Trinkets

There are three categories of trinkets: those which cast spells, those which enhance attributes, and those which provide AC. The spellcasting ones are further separated into offensive, defensive and miscellaneous.

Spellcasting items

  • Names: szlist @411FD (marks, crystals, rings)
  • Cumulative chances: @41217
  • Base price: @4121F
  • Charges ranges: 8-element byte array @41227 (min, max+1, ...)
  • Attacking Spells (15):
    • Names: szlist @4122F
    • Quality: @41309
    • Spells: @412FA
    • Price per charge: @41312
  • Defensive Spells (9):
    • Names: szlist @41336
    • Quality: @413B0
    • Spells: @413A7
    • Price per charge: @413B9
  • Misc Spells (8):
    • Names: szlist @413CB
    • Quality: @4143C
    • Spells: @41434
    • Price per charge: @4144C

Enhancement items

  • Names: szlist @41454 (bracelets, etc.)
  • Cumulative chances: @4146E
  • Base price: @41476

Artifacts

Artifacts are organized in two orders: one which is present in game UI, and one which is encoded in the items. The latter order is organized by the function: armor, weapons, trinkets and special unequippable artifacts.

  • Names (in logical order):
  • Names (in item order):
  • Spells:
  • Materials:
Clone this wiki locally