diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-06-20 13:17:15 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-06-20 13:17:15 -0300 |
commit | dbe09a4938bc64b1334d5d489a38b24a7e6542a1 (patch) | |
tree | c45e4cb8e5429c9b24293f6d63a72a7652a2b27a /npc/functions/treasure.txt | |
parent | 379332ee906a21ab8dc04b726013f8533b1d3860 (diff) | |
download | serverdata-dbe09a4938bc64b1334d5d489a38b24a7e6542a1.tar.gz serverdata-dbe09a4938bc64b1334d5d489a38b24a7e6542a1.tar.bz2 serverdata-dbe09a4938bc64b1334d5d489a38b24a7e6542a1.tar.xz serverdata-dbe09a4938bc64b1334d5d489a38b24a7e6542a1.zip |
Extra formula corrections to absolutely preserve URs
Diffstat (limited to 'npc/functions/treasure.txt')
-rw-r--r-- | npc/functions/treasure.txt | 4 |
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; |