summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/rate-management.txt5
1 files changed, 4 insertions, 1 deletions
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