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

Can not avoid one of the possible outcomes of the endgame

git-svn-id: http://svn.net-core.org/repos/t-engine4@2200 51575b47-30f0-44d4-a5cc-537603b46e54
parent c4a87dd6
No related branches found
No related tags found
No related merge requests found
...@@ -166,17 +166,19 @@ function _M:generateList() ...@@ -166,17 +166,19 @@ function _M:generateList()
local list = {} local list = {}
if config.settings.cheat then list[#list+1] = {name="Resurrect by cheating", action="cheat"} end if config.settings.cheat then list[#list+1] = {name="Resurrect by cheating", action="cheat"} end
if self.actor:attr("easy_mode_lifes") then list[#list+1] = {name=("Resurrect with easy mode (%d left)"):format(self.actor.easy_mode_lifes), action="easy_mode"} end if not self.actor.no_resurrect then
if self.actor:attr("blood_life") and not self.actor:attr("undead") then list[#list+1] = {name="Resurrect with the Blood of Life", action="blood_life"} end if self.actor:attr("easy_mode_lifes") then list[#list+1] = {name=("Resurrect with easy mode (%d left)"):format(self.actor.easy_mode_lifes), action="easy_mode"} end
if self.actor:getTalentLevelRaw(self.actor.T_SKELETON_REASSEMBLE) >= 5 and not self.actor:attr("re-assembled") then list[#list+1] = {name="Re-assemble your bones and resurrect (Skeleton ability)", action="skeleton"} end if self.actor:attr("blood_life") and not self.actor:attr("undead") then list[#list+1] = {name="Resurrect with the Blood of Life", action="blood_life"} end
if self.actor:getTalentLevelRaw(self.actor.T_SKELETON_REASSEMBLE) >= 5 and not self.actor:attr("re-assembled") then list[#list+1] = {name="Re-assemble your bones and resurrect (Skeleton ability)", action="skeleton"} end
local consumenb = 1
self.actor:inventoryApplyAll(function(inven, item, o) local consumenb = 1
if o.one_shot_life_saving and (not o.slot or inven.worn) then self.actor:inventoryApplyAll(function(inven, item, o)
list[#list+1] = {name="Resurrect by consuming "..o:getName{do_colour=true}, action="consume"..consumenb, inven=inven, item=item, object=o} if o.one_shot_life_saving and (not o.slot or inven.worn) then
consumenb = consumenb + 1 list[#list+1] = {name="Resurrect by consuming "..o:getName{do_colour=true}, action="consume"..consumenb, inven=inven, item=item, object=o}
end consumenb = consumenb + 1
end) end
end)
end
list[#list+1] = {name="Character dump", action="dump"} list[#list+1] = {name="Character dump", action="dump"}
list[#list+1] = {name="Restart the same character", action="exit", subaction="restart"} list[#list+1] = {name="Restart the same character", action="exit", subaction="restart"}
......
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