summaryrefslogtreecommitdiff
path: root/npc/craft
diff options
context:
space:
mode:
Diffstat (limited to 'npc/craft')
-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;
}