mirror of
https://github.com/tbamud/tbamud.git
synced 2025-09-22 05:50:48 +02:00
Stat zone no arg defaults to current zone and fixed shop listing color formatting. --Rumble
This commit is contained in:
parent
52194dacdd
commit
9b3bc051f9
4 changed files with 6 additions and 4 deletions
|
@ -1009,7 +1009,7 @@ int search_help(char *argument, int level)
|
|||
while (level < help_table[mid].min_level && mid < (bot + top) / 2)
|
||||
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))
|
||||
break;
|
||||
|
||||
|
|
|
@ -1076,7 +1076,7 @@ ACMD(do_stat)
|
|||
}
|
||||
} else if (is_abbrev(buf1, "zone")) {
|
||||
if (!*buf2) {
|
||||
send_to_char(ch, "Stats on which zone?\r\n");
|
||||
print_zone(ch, zone_table[world[IN_ROOM(ch)].zone].number);
|
||||
return;
|
||||
} else {
|
||||
print_zone(ch, atoi(buf2));
|
||||
|
@ -1288,6 +1288,7 @@ ACMD(do_return)
|
|||
{
|
||||
if (!IS_NPC(ch) && !ch->desc->original) {
|
||||
do_cheat(ch);
|
||||
run_autowiz();
|
||||
}
|
||||
|
||||
if (ch->desc && ch->desc->original) {
|
||||
|
|
|
@ -1156,7 +1156,8 @@ o->contains) ? "1" : "0"));
|
|||
snprintf(str, slen, "1");
|
||||
else
|
||||
snprintf(str, slen, "0");
|
||||
}
|
||||
} else
|
||||
snprintf(str, slen, "0");
|
||||
}
|
||||
|
||||
else if (!str_cmp(field, "weight")){
|
||||
|
|
|
@ -817,7 +817,7 @@ char *list_object(struct obj_data *obj, int cnt, int aindex, int shop_nr, struct
|
|||
}
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue