Skip to content
Snippets Groups Projects
Commit e96a567f authored by DarkGod's avatar DarkGod
Browse files

mwawawa

parent cfec2c5a
No related branches found
No related tags found
No related merge requests found
......@@ -253,8 +253,6 @@ Again, thank you, and enjoy Eyal!
#{italic}#Your malevolent local god of darkness, #GOLD#DarkGod#{normal}#]]):format(data.donated, data.donated * 10, data.items_vault_slots)
Dialog:simpleLongPopup("Thank you!", text, 600)
elseif self.uc_ext then
self.uc_ext:event(e)
end
elseif e.se == "SelfJoin" then
self:addMessage("join", e.channel, profile.auth.login, e.channel, "#{italic}#Joined channel#{normal}#", nil, true)
......@@ -329,6 +327,10 @@ Again, thank you, and enjoy Eyal!
self.channels_changed = true
end
if self.uc_ext then
self.uc_ext:event(e)
end
for fct, _ in pairs(self.on_event) do
fct(e)
end
......
......@@ -86,5 +86,13 @@ function _M:event(e)
else
self:triggerHook{"UserChat:event", color=color, e=e, data=data}
end
elseif e.se == "Talk" then
-- Shake screen?
if e.login == "darkgod" then
if e.msg == e.msg:upper() and #e.msg >= 10 then
game:shakeScreen(30, 5)
game.log("SHAKING")
end
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment