What exactly does Amplification do?
Moderator: Moderator
What exactly does Amplification do?
The description says that it increases feedback gain by a fixed percentage, but also that the amount scales with Mindpower. I don't see how those things can both be true.
Re: What exactly does Amplification do?
Code: Select all
newTalent{
name = "Amplification",
type = {"psionic/feedback", 3},
points = 5,
require = psi_wil_req3,
mode = "passive",
-- called by _M:onTakeHit in mod.class.Actor.lua
getFeedbackGain = function(self, t)
if self:getTalentLevel(t) <= 0 then return 0 end
return self:combatTalentScale(t, 0.15, 0.5, 0.75)
end,
getMaxFeedback = function(self, t) return self:getTalentLevelRaw(t) * 10 end,
on_learn = function(self, t)
self:incMaxFeedback(10)
end,
on_unlearn = function(self, t)
self:incMaxFeedback(-10)
end,
info = function(self, t)
local max_feedback = t.getMaxFeedback(self, t)
local gain = t.getFeedbackGain(self, t)
return ([[Increases your maximum Feedback by %d, and increases your base Feedback gain ratio to %d%%.
The Feedback gain will scale with your Mindpower.]]):format(max_feedback, gain * 100)
end,
info = function(self, t)
local max_feedback = t.getMaxFeedback(self, t)
local gain = t.getFeedbackGain(self, t)
local feedbackratio = self:callTalent(self.T_FEEDBACK_POOL, "getFeedbackRatio")
return ([[Increases your maximum Feedback by %d, and increases the Feedback you gain from damage by %0.1f%% (to %0.1f%% of damage received).
The Feedback gain will scale with your Mindpower.]]):format(max_feedback, gain*100, feedbackratio*100)
end,
}
A little bit of a starters guide written by yours truly here.