Skip to content

Commit

Permalink
QOL for builders: You can vstat template zones now
Browse files Browse the repository at this point in the history
  • Loading branch information
luciensadi committed Dec 14, 2024
1 parent bc74677 commit 6fb9a9a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions src/act.wizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2638,6 +2638,21 @@ ACMD(do_vstat)
// Require that they have access to edit the zone they're statting.
for (int counter = 0; counter <= top_of_zone_table; counter++) {
if ((number >= (zone_table[counter].number * 100)) && (number <= (zone_table[counter].top))) {
// Allow vstatting in template zones. Right now these are hardcoded, eventually you should make them zone flags.
if (// Item template zones.
((zone_table[counter].number >= 800 && zone_table[counter].number <= 807)
|| (zone_table[counter].number >= 850 && zone_table[counter].number <= 860)
|| zone_table[counter].number == 65
|| zone_table[counter].number == 68
|| zone_table[counter].number == 70) ||
// Mob template zones.
(zone_table[counter].number == 128)
)
{
// Break out without doing anything, otherwise check for edit capabilities.
break;
}

if (!can_edit_zone(ch, counter)) {
send_to_char("Sorry, you don't have access to edit that zone.\r\n", ch);
return;
Expand Down
2 changes: 1 addition & 1 deletion src/newshop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3018,7 +3018,7 @@ void shedit_parse(struct descriptor_data *d, const char *arg)
d->edit_mode = SHEDIT_TYPE;
break;
case '3':
send_to_char(CH, "Enter multiplier for buy command: ");
send_to_char(CH, "Enter multiplier for buy command (1.0 or higher): ");
d->edit_mode = SHEDIT_PROFIT_BUY;
break;
case '4':
Expand Down

0 comments on commit 6fb9a9a

Please sign in to comment.