summaryrefslogtreecommitdiff
path: root/example/scripts/npcs/postman.lua
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-08-19 22:15:26 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-08-26 22:56:48 +0200
commit81a88f1dd199691ce570ab124a43740b77a67f03 (patch)
treee5cd82a8b73c1d909f63fb18357daac91f7c0d62 /example/scripts/npcs/postman.lua
parentb379c150cedfbae4775c8358369ec590ad4033f4 (diff)
downloadmanaserv-81a88f1dd199691ce570ab124a43740b77a67f03.tar.gz
manaserv-81a88f1dd199691ce570ab124a43740b77a67f03.tar.bz2
manaserv-81a88f1dd199691ce570ab124a43740b77a67f03.tar.xz
manaserv-81a88f1dd199691ce570ab124a43740b77a67f03.zip
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.
Diffstat (limited to 'example/scripts/npcs/postman.lua')
-rw-r--r--example/scripts/npcs/postman.lua2
1 files changed, 1 insertions, 1 deletions
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")