From 6fb9a9acaa94fd8048d450749198240fb69a8a82 Mon Sep 17 00:00:00 2001 From: Lucien Date: Sat, 14 Dec 2024 10:53:00 -0800 Subject: [PATCH] QOL for builders: You can vstat template zones now --- src/act.wizard.cpp | 15 +++++++++++++++ src/newshop.cpp | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/act.wizard.cpp b/src/act.wizard.cpp index 6e44ff8c7..54d742c05 100644 --- a/src/act.wizard.cpp +++ b/src/act.wizard.cpp @@ -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; diff --git a/src/newshop.cpp b/src/newshop.cpp index 06f56c0f5..1e7ca98df 100644 --- a/src/newshop.cpp +++ b/src/newshop.cpp @@ -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':