From 1ad03f3cdca3fc747c7be66911621c8f57b8d8d4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 16 Jun 2019 23:43:53 -0300 Subject: Use limit() instead of max(min()) where appliable --- npc/019-4-1/chief.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'npc/019-4-1/chief.txt') 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 -- cgit v1.2.3-70-g09d2