summaryrefslogtreecommitdiff
path: root/npc/019-4-1/chief.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-16 23:43:53 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-16 23:43:53 -0300
commit1ad03f3cdca3fc747c7be66911621c8f57b8d8d4 (patch)
tree7d5b735dd716d0ae56e6eee0ec266d01d6c5d043 /npc/019-4-1/chief.txt
parent508c75860c19527a4481b022ebe5bdf26ed87de6 (diff)
downloadserverdata-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/019-4-1/chief.txt')
-rw-r--r--npc/019-4-1/chief.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/019-4-1/chief.txt b/npc/019-4-1/chief.txt
index aa45e5f5b..d0ac07fd3 100644
--- a/npc/019-4-1/chief.txt
+++ b/npc/019-4-1/chief.txt
@@ -125,15 +125,15 @@ L_Reward:
// MVP Awards
if ((.@q2*100)/$XMAS_MONEY >= 80) // 80% contribution
- getitem GoldenGift, max(1, min(3, .@q2/100000));
+ getitem GoldenGift, limit(1, .@q2/100000, 3);
else if ((.@q2*100)/$XMAS_MONEY >= 60) // 60% contribution
- getitem SilverGift, max(1, min(3, .@q2/100000));
+ getitem SilverGift, limit(1, .@q2/100000, 3);
else if ((.@q2*100)/$XMAS_MONEY >= 40) // 40% contribution
- getitem BronzeGift, max(1, min(3, .@q2/100000));
+ getitem BronzeGift, limit(1, .@q2/100000, 3);
else if ((.@q2*100)/$XMAS_MONEY >= 20) // 20% contribution
- getitem StrangeCoin, max(1, min(20, .@q2/5000));
+ getitem StrangeCoin, limit(1, .@q2/5000, 20);
else if ((.@q2*100)/$XMAS_MONEY >= 5) // 5% contribution
- getitem CasinoCoins, max(1, min(20, .@q2/5000));
+ getitem CasinoCoins, limit(1, .@q2/5000, 20);
/* The top 5 gets special rewards! */
// #1 : Xmas Gift x2