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

Arcane Feed and Shadow Feed are now sustains that provide mana regen per turn

git-svn-id: http://svn.net-core.org/repos/t-engine4@1606 51575b47-30f0-44d4-a5cc-537603b46e54
parent 44a39909
No related branches found
No related tags found
No related merge requests found
......@@ -52,18 +52,24 @@ newTalent{
newTalent{
name = "Shadow Feed",
type = {"cunning/shadow-magic", 3},
mode = "sustained",
points = 5,
random_ego = "utility",
cooldown = 5,
stamina = 100,
sustain_stamina = 40,
require = cuns_req3,
range = 20,
action = function(self, t)
self:incMana(40 + self:getTalentLevel(t) * 12)
activate = function(self, t)
local power = self:getTalentLevel(t) / 14
return {
regen = self:addTemporaryValue("mana_regen", power),
}
end,
deactivate = function(self, t, p)
self:removeTemporaryValue("mana_regen", p.regen)
return true
end,
info = function(self, t)
return ([[Regenerates %d mana at the cost of 100 stamina.]]):format(40 + self:getTalentLevel(t) * 12)
return ([[Regenerates %0.2f mana per turn while active.]]):format(self:getTalentLevel(t) / 14)
end,
}
......
......@@ -55,17 +55,24 @@ newTalent{
newTalent{
name = "Arcane Feed",
type = {"technique/magical-combat", 3},
mode = "sustained",
points = 5,
cooldown = 5,
stamina = 100,
sustain_stamina = 40,
require = techs_req3,
range = 20,
action = function(self, t)
self:incMana(40 + self:getTalentLevel(t) * 12)
activate = function(self, t)
local power = self:getTalentLevel(t) / 14
return {
regen = self:addTemporaryValue("mana_regen", power),
}
end,
deactivate = function(self, t, p)
self:removeTemporaryValue("mana_regen", p.regen)
return true
end,
info = function(self, t)
return ([[Regenerates %d mana at the cost of 100 stamina.]]):format(40 + self:getTalentLevel(t) * 12)
return ([[Regenerates %0.2f mana per turn while active.]]):format(self:getTalentLevel(t) / 14)
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