diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-05 14:34:58 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-05 14:34:58 -0300 |
commit | d171c74bd3439206836a6d9caee609c2f02f9f06 (patch) | |
tree | 548263721f7b2f3d50270e1515ca14169fc540ad /npc/craft/options.txt | |
parent | 9ccf6eb01bc29912abb1117e95e0da260877c96b (diff) | |
download | serverdata-d171c74bd3439206836a6d9caee609c2f02f9f06.tar.gz serverdata-d171c74bd3439206836a6d9caee609c2f02f9f06.tar.bz2 serverdata-d171c74bd3439206836a6d9caee609c2f02f9f06.tar.xz serverdata-d171c74bd3439206836a6d9caee609c2f02f9f06.zip |
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.
Diffstat (limited to 'npc/craft/options.txt')
-rw-r--r-- | npc/craft/options.txt | 7 |
1 files changed, 6 insertions, 1 deletions
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; } |