From 30aee5090f65b58c70f888ea203ef2e73fbd4744 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 10 Jun 2015 19:15:16 +0100 Subject: register_on_unlock and on_unlock --- triggers.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'triggers.lua') 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) -- cgit v1.2.3