diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-01-19 00:04:55 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-01-19 00:04:55 -0300 |
commit | 1779226a7877006c6f436637719de43786bf828e (patch) | |
tree | 99c3b6ed7876682ad8903307f515aaf1614c9398 /npc/functions | |
parent | 1cc2e3291bad188397f90e7c6e9492f406a1b21e (diff) | |
download | serverdata-1779226a7877006c6f436637719de43786bf828e.tar.gz serverdata-1779226a7877006c6f436637719de43786bf828e.tar.bz2 serverdata-1779226a7877006c6f436637719de43786bf828e.tar.xz serverdata-1779226a7877006c6f436637719de43786bf828e.zip |
Improve precision on the success rate guesswork
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/refine.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/npc/functions/refine.txt b/npc/functions/refine.txt index fe10d8403..900969093 100644 --- a/npc/functions/refine.txt +++ b/npc/functions/refine.txt @@ -128,7 +128,9 @@ function script refineMaster { } mesn; mesq l("This @@ is a nice stuff. I can refine it for @@ GP and @@ @@.", getitemlink(.@item), .@price, .@amount, getitemlink(.@rg)); - .@fake = (.@savior ? rand2(-1,1) : rand2(-6, 6)); + .@fake = (.@savior ? rand2(-1,1) : rand2(-4, 4)); + if (.@rlv > 12) + .@fake -= (.@rlv-12) * 3; // Correction because after +12 steps are smaller mesc l("Success ratio is of aprox. @@ %", (100-(.@rlv*7))+.@fake); next; if (askyesno() != ASK_YES) |