summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-05 14:34:58 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-05 14:34:58 -0300
commitd171c74bd3439206836a6d9caee609c2f02f9f06 (patch)
tree548263721f7b2f3d50270e1515ca14169fc540ad
parent9ccf6eb01bc29912abb1117e95e0da260877c96b (diff)
downloadserverdata-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.
-rw-r--r--npc/craft/options.txt7
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;
}