From 91e4fdfb4e4b61443f1ab6757afe37f84da953ce Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 12 May 2020 21:59:44 -0300 Subject: Due to a bug, critical rate could go up to 200%, but now I know the formula works strangely. Cap this to 100%. --- db/item_options.conf | 2 +- npc/craft/options.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/db/item_options.conf b/db/item_options.conf index 777a5be85..f32e213ab 100644 --- a/db/item_options.conf +++ b/db/item_options.conf @@ -159,7 +159,7 @@ item_options_db: ( { Id: 24 Name: "VAR_CRITICALSUCCESSVALUE" - Script: <" bonus(bCritical, getequippedoptioninfo(IT_OPT_VALUE)); "> + Script: <" bonus(bCritical, min(100, getequippedoptioninfo(IT_OPT_VALUE))); "> }, { Id: 25 diff --git a/npc/craft/options.txt b/npc/craft/options.txt index 17daf5beb..ec96d081d 100644 --- a/npc/craft/options.txt +++ b/npc/craft/options.txt @@ -368,6 +368,7 @@ function script csys_Multiplier { case IOPT_DOUBLEATTACK: case VAR_PLUSAVOIDSUCCESSVALUE: case IOPT_EXPGAIN: + case VAR_CRITICALSUCCESSVALUE: return 5; case IOPT_SCRESIST_POISON: case IOPT_SCRESIST_SILENCE: -- cgit v1.2.3-60-g2f50