summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-10-19 03:18:24 -0300
committerJesusaves <cpntb1@ymail.com>2019-10-19 03:18:24 -0300
commit55189d66c80ef2d561751a27857d0706feaa5b00 (patch)
treeb74200d56a88fa7f1c2115f04d41cb17d70e7355
parentc54af539bc4d1f7f1e537fb87b0e4eaaeba3899c (diff)
downloadserverdata-55189d66c80ef2d561751a27857d0706feaa5b00.tar.gz
serverdata-55189d66c80ef2d561751a27857d0706feaa5b00.tar.bz2
serverdata-55189d66c80ef2d561751a27857d0706feaa5b00.tar.xz
serverdata-55189d66c80ef2d561751a27857d0706feaa5b00.zip
Safeguard from having, eg. +0 Agi - that makes NO SENSE
-rw-r--r--npc/craft/options.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt
index 6d718a9f8..79fc6833e 100644
--- a/npc/craft/options.txt
+++ b/npc/craft/options.txt
@@ -425,7 +425,7 @@ function script csys_BonusCalc {
// Armor? Crap it to 25%
if (@csysArmor)
- .@base=.@base/4;
+ .@base=max(1, .@base/4);
return .@base;