Skip to content
Snippets Groups Projects
Commit bef7967c authored by DarkGod's avatar DarkGod
Browse files

Mindlash psi cost now increases the more it is spammed

parent 34ddb1d6
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,11 @@ newTalent{
local gem_level = getGemLevel(self)
return math.max(c - gem_level, 0)
end,
psi = 10,
psi = function(self, t)
local eff = self:hasEffect(self.EFF_MINDLASH)
local power = eff and eff.power or 1
return 10 * power
end,
tactical = { ATTACK = function(self, t, target)
local val = { PHYSICAL = 2}
local gem_level = getGemLevel(self)
......@@ -94,6 +98,7 @@ newTalent{
end
end
self:setEffect(self.EFF_MINDLASH, 4, {})
return true
end,
info = function(self, t)
......
......@@ -2931,3 +2931,20 @@ newEffect{
self:effectTemporaryValue(eff, "random_talent_cooldown_on_use_turns", eff.turns)
end,
}
newEffect{
name = "MINDLASH", image = "talents/mindlash.png",
desc = "Mindlash",
long_desc = function(self, eff) return ("Repeated mindlash usage is very taxing increasing the psi cost each time (currently %d%%)"):format(eff.power * 100) end,
type = "mental",
subtype = { mind=true },
status = "detrimental",
parameters = { },
on_merge = function(self, old_eff, new_eff)
new_eff.power = old_eff.power + 1
return new_eff
end,
activate = function(self, eff)
eff.power = 2
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