From a88f98020f173164327432d36abeb88d9ef643a9 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 6 Mar 2022 16:50:04 -0300 Subject: Replace the Sunday EXP Happy Hour with a +10% weekend campaign --- npc/commands/rate-management.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'npc/commands') diff --git a/npc/commands/rate-management.txt b/npc/commands/rate-management.txt index 886fed58d..b31057f78 100644 --- a/npc/commands/rate-management.txt +++ b/npc/commands/rate-management.txt @@ -114,7 +114,10 @@ OnPlayerCall: // Default duration is one hour, or whatever $@EXP_EVENT_TIME is $@EXP_EVENT=limit(0, $@EXP_EVENT, 100); $@EXP_EVENT+=.current_rate; - $@EXP_EVENT_TIME=limit(1, $@EXP_EVENT_TIME, 6); + if ($@EXP_EVENT_TIME > 6 && gettime(4) != SATURDAY && gettime(3)) { + consolewarn("Tried to set EXP Event Time to %d hours, but max is 6", $@EXP_eVENT_TIME); + $@EXP_EVENT_TIME=limit(1, $@EXP_EVENT_TIME, 6); + } // If a GM rate-up was running, we will sum the time, too. // It'll be rounded down. (so 1h + 30m = 1h) FIXME average is better -- cgit v1.2.3-70-g09d2