mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-21 19:56:33 +01:00
Species update 1
This commit is contained in:
parent
1efb08dafd
commit
8018ed3fcf
14 changed files with 773 additions and 95 deletions
106
src/structs.h
106
src/structs.h
|
|
@ -164,6 +164,38 @@
|
|||
/** Total number of available PC Classes */
|
||||
#define NUM_CLASSES 8
|
||||
|
||||
/* Species */
|
||||
#define SPECIES_UNDEFINED (-1) /**< Species undefined */
|
||||
#define SPECIES_HUMAN 0
|
||||
#define SPECIES_CITY_ELF 1
|
||||
#define SPECIES_DESERT_ELF 2
|
||||
#define SPECIES_HALF_ELF 3
|
||||
#define SPECIES_DWARF 4
|
||||
#define SPECIES_MUL 5
|
||||
#define SPECIES_HALF_GIANT 6
|
||||
#define SPECIES_MANTIS 7
|
||||
#define SPECIES_GITH 8
|
||||
#define SPECIES_AARAKOCRA 9
|
||||
#define SPECIES_DRAY 10
|
||||
#define SPECIES_KENKU 11
|
||||
#define SPECIES_JOZHAL 12
|
||||
#define SPECIES_PTERRAN 13
|
||||
#define SPECIES_TAREK 14
|
||||
#define SPECIES_APRIG 15
|
||||
#define SPECIES_CARRU 16
|
||||
#define SPECIES_CRODLU 17
|
||||
#define SPECIES_ERDLU 18
|
||||
#define SPECIES_INIX 19
|
||||
#define SPECIES_JHAKAR 20
|
||||
#define SPECIES_KANK 21
|
||||
#define SPECIES_MEKILLOT 22
|
||||
#define SPECIES_WORM 23
|
||||
#define SPECIES_RENK 24
|
||||
#define SPECIES_RAT 25
|
||||
#define SPECIES_UNDEAD 26
|
||||
#define SPECIES_DRAGON 27
|
||||
#define NUM_SPECIES 28
|
||||
|
||||
/* NPC classes (currently unused - feel free to implement!) */
|
||||
#define CLASS_OTHER 0 /**< NPC Class Other (or undefined) */
|
||||
#define CLASS_UNDEAD 1 /**< NPC Class Undead */
|
||||
|
|
@ -313,42 +345,43 @@
|
|||
#define CON_NEWPASSWD 5 /**< New character, create password */
|
||||
#define CON_CNFPASSWD 6 /**< New character, confirm password */
|
||||
#define CON_QSEX 7 /**< Choose character sex */
|
||||
#define CON_QCLASS 8 /**< Choose character class */
|
||||
#define CON_QSHORTDESC 9 /**< Enter a new character short description prompt */
|
||||
#define CON_RMOTD 10 /**< Reading the message of the day */
|
||||
#define CON_MENU 11 /**< At the main menu */
|
||||
#define CON_PLR_DESC 12 /**< Enter a new character description prompt */
|
||||
#define CON_CHPWD_GETOLD 13 /**< Changing passwd: Get old */
|
||||
#define CON_CHPWD_GETNEW 14 /**< Changing passwd: Get new */
|
||||
#define CON_CHPWD_VRFY 15 /**< Changing passwd: Verify new password */
|
||||
#define CON_DELCNF1 16 /**< Character Delete: Confirmation 1 */
|
||||
#define CON_DELCNF2 17 /**< Character Delete: Confirmation 2 */
|
||||
#define CON_DISCONNECT 18 /**< In-game link loss (leave character) */
|
||||
#define CON_OEDIT 19 /**< OLC mode - object editor */
|
||||
#define CON_REDIT 20 /**< OLC mode - room editor */
|
||||
#define CON_ZEDIT 21 /**< OLC mode - zone info editor */
|
||||
#define CON_MEDIT 22 /**< OLC mode - mobile editor */
|
||||
#define CON_SEDIT 23 /**< OLC mode - shop editor */
|
||||
#define CON_TEDIT 24 /**< OLC mode - text editor */
|
||||
#define CON_CEDIT 25 /**< OLC mode - conf editor */
|
||||
#define CON_AEDIT 26 /**< OLC mode - social (action) edit */
|
||||
#define CON_TRIGEDIT 27 /**< OLC mode - trigger edit */
|
||||
#define CON_HEDIT 28 /**< OLC mode - help edit */
|
||||
#define CON_QEDIT 29 /**< OLC mode - quest edit */
|
||||
#define CON_PREFEDIT 30 /**< OLC mode - preference edit */
|
||||
#define CON_IBTEDIT 31 /**< OLC mode - idea/bug/typo edit */
|
||||
#define CON_MSGEDIT 32 /**< OLC mode - message editor */
|
||||
#define CON_PLR_BACKGROUND 33 /**< Entering a new character background */
|
||||
#define CON_GET_PROTOCOL 33 /**< Used at log-in while attempting to get protocols > */
|
||||
#define CON_GET_CONNECT 34 /**< Login connect/disconnect menu */
|
||||
#define CON_GET_ACCOUNT 35 /**< Login with account name */
|
||||
#define CON_ACCOUNT_CNFRM 36 /**< New account, confirm name */
|
||||
#define CON_ACCOUNT_PASSWORD 37 /**< Login with account password */
|
||||
#define CON_ACCOUNT_NEWPASSWD 38 /**< New account, create password */
|
||||
#define CON_ACCOUNT_CNFPASSWD 39 /**< New account, confirm password */
|
||||
#define CON_ACCOUNT_EMAIL 40 /**< New account, optional email */
|
||||
#define CON_ACCOUNT_MENU 41 /**< Account main menu */
|
||||
#define CON_ACCOUNT_LIST 42 /**< Viewing account character list */
|
||||
#define CON_QSPECIES 8 /**< Choose character species */
|
||||
#define CON_QCLASS 9 /**< Choose character class */
|
||||
#define CON_QSHORTDESC 10 /**< Enter a new character short description prompt */
|
||||
#define CON_RMOTD 11 /**< Reading the message of the day */
|
||||
#define CON_MENU 12 /**< At the main menu */
|
||||
#define CON_PLR_DESC 13 /**< Enter a new character description prompt */
|
||||
#define CON_CHPWD_GETOLD 14 /**< Changing passwd: Get old */
|
||||
#define CON_CHPWD_GETNEW 15 /**< Changing passwd: Get new */
|
||||
#define CON_CHPWD_VRFY 16 /**< Changing passwd: Verify new password */
|
||||
#define CON_DELCNF1 17 /**< Character Delete: Confirmation 1 */
|
||||
#define CON_DELCNF2 18 /**< Character Delete: Confirmation 2 */
|
||||
#define CON_DISCONNECT 19 /**< In-game link loss (leave character) */
|
||||
#define CON_OEDIT 20 /**< OLC mode - object editor */
|
||||
#define CON_REDIT 21 /**< OLC mode - room editor */
|
||||
#define CON_ZEDIT 22 /**< OLC mode - zone info editor */
|
||||
#define CON_MEDIT 23 /**< OLC mode - mobile editor */
|
||||
#define CON_SEDIT 24 /**< OLC mode - shop editor */
|
||||
#define CON_TEDIT 25 /**< OLC mode - text editor */
|
||||
#define CON_CEDIT 26 /**< OLC mode - conf editor */
|
||||
#define CON_AEDIT 27 /**< OLC mode - social (action) edit */
|
||||
#define CON_TRIGEDIT 28 /**< OLC mode - trigger edit */
|
||||
#define CON_HEDIT 29 /**< OLC mode - help edit */
|
||||
#define CON_QEDIT 30 /**< OLC mode - quest edit */
|
||||
#define CON_PREFEDIT 31 /**< OLC mode - preference edit */
|
||||
#define CON_IBTEDIT 32 /**< OLC mode - idea/bug/typo edit */
|
||||
#define CON_MSGEDIT 33 /**< OLC mode - message editor */
|
||||
#define CON_PLR_BACKGROUND 34 /**< Entering a new character background */
|
||||
#define CON_GET_PROTOCOL 34 /**< Used at log-in while attempting to get protocols > */
|
||||
#define CON_GET_CONNECT 35 /**< Login connect/disconnect menu */
|
||||
#define CON_GET_ACCOUNT 36 /**< Login with account name */
|
||||
#define CON_ACCOUNT_CNFRM 37 /**< New account, confirm name */
|
||||
#define CON_ACCOUNT_PASSWORD 38 /**< Login with account password */
|
||||
#define CON_ACCOUNT_NEWPASSWD 39 /**< New account, create password */
|
||||
#define CON_ACCOUNT_CNFPASSWD 40 /**< New account, confirm password */
|
||||
#define CON_ACCOUNT_EMAIL 41 /**< New account, optional email */
|
||||
#define CON_ACCOUNT_MENU 42 /**< Account main menu */
|
||||
#define CON_ACCOUNT_LIST 43 /**< Viewing account character list */
|
||||
|
||||
/* OLC States range - used by IS_IN_OLC and IS_PLAYING */
|
||||
#define FIRST_OLC_STATE CON_OEDIT /**< The first CON_ state that is an OLC */
|
||||
|
|
@ -907,6 +940,7 @@ struct char_player_data
|
|||
char *background; /**< PC / NPC background / history text */
|
||||
byte sex; /**< PC / NPC sex */
|
||||
byte chclass; /**< PC / NPC class */
|
||||
byte species; /**< PC / NPC species */
|
||||
byte level; /**< PC / NPC level */
|
||||
struct time_data time; /**< PC AGE in days */
|
||||
ubyte weight; /**< PC / NPC weight */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue