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

Added two hooks "Game:changeLevel" and "PartyIngredients:collectIngredient"

parent f25336af
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -1414,6 +1414,8 @@ function _M:changeLevelReal(lev, zone, params)
self.change_level_party_back = nil
self:dieClonesDie()
self:triggerHook{"Game:changeLevel"}
end
function _M:dieClonesDie()
......
......@@ -88,6 +88,7 @@ function _M:collectIngredient(id, nb, silent)
end
game.log("You collect a new ingredient: #LIGHT_GREEN#%s%s (%d)#WHITE#.", d.display_entity:getDisplayString(), _t(d.name), nb)
end
self:triggerHook{"PartyIngredients:collectIngredient", id=id, nb=nb, silent=silent}
end
function _M:hasIngredient(id, nb)
......
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