Broken Apples
Posted: Wed Nov 24, 2004 7:12 pm
Zyx wanted me to add flags to 'Miscellaneous' items
to indicate broken and/or poisoned so as to be like
weapons. Here is the format of the two object types:
So we could use bit 9 of Misc to mean Poisoned and we
could use bit 10 to mean Broken. It would be easy to
display these things in the Inventory screen. But old games
may have garbage in these bits. So I will add a global
option to allow these bits to be set. If the option is not set then
the bits will be cleared when the game is loaded.
Before I do this I want to know whether we should do it
for Scrolls and Clothing. I don't want to have to invent
two global flags. The Potions have no unused bits so I
don't think we can do anything with them.
to indicate broken and/or poisoned so as to be like
weapons. Here is the format of the two object types:
Code: Select all
Misc Weapon Clothing Scroll
--------------------------------------------
0-6 Type Type Type 0=Open
7 Important Important Important -
8 Cursed Cursed Cursed -
9 - Poisoned Charges -
10 - Charges " -
11 - " " -
12 - " " -
13 - " Broken -
14 Value Broken - -
15 " Lit Torch - -
could use bit 10 to mean Broken. It would be easy to
display these things in the Inventory screen. But old games
may have garbage in these bits. So I will add a global
option to allow these bits to be set. If the option is not set then
the bits will be cleared when the game is loaded.
Before I do this I want to know whether we should do it
for Scrolls and Clothing. I don't want to have to invent
two global flags. The Potions have no unused bits so I
don't think we can do anything with them.