summaryrefslogtreecommitdiff
path: root/npc/commands/rate-management.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands/rate-management.txt')
-rw-r--r--npc/commands/rate-management.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/npc/commands/rate-management.txt b/npc/commands/rate-management.txt
index fc0af91fe..07e0eaf19 100644
--- a/npc/commands/rate-management.txt
+++ b/npc/commands/rate-management.txt
@@ -79,9 +79,8 @@ OnPlayerCall:
if (.max_hours > 0 || .hours > 0)
end;
// $@EXP_EVENT will determine the boost and shall NEVER be above 20%
- if ($@EXP_EVENT <= 0 || $@EXP_EVENT > 120) {
- announce "##1##BSEVERE ERROR: Misformatted command, $@EXP_EVENT cannot be over 20% bonus and must be valid.", bc_all;
- }
+ $@EXP_EVENT=max(0, min(120, $@EXP_EVENT));
+
.hours = 0;
.max_hours = 1; // Always one hour - never more than that
.current_rate = $@EXP_EVENT;