diff options
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) |