summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);