From 602d38794539ebeae84c01b293340ece62906af2 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 26 Feb 2021 14:07:18 -0300 Subject: Use a Constant - CRAFT_MAXLV - instead of hard-coded 200 --- npc/craft/options.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'npc/craft') 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) { -- cgit v1.2.3-60-g2f50