summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/craft/options.txt6
1 files changed, 6 insertions, 0 deletions
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);