From 347545c66451f77e175440bcf8028ab0f7304f45 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 22 Mar 2021 09:26:23 -0300 Subject: Armor below lv 20 no longer can have crit DMG or Splash bonus. Also affects tings --- npc/craft/options.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/npc/craft/options.txt b/npc/craft/options.txt index 6bb0c1596..7b00bb59d 100644 --- a/npc/craft/options.txt +++ b/npc/craft/options.txt @@ -416,6 +416,12 @@ function script csys_ArmorFix { if (rand2(100) >= 5 && !getarg(1, false)) array_remove(@csys_attr, IOPT_SPLASHDAMAGE); + // Sublevel + if (getiteminfo(getarg(0), ITEMINFO_ELV) < 20) { + array_remove(@csys_attr, IOPT_SPLASHDAMAGE); + array_remove(@csys_attr, IOPT_CRITDMG); + } + // Remove bonuses array_remove(@csys_attr, IOPT_WALKSPEED); array_remove(@csys_attr, HP_DRAIN); -- cgit v1.2.3-60-g2f50