mirror of
https://github.com/tbamud/tbamud.git
synced 2026-04-01 09:57:19 +02:00
Remove str_add since we are using 5e-like stats
This commit is contained in:
parent
d0708b4472
commit
0e44eaf319
14 changed files with 25 additions and 85 deletions
11
src/utils.h
11
src/utils.h
|
|
@ -537,8 +537,6 @@ do \
|
|||
|
||||
/** Current strength of ch. */
|
||||
#define GET_STR(ch) ((ch)->aff_abils.str)
|
||||
/** Current strength modifer of ch. */
|
||||
#define GET_ADD(ch) ((ch)->aff_abils.str_add)
|
||||
/** Current dexterity of ch. */
|
||||
#define GET_DEX(ch) ((ch)->aff_abils.dex)
|
||||
/** Current intelligence of ch. */
|
||||
|
|
@ -688,15 +686,6 @@ do \
|
|||
/** Return the memory of ch. */
|
||||
#define MEMORY(ch) ((ch)->mob_specials.memory)
|
||||
|
||||
/** Return the equivalent strength of ch if ch has level 18 strength. */
|
||||
#define STRENGTH_APPLY_INDEX(ch) \
|
||||
( ((GET_ADD(ch) ==0) || (GET_STR(ch) != 18)) ? GET_STR(ch) :\
|
||||
(GET_ADD(ch) <= 50) ? 26 :( \
|
||||
(GET_ADD(ch) <= 75) ? 27 :( \
|
||||
(GET_ADD(ch) <= 90) ? 28 :( \
|
||||
(GET_ADD(ch) <= 99) ? 29 : 30 ) ) ) \
|
||||
)
|
||||
|
||||
/** Return how much weight ch can carry (5e rule: Str × 15 lb). */
|
||||
#define CAN_CARRY_W(ch) (GET_STR(ch) * 15)
|
||||
/** Return how many items ch can carry (5e has no item count, so base it on Strength too).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue