summaryrefslogtreecommitdiff
path: root/npc/craft
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-22 09:26:23 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-22 09:26:23 -0300
commit347545c66451f77e175440bcf8028ab0f7304f45 (patch)
tree19a71f9ed58d354a2042267edf51071680bb3e29 /npc/craft
parentd4be84026af485dc45822995a75c4824155440ed (diff)
downloadserverdata-347545c66451f77e175440bcf8028ab0f7304f45.tar.gz
serverdata-347545c66451f77e175440bcf8028ab0f7304f45.tar.bz2
serverdata-347545c66451f77e175440bcf8028ab0f7304f45.tar.xz
serverdata-347545c66451f77e175440bcf8028ab0f7304f45.zip
Armor below lv 20 no longer can have crit DMG or Splash bonus.
Also affects tings
Diffstat (limited to 'npc/craft')
-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);