Skip to content
Snippets Groups Projects
Commit afaa9346 authored by dg's avatar dg
Browse files

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@6365 51575b47-30f0-44d4-a5cc-537603b46e54
parent 830a9d01
No related branches found
No related tags found
No related merge requests found
......@@ -131,6 +131,8 @@ function _M:use(item)
for i, e in ipairs(l) do
game.level:removeEntity(e)
end
elseif act == "all-ingredients" then
game.party:giveAllIngredients(100)
else
self:triggerHook{"DebugMain:use", act=act}
end
......@@ -152,6 +154,7 @@ function _M:generateList()
list[#list+1] = {name="Create Trap", dialog="CreateTrap"}
list[#list+1] = {name="Remove all creatures", action="remove-all"}
list[#list+1] = {name="Semi-Godmode", action="semigodmode"}
list[#list+1] = {name="Give all ingredients", action="all-ingredients"}
self:triggerHook{"DebugMain:generate", menu=list}
local chars = {}
......
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