summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-07 19:16:07 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-07 19:16:07 -0300
commit283928d2a1f5cbe278ab70cece7d5f9951766754 (patch)
tree3f172b32505516fbd8c25d14dd81149b55544f00
parent4a4d90dfa6ea35094af69753aacf1f66dfacedd7 (diff)
downloadserverdata-283928d2a1f5cbe278ab70cece7d5f9951766754.tar.gz
serverdata-283928d2a1f5cbe278ab70cece7d5f9951766754.tar.bz2
serverdata-283928d2a1f5cbe278ab70cece7d5f9951766754.tar.xz
serverdata-283928d2a1f5cbe278ab70cece7d5f9951766754.zip
Looping over all magics searching for same class spells is not optimal.
But is easier to code than a hack with setd/getd
-rw-r--r--npc/config/magic.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index 24d96db34..c0c639e26 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -281,10 +281,11 @@ function script RegisterMagic {
$@MSK_AMOUNT[.@ski]=.@amo;
$@MSK_COST[.@ski]=.@cos;
+ $@MSK_CLASS[.@ski]=.@cla;
$@MSK_PREREQ[.@ski]=.@pre;
$@MSK_POSTREQ[.@ski]=.@pos;
- //array_push($@MSK_CLASS[.@cla], .@ski); // FIXME: getd()setd()
+ //array_push($@MSK_CLASS[.@cla], .@ski); // 3D Arrays are not supported
array_push($@MSK_MAGIC, .@ski);
return;
}