From dbe09a4938bc64b1334d5d489a38b24a7e6542a1 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 20 Jun 2022 13:17:15 -0300 Subject: Extra formula corrections to absolutely preserve URs --- npc/functions/treasure.txt | 4 ++-- 1 file 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; -- cgit v1.2.3-60-g2f50