From d171c74bd3439206836a6d9caee609c2f02f9f06 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 5 Jun 2019 14:34:58 -0300 Subject: If you get the upper 70% cut, we force a re-roll. (Ideally it would be 75%...) It's called the fourth quadrant, and with this, we raise the odds of the result bonus being in the lower three quadrands. Even if with luck it might improve. --- npc/craft/options.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/craft/options.txt b/npc/craft/options.txt index 41fb8ff97..0d1c5481e 100644 --- a/npc/craft/options.txt +++ b/npc/craft/options.txt @@ -342,11 +342,11 @@ function script csys_Multiplier { return 1; case VAR_AGIAMOUNT: case VAR_LUKAMOUNT: + case VAR_DEXAMOUNT: return 4; case VAR_STRAMOUNT: case VAR_VITAMOUNT: case VAR_INTAMOUNT: - case VAR_DEXAMOUNT: case HP_DRAIN: case SP_DRAIN: case IOPT_DOUBLEATTACK: @@ -381,6 +381,11 @@ function script csys_BonusCalc { .@avg=.@avmult/10; .@base=rand2(1, .@avg+1); + // If you are in the upper 70%, we do a re-roll + // It usually will lower the result, but is up to luck + if (.@base >= (.@avg+1)*7/10) + .@base=rand2(1, .@avg+1); + return .@base; } -- cgit v1.2.3-60-g2f50