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

@ -1 +1,9 @@
$
#100
padded armor~
some padded armor~
Some padded armor has been discarded here.~
~
9 0 0 0 0 ad 0 0 0 0 0 0 0
1 1 0 0
10 4 0 0 0
$~

View file

@ -2,5 +2,6 @@
Kinther~
City of Tyr~
100 199 30 2
M 0 100 1 100 (the tall, burly human soldier)
S
$

View file

@ -494,6 +494,9 @@ const char *container_bits[] = {
"\n",
};
/* Number of container flags (excluding the sentinel "\n") */
const int NUM_CONTAINER_FLAGS = (sizeof(container_bits) / sizeof(container_bits[0]) - 1);
/** Describes the liquid description.
* @pre Must be in the same order as the defines.
* Must end array with a single newline. */

View file

@ -83,4 +83,7 @@ extern const char *armor_flag_bits[];
/* We already set this earlier: */
#define MAX_TOTAL_ARMOR_MAGIC 3
extern const char *container_bits[];
extern const int NUM_CONTAINER_FLAGS;
#endif /* _CONSTANTS_H_ */

File diff suppressed because it is too large Load diff

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 */