From 4183a14db9736b6289fa4d5ed81da72261f183e0 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 22 Jan 2021 17:34:26 -0300 Subject: Allow Ihclot to have better chances at AOE --- npc/craft/options.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'npc') 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); -- cgit v1.2.3-60-g2f50