summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/craft/options.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt
index c04fe4e62..e4bedaa0e 100644
--- a/npc/craft/options.txt
+++ b/npc/craft/options.txt
@@ -61,7 +61,7 @@ function script csys_Generate {
}
if (rand2(60) < .@lv)
- array_push(@csys_attr, CLASS_DAMAGE_BOSS_TARGET);
+ array_push(@csys_penalty, CLASS_DAMAGE_BOSS_TARGET);
// Update averages
.@avg+=.@lvl;
@@ -480,7 +480,9 @@ function script csys_Apply {
.@max_attr=getarraysize(@csys_attr);
.@max_pena=getarraysize(@csys_penalty);
- //debugmes "We have %d attributes and %d penalties", .@max_attr, .@max_pena;
+ if ($@GM_OVERRIDE)
+ debugmes "We have %d attributes and %d penalties",
+ .@max_attr, .@max_pena;
.@slot=0;
while (.@slot < min(3, .@max_attr)) {
@@ -514,6 +516,11 @@ function script csys_Apply {
.@base-=(CRAFTSYS_CURRENT >= CRGROUP_REGEN ? 2500 : 0); // 2nd tier
.@base-=(CRAFTSYS_CURRENT >= CRGROUP_SCRESIST ? 2500 : 0); // 3rd tier
.@base-=(CRAFTSYS_CURRENT >= CRGROUP_FINAL ? 2500 : 0); // FIN tier
+
+ if ($@GM_OVERRIDE)
+ debugmes "[MALUS] Base is now %d - Chances are of %d%%",
+ .@base, 95000-.@base;
+
if (rand(10000) > 9500-.@base)
break;