mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-23 04:36:32 +01:00
Species update 1
This commit is contained in:
parent
1efb08dafd
commit
8018ed3fcf
14 changed files with 773 additions and 95 deletions
|
|
@ -556,6 +556,8 @@ do \
|
|||
|
||||
/** Class of ch. */
|
||||
#define GET_CLASS(ch) ((ch)->player.chclass)
|
||||
/** Species of ch. */
|
||||
#define GET_SPECIES(ch) ((ch)->player.species)
|
||||
/** Height of ch. */
|
||||
#define GET_HEIGHT(ch) ((ch)->player.height)
|
||||
/** Weight of ch. */
|
||||
|
|
@ -936,6 +938,7 @@ do \
|
|||
|
||||
/** True if ch has a valid player class assigned. */
|
||||
#define HAS_VALID_CLASS(ch) ((GET_CLASS(ch) >= CLASS_SORCEROR) && (GET_CLASS(ch) < NUM_CLASSES))
|
||||
#define HAS_VALID_SPECIES(ch) ((GET_SPECIES(ch) >= 0) && (GET_SPECIES(ch) < NUM_SPECIES))
|
||||
|
||||
/** Return the class abbreviation for ch. */
|
||||
#define CLASS_ABBR(ch) (HAS_VALID_CLASS(ch) ? class_abbrevs[(int)GET_CLASS(ch)] : "--")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue