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

be nice on vim talent refund

git-svn-id: http://svn.net-core.org/repos/t-engine4@2827 51575b47-30f0-44d4-a5cc-537603b46e54
parent 8a0a50e1
No related branches found
No related tags found
No related merge requests found
......@@ -1188,7 +1188,7 @@ function _M:die(src)
-- Increase vim
if src and src.knowTalent and src:knowTalent(src.T_VIM_POOL) then src:incVim(1 + src:getWil() / 10) end
if src and src.attr and src:attr("vim_on_death") and not self:attr("undead") then src:incVim(src:attr("vim_on_death")) end
if src and src.last_vim_turn and src.last_vim_turn == game.turn then src:incVim(src.last_vim_spent) src.last_vim_turn = nil end
if src and src.last_vim_turn and src.last_vim_turn >= game.turn - 30 then src:incVim(src.last_vim_spent) src.last_vim_turn = nil end
if src and src.resolveSource and src:resolveSource().player then
-- Achievements
......
No preview for this file type
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