Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 0000 TItem struc ; (sizeof=0xa0)
- 0000 ItemType dd ? ; enum enItemType --confirmed, all items
- 0004 Identified dd ? -- confirm, ever wielded, boolean, all items (even gold though hidden) ; 1 = IDed
- 0008 IdentifiedBUC dd ? --confirmed, boolean, all items (even gold though hidden)
- 000C CanRot dd ? --WRONG! this is boolean, set to 1 on a food item if rottenness_known, if it is 1 and !knowBUC, display (rottedness). May have other uses
- 0010 Cooked dd ? -- confirmed, boolean, all items
- 0014 field_14 dd ? -- appraised_at_level; this holds your Appraisal skill when an appraisal check was last made against this item; you won't get another check until your skill changes
- 0018 field_18 dd ? -- this is actually appraised, a bool, it is set to true when an item is appraised; appraisal values are not stored and are computed when needed
- 001C BUCStatus dd ? --confirmed ; 0-cursed, 1-uncursed, 2-blessed
- 0020 Name db 32 dup(?) -- for the jet-black battle axe "Executor", etc; confirmed, empty if unused, all items
- 0040 SpecialEffect1 dd ? -- prefix for all items, -1 if unused ; enum enItemSpecialEffects1
- 0044 SpecialEffect2 dd ? -- suffix for body armors and 1h/2h weapons, -1 if unused ; enum enItemSpecialEffects2
- 0048 PV dd ? -- confirmed as used for bracers, shields, armor, helm, gloves, cloak, girdle, boots, ring/amulet of protection, Aylas Holy Scarf, black torc, weapons, launchers, if item has affects PV/DV set
- 004C DV dd ? -- confirmed as used for bracers, shields, armor, helm, gloves, cloak, girdle, boots, ring/amulet of defense, Aylas Holy Scarf, black torc, weapons, launchers, if item has affects PV/DV set
- 0050 MeleeToHit dd ? -- confirmed for shields, armor, helm, gloves, cloak, girdle, boots, weapons
- 0054 MeleeToDamageDice4 dd ? ; D in (AdB/C)+D
- -- I would call this melee_plusdam, used by ring of slaying, weapons
- 0058 MeleeToDamageDice1 dd ? ; A in (AdB/C)+D
- -- melee_sides, confirmed for melee weapons
- 005C MeleeToDamageDice12 dd ? ; A*B in (AdB/C)+D
- -- melee_dicedam, confirmed for melee weapons
- 0060 MissileToHit dd ? -- confirmed for armor, helm, glove, cloak, girdle, boots, launchers, ammo
- 0064 MissileToDamageDice4 dd ? ; D in (AdB/C)+D
- -- I would call this missile_plusdam, used by ring of slaying and launchers and ammo
- 0068 MissileToDamageDice1 dd ? -- confirmed ; A in (AdB/C)+D
- 006C MissileToDamageDice12 dd ? --confirmed ; A*B in (AdB/C)+D
- 0070 Charges dd ? -- #remaining, for wands, tinderboxes, flint and steel, fletchery/writing sets
- 0074 Special dd ? -- partially confirmed (corpse no for statue/corpse/figurine)
- -- +X for gloves of smiting
- -- determines spell for spellbooks
- -- turns of fuel remaining for a torch, or 0 if pristine
- -- which stat to modify if modifies a stat (see class flag 1)
- ; spell no, torch fuel, stat boost no, corpse no, crit bonus amount, etc.
- 0078 Special2 dd ? -- amount to modify a stat if modifies a stat
- -- amount to modify speed if modifies speed
- ; stat boost, spell charges
- 007C Number dd ? -- that's *quantity*, and confirmed, all items
- 0080 Rusty dd ? -- confirmed, bool, all items
- 0084 Broken dd ? -- confirmed, bool, all items
- 0088 Unpaid dd ? -- confirmed, bool, all items
- 008C TorchLit dd ? -- confirmed, bool, torches
- 0090 PoisonAmount dd ? -- confirmed, if >0 any item is poisoned
- 0094 GeneratedAt dd ? -- 'last_check_turn'; set to game turn number; food and torches use this so as to only update once per turn ; game move nr when the item was generated
- 0098 Properties dd ? -- confirm that there's a flag word here; only 8 bits used
- @ IP_Rustproof = 1
- -- 2..8 appear to be god gift bits
- @ IP_Charges_Known = 0x10 -- the item also has to be identified
- @ IP_Already_Recharged = 0x20
- -- 0x40 and 0x80 appear to be used to earmark items for the player; monsters will not pick them up. 0x40 only applies to peacefuls, both apply to hostiles. Both are cleared when you pick up the items and do not affect stacking.
- 009C ItemNumber dd ? ; The item's unique number -- may be broken, but confirmed
- 00A0 TItem ends
Add Comment
Please, Sign In to add comment