mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-23 18:50:13 +01:00
MUD 3.53
[Sep 25 2007] - Rumble Added set/not set to extra descriptions menu in oedit so a builder can tell if they exist or not without having to enter the extra desc menu or stat the object. Replaced [TRIG] flag (showvnum enabled) with [T<vnum>] to make things easier to stat. [Sep 24 2007] - Rumble Added %is_pc% to return -1 for objects. (thanks Jamdog) Fixed do_gen_comm color bleed into last apostrophe in gossip/shout/grat/etc. Fixed bug where object keywords took precedence over door keywords. i.e. open door would try to open an object with keyword door. (thanks Trulight) [Sep 23 2007] - Rumble Fixed minlev checks in do_grab, do_wield, and do_wear. (thanks Trulight) Added trigedit variables(modifiable) Hunger, Thirst, and Drunk. [Sep 15 2007] - Rumble Fixed bug in unlimited drinks showing as empty. (thanks AaronGoulet)
This commit is contained in:
parent
6c84a36236
commit
1f7a7b4182
25 changed files with 259 additions and 194 deletions
10
src/hedit.c
10
src/hedit.c
|
|
@ -141,7 +141,7 @@ void hedit_save_internally(struct descriptor_data *d)
|
|||
int i;
|
||||
CREATE(new_help_table, struct help_index_element, top_of_helpt + 2);
|
||||
|
||||
for (i = 0; i <= top_of_helpt; i++)
|
||||
for (i = 0; i < top_of_helpt; i++)
|
||||
new_help_table[i] = help_table[i];
|
||||
new_help_table[++top_of_helpt] = *OLC_HELP(d);
|
||||
free(help_table);
|
||||
|
|
@ -165,7 +165,7 @@ void hedit_save_to_disk(struct descriptor_data *d)
|
|||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i <= top_of_helpt; i++) {
|
||||
for (i = 0; i < top_of_helpt; i++) {
|
||||
if (help_table[i].duplicate)
|
||||
continue;
|
||||
strncpy(buf1, help_table[i].entry ? help_table[i].entry : "Empty\r\n", sizeof(buf1) - 1);
|
||||
|
|
@ -245,7 +245,7 @@ void hedit_parse(struct descriptor_data *d, char *arg)
|
|||
break;
|
||||
case 'n': case 'N':
|
||||
OLC_ZNUM(d)++;
|
||||
for (; OLC_ZNUM(d) <= top_of_helpt; OLC_ZNUM(d)++)
|
||||
for (; OLC_ZNUM(d) < top_of_helpt; OLC_ZNUM(d)++)
|
||||
if (is_abbrev(OLC_STORAGE(d), help_table[OLC_ZNUM(d)].keywords))
|
||||
break;
|
||||
else
|
||||
|
|
@ -310,7 +310,7 @@ void hedit_parse(struct descriptor_data *d, char *arg)
|
|||
string_write(d, &OLC_HELP(d)->entry, MAX_MESSAGE_LENGTH, 0, oldtext);
|
||||
OLC_VAL(d) = 1;
|
||||
break;
|
||||
case 'M':
|
||||
case '2':
|
||||
write_to_output(d, "Enter min level : ");
|
||||
OLC_MODE(d) = HEDIT_MIN_LEVEL;
|
||||
break;
|
||||
|
|
@ -408,7 +408,7 @@ ACMD(do_hindex)
|
|||
}
|
||||
|
||||
len = sprintf(buf, "Help index entries based on '%s':\r\n", argument);
|
||||
for (i = 0; i <= top_of_helpt; i++)
|
||||
for (i = 0; i < top_of_helpt; i++)
|
||||
if (is_abbrev(argument, help_table[i].keywords)
|
||||
&& (GET_LEVEL(ch) >= help_table[i].min_level))
|
||||
len +=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue