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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db/item_options.conf') 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 -- cgit v1.2.3-70-g09d2