summaryrefslogtreecommitdiff
path: root/npc/craft/options.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/craft/options.txt')
-rw-r--r--npc/craft/options.txt8
1 files changed, 3 insertions, 5 deletions
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;
}