diff options
author | rubenwardy <rubenwardy@gmail.com> | 2015-06-10 19:15:16 +0100 |
---|---|---|
committer | rubenwardy <rubenwardy@gmail.com> | 2016-07-29 16:02:14 +0100 |
commit | 30aee5090f65b58c70f888ea203ef2e73fbd4744 (patch) | |
tree | 56e32c2f2fa08e3f98ed5d3ec206275f3edfb85b /triggers.lua | |
parent | cfe11a57c71b1d84db35897b591fa66efac0c860 (diff) |
register_on_unlock and on_unlock
Diffstat (limited to 'triggers.lua')
-rw-r--r-- | triggers.lua | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/triggers.lua b/triggers.lua index ccb2c26..f1383e8 100644 --- a/triggers.lua +++ b/triggers.lua @@ -14,43 +14,43 @@ -- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -- -awards.register_trigger("dig", function(name, def) +awards.register_trigger("dig", function(def) local tmp = { - award = name, + award = def.name, node = def.trigger.node, target = def.trigger.target } table.insert(awards.on.dig, tmp) end) -awards.register_trigger("place", function(name, def) +awards.register_trigger("place", function(def) local tmp = { - award = name, + award = def.name, node = def.trigger.node, target = def.trigger.target } table.insert(awards.on.place, tmp) end) -awards.register_trigger("death", function(name, def) +awards.register_trigger("death", function(def) local tmp = { - award = name, + award = def.name, target = def.trigger.target } table.insert(awards.on.death, tmp) end) -awards.register_trigger("chat", function(name, def) +awards.register_trigger("chat", function(def) local tmp = { - award = name, + award = def.name, target = def.trigger.target } table.insert(awards.on.chat, tmp) end) -awards.register_trigger("join", function(name, def) +awards.register_trigger("join", function(def) local tmp = { - award = name, + award = def.name, target = def.trigger.target } table.insert(awards.on.join, tmp) |