diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-06-08 13:24:49 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-06-08 13:24:49 -0300 |
commit | d1b46fae726f8e8a840cce60c7ba859315361b08 (patch) | |
tree | ab557df71d72c9370b6ae8d2942555ba472743f1 /npc/craft/options.txt | |
parent | 8796e266d7fcf4bd294d63e0834bb2980c97aa3c (diff) | |
download | serverdata-d1b46fae726f8e8a840cce60c7ba859315361b08.tar.gz serverdata-d1b46fae726f8e8a840cce60c7ba859315361b08.tar.bz2 serverdata-d1b46fae726f8e8a840cce60c7ba859315361b08.tar.xz serverdata-d1b46fae726f8e8a840cce60c7ba859315361b08.zip |
>.<
Diffstat (limited to 'npc/craft/options.txt')
-rw-r--r-- | npc/craft/options.txt | 11 |
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; |