From d1b46fae726f8e8a840cce60c7ba859315361b08 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 8 Jun 2020 13:24:49 -0300 Subject: >.< --- npc/craft/options.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'npc/craft/options.txt') 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; -- cgit v1.2.3-60-g2f50