Fix oedit menu options

This commit is contained in:
kinther 2025-08-24 16:06:50 -07:00
parent b928572156
commit 33b52ffe00
6 changed files with 360 additions and 469 deletions

View file

@ -1283,9 +1283,10 @@ struct recent_player
/* Armor item values (for ITEM_ARMOR objects)
* value[0] = piece_ac (03)
* value[1] = bulk (03)
* value[2] = magic_bonus (03, capped globally later)
* value[1] = bulk (03), determines allowed dex bonus
* value[2] = magic_bonus (03, most will be at most +1)
* value[3] = armor flags (bitvector, see ARMF_*)
* value[4] = durability, or how much damage an item can take before breaking (usually 100)
*/
#define VAL_ARMOR_PIECE_AC 0
#define VAL_ARMOR_BULK 1
@ -1293,9 +1294,6 @@ struct recent_player
#define VAL_ARMOR_FLAGS 3
#define VAL_ARMOR_DURABILITY 4
/* Armor flags (value[3]) */
#define ARMF_STEALTH_DISADV (1 << 0) /* Disadvantage on Stealth */
/* Armor-specific flags stored in obj->value[3] */
#define ARMF_STEALTH_DISADV (1 << 0) /* Disadvantage on Stealth checks */
#define ARMF_REQ_STR15 (1 << 1) /* Requires STR 15 to wear */