From 81a88f1dd199691ce570ab124a43740b77a67f03 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Mon, 19 Aug 2013 22:15:26 +0200 Subject: Allowed to push attributeinfos for the attribute recalculation While on it I replaced the id usage in the server with the usage of the AttributeInfo directly. Next steps: - Dehardcode the core attribute ids and store their attributeinfos somewhere in AttributeManager (for now i simply wrapped the ids with getAttributeInfo(). - Move AttributeInfo out of AttributeManager to shorten the usage + to allow using a pointer in ModifierLocation without forward declaring it. --- example/scripts/npcs/postman.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/scripts/npcs') diff --git a/example/scripts/npcs/postman.lua b/example/scripts/npcs/postman.lua index 46802283..2ad2e3ce 100644 --- a/example/scripts/npcs/postman.lua +++ b/example/scripts/npcs/postman.lua @@ -12,7 +12,7 @@ function post_talk(npc, ch) say("Hello " .. ch:name()) - local strength = being_get_attribute(ch, ATTR_STRENGTH) + local strength = being_get_attribute(ch, "Strength"ENGTH) say("You have " .. tostring(strength) .. " strength") say("What would you like to do?") local answer = ask("View Mail", "Send Mail", "Nothing") -- cgit v1.2.3-70-g09d2