mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-02 07:28:49 +01:00
Added questpoints to load_char, more 128 bit fixes, and set autoexit on by default. (Thanks Trulight) --Rumble
This commit is contained in:
parent
254a746657
commit
62f74102af
6 changed files with 12 additions and 4 deletions
|
|
@ -1465,6 +1465,8 @@ void do_start(struct char_data *ch)
|
|||
GET_COND(ch, HUNGER) = 24;
|
||||
GET_COND(ch, DRUNK) = 0;
|
||||
|
||||
SET_BIT_AR(PRF_FLAGS(ch), PRF_AUTOEXIT);
|
||||
|
||||
if (CONFIG_SITEOK_ALL)
|
||||
SET_BIT_AR(PLR_FLAGS(ch), PLR_SITEOK);
|
||||
}
|
||||
|
|
|
|||
1
src/db.c
1
src/db.c
|
|
@ -2646,7 +2646,6 @@ void free_char(struct char_data *ch)
|
|||
free(ch->player_specials->poofout);
|
||||
if (GET_HOST(ch))
|
||||
free(GET_HOST(ch));
|
||||
free(ch->player_specials);
|
||||
if (IS_NPC(ch))
|
||||
log("SYSERR: Mob %s (#%d) had player_specials allocated!", GET_NAME(ch), GET_MOB_VNUM(ch));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -981,7 +981,7 @@ void oedit_parse(struct descriptor_data *d, char *arg)
|
|||
if (number < 0 || number > 4)
|
||||
oedit_disp_container_flags_menu(d);
|
||||
else if (number != 0) {
|
||||
TOGGLE_BIT(GET_OBJ_VAL(OLC_OBJ(d), 1), (number - 1));
|
||||
TOGGLE_BIT(GET_OBJ_VAL(OLC_OBJ(d), 1), 1 << (number - 1));
|
||||
OLC_VAL(d) = 1;
|
||||
oedit_disp_val2_menu(d);
|
||||
} else
|
||||
|
|
|
|||
|
|
@ -373,6 +373,10 @@ int load_char(const char *name, struct char_data *ch)
|
|||
PRF_FLAGS(ch)[3] = asciiflag_conv(f4);
|
||||
break;
|
||||
|
||||
case 'Q':
|
||||
if (!strcmp(tag, "Qstp")) GET_QUESTPOINTS(ch) = atoi(line);
|
||||
break;
|
||||
|
||||
case 'R':
|
||||
if (!strcmp(tag, "Room")) GET_LOADROOM(ch) = atoi(line);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue