summaryrefslogtreecommitdiff
path: root/world/map/npc/items/require_stat.txt
diff options
context:
space:
mode:
authormekolat <mekolat@gmail.com>2015-04-19 15:37:54 -0400
committermekolat <mekolat@users.noreply.github.com>2015-04-30 01:41:56 -0400
commit6df037322b925220dd503746692200b9aff5d2d4 (patch)
tree9c7fccf1cecea4f1120e2fbad3c71f1df03094ef /world/map/npc/items/require_stat.txt
parentbf3c1c0e4add6a5d8a52b043a30775eada1cef2f (diff)
downloadserverdata-6df037322b925220dd503746692200b9aff5d2d4.tar.gz
serverdata-6df037322b925220dd503746692200b9aff5d2d4.tar.bz2
serverdata-6df037322b925220dd503746692200b9aff5d2d4.tar.xz
serverdata-6df037322b925220dd503746692200b9aff5d2d4.zip
add new consts for the params
Diffstat (limited to 'world/map/npc/items/require_stat.txt')
-rw-r--r--world/map/npc/items/require_stat.txt7
1 files changed, 2 insertions, 5 deletions
diff --git a/world/map/npc/items/require_stat.txt b/world/map/npc/items/require_stat.txt
index 27d215f9..87ecf22a 100644
--- a/world/map/npc/items/require_stat.txt
+++ b/world/map/npc/items/require_stat.txt
@@ -13,14 +13,11 @@ function|script|RequireStat
set @bStatVal, @bStat;
// If the requirement isn't met, we set an unequip trigger.
// The item is now removed.
- if (@bStatVal < @minbStatVal)
+ if (@bStat < @minbStatVal)
goto L_Unequip;
- goto L_Return;
+ return;
L_Unequip:
callfunc "UnequipLater";
- goto L_Return;
-
-L_Return:
return;
}