Code: Select all
newTalent{
name = "Lethality",
type = {"cunning/lethality", 1},
mode = "passive",
points = 5,
require = cuns_req1,
critpower = function(self, t) return self:combatTalentScale(t, 7.5, 25, 0.75) end,
-- called by _M:combatCrit in mod.class.interface.Combat.lua
getCriticalChance = function(self, t) return self:combatTalentScale(t, 2.3, 7.5, 0.75) end,
passives = function(self, t, p)
self:talentTemporaryValue(p, "combat_critical_power", t.critpower(self, t))
end,
info = function(self, t)
local critchance = t.getCriticalChance(self, t)
local power = t.critpower(self, t)
return ([[You have learned to find and hit weak spots. All your strikes have a %0.2f%% greater chance to be critical hits, and your critical hits do %0.1f%% more damage.
Also, when using knives, you now use your Cunning instead of your Strength for bonus damage.]]):
format(critchance, power)
end,
}
I dont see any references to external files here, and I'm not pulling anything up in my quick searches checking for the lethality talent.
I ask, because I want to make one that does something similar but for a different weapon type.