From 283928d2a1f5cbe278ab70cece7d5f9951766754 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 7 Jul 2020 19:16:07 -0300 Subject: Looping over all magics searching for same class spells is not optimal. But is easier to code than a hack with setd/getd --- npc/config/magic.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'npc/config') 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; } -- cgit v1.2.3-70-g09d2