diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-02-26 14:07:18 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-02-26 14:07:18 -0300 |
commit | 602d38794539ebeae84c01b293340ece62906af2 (patch) | |
tree | 3c541dfd133bd33389916c84056841f57443e2ea | |
parent | bf1f850dbc4989a968cc7af38011e7658c3cf2fc (diff) | |
download | serverdata-602d38794539ebeae84c01b293340ece62906af2.tar.gz serverdata-602d38794539ebeae84c01b293340ece62906af2.tar.bz2 serverdata-602d38794539ebeae84c01b293340ece62906af2.tar.xz serverdata-602d38794539ebeae84c01b293340ece62906af2.zip |
Use a Constant - CRAFT_MAXLV - instead of hard-coded 200
-rw-r--r-- | db/constants.conf | 1 | ||||
-rw-r--r-- | npc/craft/options.txt | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/db/constants.conf b/db/constants.conf index ccbe0dfd6..963c8777c 100644 --- a/db/constants.conf +++ b/db/constants.conf @@ -2317,6 +2317,7 @@ constants_db: { PVP_WAITTIME: 1800 // 30 minutes PCBLOCK_HARD: 255 // Move+Attack+Skill+Item+Chat+Immune+SitStand+Commands PCBLOCK_SOFT: 47 // Move+Attack+Skill+Item+Immune + CRAFT_MAXLV: 200 BCONFN_SPAWN: 70 BCONFD_SPAWN: 100 BCONFN_MOBHP: 95 // TODO: Maybe we don't want this constant? (ie. variable) diff --git a/npc/craft/options.txt b/npc/craft/options.txt index 6264734e6..f06b78c83 100644 --- a/npc/craft/options.txt +++ b/npc/craft/options.txt @@ -1106,8 +1106,8 @@ function script csysGUI_RaiseOpt { .@pc=csysGUI_OptPrice(.@sk); .@lv=getd("CRAFTSYS["+.@sk+"]"); if (csysGUI_OptReq(.@sk)) { - if (.@lv > 200) { - mesc l("You cannot raise crafting skills beyond level @@!", 200), 1; + if (.@lv > CRAFT_MAXLV) { + mesc l("You cannot raise crafting skills beyond level @@!", CRAFT_MAXLV), 1; return false; } if (Mobpt >= .@pc) { |