mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-24 21:26:35 +01:00
Species update 1
This commit is contained in:
parent
1efb08dafd
commit
8018ed3fcf
14 changed files with 773 additions and 95 deletions
6
src/db.c
6
src/db.c
|
|
@ -1624,6 +1624,7 @@ static void parse_simple_mob(FILE *mob_f, int i, int nr)
|
|||
GET_SEX(mob_proto + i) = t[2];
|
||||
|
||||
GET_CLASS(mob_proto + i) = CLASS_UNDEFINED;
|
||||
GET_SPECIES(mob_proto + i) = SPECIES_UNDEFINED;
|
||||
GET_WEIGHT(mob_proto + i) = 200;
|
||||
GET_HEIGHT(mob_proto + i) = 198;
|
||||
|
||||
|
|
@ -1707,6 +1708,10 @@ static void interpret_espec(const char *keyword, const char *value, int i, int n
|
|||
RANGE(CLASS_UNDEFINED, NUM_CLASSES - 1);
|
||||
mob_proto[i].player.chclass = num_arg;
|
||||
}
|
||||
CASE("Species") {
|
||||
RANGE(SPECIES_UNDEFINED, NUM_SPECIES - 1);
|
||||
mob_proto[i].player.species = num_arg;
|
||||
}
|
||||
|
||||
/* --- 5e-style Saving Throws --- */
|
||||
CASE("SaveStr") {
|
||||
|
|
@ -3766,6 +3771,7 @@ void clear_char(struct char_data *ch)
|
|||
GET_PFILEPOS(ch) = -1;
|
||||
GET_MOB_RNUM(ch) = NOBODY;
|
||||
GET_CLASS(ch) = CLASS_UNDEFINED;
|
||||
GET_SPECIES(ch) = SPECIES_UNDEFINED;
|
||||
GET_WAS_IN(ch) = NOWHERE;
|
||||
GET_POS(ch) = POS_STANDING;
|
||||
ch->mob_specials.default_pos = POS_STANDING;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue