diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-03-06 16:50:04 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-03-06 16:50:04 -0300 |
commit | a88f98020f173164327432d36abeb88d9ef643a9 (patch) | |
tree | 87effa1e7ba3d3888f97ecd72475af91935e27ac /npc/commands/rate-management.txt | |
parent | e214279955c3ef0ce61a304b22c98966a03ddda6 (diff) | |
download | serverdata-a88f98020f173164327432d36abeb88d9ef643a9.tar.gz serverdata-a88f98020f173164327432d36abeb88d9ef643a9.tar.bz2 serverdata-a88f98020f173164327432d36abeb88d9ef643a9.tar.xz serverdata-a88f98020f173164327432d36abeb88d9ef643a9.zip |
Replace the Sunday EXP Happy Hour with a +10% weekend campaign
Diffstat (limited to 'npc/commands/rate-management.txt')
-rw-r--r-- | npc/commands/rate-management.txt | 5 |
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 |