mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-19 18:56:33 +01:00
Fix oedit menu options
This commit is contained in:
parent
b928572156
commit
33b52ffe00
6 changed files with 360 additions and 469 deletions
|
|
@ -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
|
||||
$~
|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
Kinther~
|
||||
City of Tyr~
|
||||
100 199 30 2
|
||||
M 0 100 1 100 (the tall, burly human soldier)
|
||||
S
|
||||
$
|
||||
|
|
|
|||
|
|
@ -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. */
|
||||
|
|
|
|||
|
|
@ -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_ */
|
||||
|
|
|
|||
804
src/oedit.c
804
src/oedit.c
File diff suppressed because it is too large
Load diff
|
|
@ -1283,9 +1283,10 @@ struct recent_player
|
|||
|
||||
/* Armor item values (for ITEM_ARMOR objects)
|
||||
* value[0] = piece_ac (0–3)
|
||||
* value[1] = bulk (0–3)
|
||||
* value[2] = magic_bonus (0–3, capped globally later)
|
||||
* value[1] = bulk (0–3), determines allowed dex bonus
|
||||
* value[2] = magic_bonus (0–3, 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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue