From af130a701c258ca315548a0ee53ae507459e08e7 Mon Sep 17 00:00:00 2001 From: Brian Chen Date: Sun, 9 Nov 2014 10:35:03 +0800 Subject: [PATCH] Diminish critical hit bonus towards 450% --- script/index.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/index.coffee b/script/index.coffee index 32a8f592c4..68559fc349 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -1158,7 +1158,9 @@ api.wrap = (user, main=true) -> crit: (stat='str', chance=.03) -> #console.log("Crit Chance:"+chance*(1+user._statsComputed[stat]/100)) - if user.fns.predictableRandom() <= chance*(1+user._statsComputed[stat]/100) then 1.5 + (.02*user._statsComputed[stat]) + s = user._statsComputed[stat] + if user.fns.predictableRandom() <= chance*(1 + s/100) + 1.5 + 4*s/(s + 200) else 1 ###