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

Imporved the effect of Blood Sacrifice

Switched Drain and Blood Sacrifice
Killing a creature with a vim using talent will refund that talent's cost
Corruptors now start with Drain instead of Blood Sacrifice and Blood Spray instead of Blood Grasp


git-svn-id: http://svn.net-core.org/repos/t-engine4@2806 51575b47-30f0-44d4-a5cc-537603b46e54
parent 78491734
No related branches found
No related tags found
No related merge requests found
......@@ -1184,6 +1184,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.resolveSource and src:resolveSource().player then
-- Achievements
......@@ -1713,6 +1714,13 @@ function _M:preUseTalent(ab, silent, fake)
game.logSeen(self, "%s uses %s.", self.name:capitalize(), ab.name)
end
end
-- Log vim usage for free vim on kill
if not fake and ab.vim then
self.last_vim_turn = game.turn
self.last_vim_spent = ab.vim
end
return true
end
......
......@@ -63,7 +63,10 @@ It slowly decreases and is replenished by using some talents.
]]
TOOLTIP_VIM = [[#GOLD#Vim#LAST#
Vim represents the amount of life energy/souls you have stolen. Each corruption talent requires some.
Vim represents the amount of life energy you control. Each corruption talent requires some.
It does not regenerates naturally, you need to drain it from yourself or you victims.
Each time you kill a creature you drain 10% of your Willpower as Vim.
Also if you used a Corruption spell that costed Vim to kill a creature, that cost is refunded on death.
]]
TOOLTIP_EQUILIBRIUM = [[#GOLD#Equilibrium#LAST#
......@@ -172,7 +175,7 @@ It represents the fatigue created by wearing heavy equipment.
Not all talents are affected, notably Wild Gifts are not.
]]
TOOLTIP_ARMOR = [[#GOLD#Armour#LAST#
Armour value is a flat damage reduction subtracted from every incoming melee and ranged physical attacks.
Armour value is a damage reduction from every incoming melee and ranged physical attacks.
This is countered by armour penetration and is applied before all kinds of critical damage increase, talent multipliers and damage multiplier, thus making even small amounts have greater effects.
]]
TOOLTIP_DEFENSE = [[#GOLD#Defense#LAST#
......
......@@ -105,7 +105,7 @@ newBirthDescriptor{
},
talents = {
[ActorTalents.T_DRAIN] = 1,
[ActorTalents.T_BLOOD_GRASP] = 1,
[ActorTalents.T_BLOOD_SPRAY] = 1,
[ActorTalents.T_SOUL_ROT] = 1,
[ActorTalents.T_PACIFICATION_HEX] = 1,
},
......
......@@ -72,7 +72,7 @@ newTalent{
return
end
self:incVim(30 + self:combatTalentSpellDamage(t, 5, 200))
self:incVim(30 + self:combatTalentSpellDamage(t, 5, 150))
self:takeHit(self.max_life * 0.4, self)
game:playSoundNear(self, "talents/spell_generic2")
return true
......@@ -81,7 +81,7 @@ newTalent{
return ([[Sacrifices 40%% of your life to restore %d vim.
This only works if there is at least one foe in sight.
The effect will increase with your Magic stat.]]):
format(30 + self:combatTalentSpellDamage(t, 5, 200))
format(30 + self:combatTalentSpellDamage(t, 5, 150))
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