mirror of
https://github.com/tbamud/tbamud.git
synced 2026-04-02 10:27:19 +02:00
Fix duration stat output and add class identifier
This commit is contained in:
parent
64220bffd6
commit
715e778b29
3 changed files with 9 additions and 4 deletions
|
|
@ -938,6 +938,9 @@ do \
|
|||
/** Return the class abbreviation for ch. */
|
||||
#define CLASS_ABBR(ch) (HAS_VALID_CLASS(ch) ? class_abbrevs[(int)GET_CLASS(ch)] : "--")
|
||||
|
||||
/** Return the class abbreviation for ch. */
|
||||
#define CLASS_NAME(ch) (HAS_VALID_CLASS(ch) ? pc_class_types[(int)GET_CLASS(ch)] : "--")
|
||||
|
||||
/** 1 if ch is sorceror class, 0 if not. */
|
||||
#define IS_SORCEROR(ch) (HAS_VALID_CLASS(ch) && (GET_CLASS(ch) == CLASS_SORCEROR))
|
||||
/** 1 if ch is cleric class, 0 if not. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue