summaryrefslogtreecommitdiff
path: root/npc/019-4-1/chief.txt
diff options
context:
space:
mode:
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