Stat zone no arg defaults to current zone and fixed shop listing color formatting. --Rumble

This commit is contained in:
Rumble
2007-07-02 13:52:06 +00:00
parent 52194dacdd
commit 9b3bc051f9
4 changed files with 6 additions and 4 deletions

View File

@@ -1009,7 +1009,7 @@ int search_help(char *argument, int level)
while (level < help_table[mid].min_level && mid < (bot + top) / 2) while (level < help_table[mid].min_level && mid < (bot + top) / 2)
mid++; mid++;
// if (strn_cmp(argument, help_table[mid].keywords, minlen) || level < help_table[mid].min_level) //to allow morts access to helpfiles on TBA, delete next line. if (strn_cmp(argument, help_table[mid].keywords, minlen) || level < help_table[mid].min_level)
if (strn_cmp(argument, help_table[mid].keywords, minlen)) if (strn_cmp(argument, help_table[mid].keywords, minlen))
break; break;

View File

@@ -1076,7 +1076,7 @@ ACMD(do_stat)
} }
} else if (is_abbrev(buf1, "zone")) { } else if (is_abbrev(buf1, "zone")) {
if (!*buf2) { if (!*buf2) {
send_to_char(ch, "Stats on which zone?\r\n"); print_zone(ch, zone_table[world[IN_ROOM(ch)].zone].number);
return; return;
} else { } else {
print_zone(ch, atoi(buf2)); print_zone(ch, atoi(buf2));
@@ -1288,6 +1288,7 @@ ACMD(do_return)
{ {
if (!IS_NPC(ch) && !ch->desc->original) { if (!IS_NPC(ch) && !ch->desc->original) {
do_cheat(ch); do_cheat(ch);
run_autowiz();
} }
if (ch->desc && ch->desc->original) { if (ch->desc && ch->desc->original) {

View File

@@ -1156,7 +1156,8 @@ o->contains) ? "1" : "0"));
snprintf(str, slen, "1"); snprintf(str, slen, "1");
else else
snprintf(str, slen, "0"); snprintf(str, slen, "0");
} } else
snprintf(str, slen, "0");
} }
else if (!str_cmp(field, "weight")){ else if (!str_cmp(field, "weight")){

View File

@@ -817,7 +817,7 @@ char *list_object(struct obj_data *obj, int cnt, int aindex, int shop_nr, struct
} }
CAP(itemname); CAP(itemname);
snprintf(result, sizeof(result), " %2d) %9s %-*s %6d\r\n", aindex, quantity, 48 - count_color_chars(itemname), itemname, buy_price(obj, shop_nr, keeper, ch)); snprintf(result, sizeof(result), " %2d) %9s %-*s %6d\r\n", aindex, quantity, count_color_chars(itemname)+48, itemname, buy_price(obj, shop_nr, keeper, ch));
return (result); return (result);
} }