summaryrefslogtreecommitdiff
path: root/npc/craft/options.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-01 00:45:56 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-01 00:45:56 -0300
commit0e7bceb46bf56392cb3e7024058147d933720e4f (patch)
tree4181f1b89ad3c846efb3ac6d62c8e49162e90ad1 /npc/craft/options.txt
parent8f4b058574462b7fd3d481ef545b90e11a768679 (diff)
downloadserverdata-0e7bceb46bf56392cb3e7024058147d933720e4f.tar.gz
serverdata-0e7bceb46bf56392cb3e7024058147d933720e4f.tar.bz2
serverdata-0e7bceb46bf56392cb3e7024058147d933720e4f.tar.xz
serverdata-0e7bceb46bf56392cb3e7024058147d933720e4f.zip
Fix bugs
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;
}