From 84c87cc99be29a694f0ffe83ab7a06ae433bb0cd Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Fri, 2 Mar 2012 23:17:07 +0100 Subject: Use callbacks for items, monsters and status effects Previously, global function names were defined in the respective XML definitions of items, monsters and status effects. This was reasonable when they all had the same state, but now they're sharing the single global Lua state. Now the Lua API provides access to the ItemClass, MonsterClass and StatusEffect instances, on which callbacks for both standard and custom events can be explicitly set. Reviewed-by: Erik Schilling --- example/items.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/items.xml') diff --git a/example/items.xml b/example/items.xml index 730e5729..cdbc3e44 100644 --- a/example/items.xml +++ b/example/items.xml @@ -68,7 +68,7 @@ max-per-slot="30" value="15"> -