summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/treasure.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt
index 992f19756..d9bc42b81 100644
--- a/npc/functions/treasure.txt
+++ b/npc/functions/treasure.txt
@@ -35,9 +35,9 @@ function script TreasureBox {
// Note that rare is used as 300 instead of 200
// This is to normalize with SR/UR formula
if (.@r > 1600) // UC and C (100% ~ 150% bonus)
- .@r-=getarg(0, 0)+min((.@r-1600), getarg(0, 0)/2);
+ .@r-=max(getarg(0, 0), 1200)+min((.@r-1600), getarg(0, 0)/2);
else if (.@r > 300) // Rare (67% ~ 120% bonus)
- .@r-=getarg(0, 0)+min((.@r-300), getarg(0, 0)/5);
+ .@r-=max(getarg(0, 0), 285)+min((.@r-300), getarg(0, 0)/5);
else if (.@r <= 300) // SR and UR (67% Bonus)
.@r-=getarg(0, 0)*2/3;