summaryrefslogtreecommitdiff
path: root/npc/craft/options.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-22 17:34:26 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-22 17:34:26 -0300
commit4183a14db9736b6289fa4d5ed81da72261f183e0 (patch)
treede26103b6004e8ba95609c1598a4f9a2106010d2 /npc/craft/options.txt
parentb3cf0c4a7628a4cec897ccdc86130e2b8d71b565 (diff)
downloadserverdata-4183a14db9736b6289fa4d5ed81da72261f183e0.tar.gz
serverdata-4183a14db9736b6289fa4d5ed81da72261f183e0.tar.bz2
serverdata-4183a14db9736b6289fa4d5ed81da72261f183e0.tar.xz
serverdata-4183a14db9736b6289fa4d5ed81da72261f183e0.zip
Allow Ihclot to have better chances at AOE
Diffstat (limited to 'npc/craft/options.txt')
-rw-r--r--npc/craft/options.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt
index f77600a8b..36efa1b5e 100644
--- a/npc/craft/options.txt
+++ b/npc/craft/options.txt
@@ -410,10 +410,10 @@ function script csys_Multiplier {
// Remove problematic bonuses from armors
// Use getiteminfo before
-// csys_ArmorFix( item )
+// csys_ArmorFix( item{, perfect=False} )
function script csys_ArmorFix {
// Rare bonus
- if (rand2(100) >= 5)
+ if (rand2(100) >= 5 && !getarg(0, false))
array_remove(@csys_attr, IOPT_SPLASHDAMAGE);
// Remove bonuses
@@ -666,7 +666,7 @@ function script csys_ApplyPerfect {
getinventorylist();
.@itemid=@inventorylist_id[.@id];
if (getiteminfo(.@itemid, ITEMINFO_TYPE) != IT_WEAPON)
- csys_ArmorFix(.@itemid);
+ csys_ArmorFix(.@itemid, (rand2(.@lv/10) != 0));
else
csys_WeaponFix(.@itemid);
.@eqplv=getiteminfo(.@itemid, ITEMINFO_ELV);