From 0e7bceb46bf56392cb3e7024058147d933720e4f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 1 Jun 2019 00:45:56 -0300 Subject: Fix bugs --- npc/craft/options.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'npc/craft/options.txt') diff --git a/npc/craft/options.txt b/npc/craft/options.txt index 2830aefa6..76862cee5 100644 --- a/npc/craft/options.txt +++ b/npc/craft/options.txt @@ -397,7 +397,6 @@ function script csys_Apply { break; // Apply a bonus using array_pop (it was shuffled so we're fine) - // A pity 1 str and 1 hp is so different. .@vartp=array_pop(@csys_attr); .@bonus=rand(1, (.@lv+.@lv2)/2+1)*csys_Multiplier(.@vartp)+1; setitemoptionbyindex(.@id, .@slot, .@vartp, .@bonus); @@ -413,11 +412,10 @@ function script csys_Apply { if (rand(10000) > 9500-(.@base*.@slt)) break; - // Apply a bonus using array_pop (it was shuffled so we're fine) - // A pity 1 str and 1 hp is so different. + // Apply a malus using array_pop (it was shuffled so we're fine) .@vartp=array_pop(@csys_penalty); - .@bonus=rand(1, (.@lv+.@lv2)/2+1)*csys_Multiplier(.@vartp)+1; - setitemoptionbyindex(.@id, .@slot, .@vartp, .@bonus); + .@malus=rand(1, (.@lv+.@lv2)/2+1)*csys_Multiplier(.@vartp)+1; + setitemoptionbyindex(.@id, .@slot, .@vartp, -(.@malus)); .@slot+=1; .@slt+=1; } -- cgit v1.2.3-60-g2f50