diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-16 23:43:53 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-16 23:43:53 -0300 |
commit | 1ad03f3cdca3fc747c7be66911621c8f57b8d8d4 (patch) | |
tree | 7d5b735dd716d0ae56e6eee0ec266d01d6c5d043 /npc/commands | |
parent | 508c75860c19527a4481b022ebe5bdf26ed87de6 (diff) | |
download | serverdata-1ad03f3cdca3fc747c7be66911621c8f57b8d8d4.tar.gz serverdata-1ad03f3cdca3fc747c7be66911621c8f57b8d8d4.tar.bz2 serverdata-1ad03f3cdca3fc747c7be66911621c8f57b8d8d4.tar.xz serverdata-1ad03f3cdca3fc747c7be66911621c8f57b8d8d4.zip |
Use limit() instead of max(min()) where appliable
Diffstat (limited to 'npc/commands')
-rw-r--r-- | npc/commands/rate-management.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/commands/rate-management.txt b/npc/commands/rate-management.txt index 8a95bfdef..17a7f4cf3 100644 --- a/npc/commands/rate-management.txt +++ b/npc/commands/rate-management.txt @@ -78,8 +78,8 @@ OnPlayerCall: end; // $@EXP_EVENT will determine the boost and should not be above 25% // Default duration is one hour, or whatever $@EXP_EVENT_TIME is - $@EXP_EVENT=max(0, min(150, $@EXP_EVENT)); - $@EXP_EVENT_TIME=max(1, min(6, $@EXP_EVENT_TIME)); + $@EXP_EVENT=limit(0, $@EXP_EVENT, 150); + $@EXP_EVENT_TIME=limit(1, $@EXP_EVENT_TIME, 6); // Default duration is one hour, or whatever $@EXP_EVENT_TIME is .hours = 0; |