diff --git a/game/modules/tome/data/talents/psionic/focus.lua b/game/modules/tome/data/talents/psionic/focus.lua index e5916d75c4d4203043c4989d858a644a612e8bfe..c1f79ae348d53255f06da2b111c1099ac58eb471 100644 --- a/game/modules/tome/data/talents/psionic/focus.lua +++ b/game/modules/tome/data/talents/psionic/focus.lua @@ -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) diff --git a/game/modules/tome/data/timed_effects/mental.lua b/game/modules/tome/data/timed_effects/mental.lua index c0f2f9c874302155cafe50998a088209a1dcae71..2eb45045ef3d6b06657051899de6c5de871b23b7 100644 --- a/game/modules/tome/data/timed_effects/mental.lua +++ b/game/modules/tome/data/timed_effects/mental.lua @@ -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, +}