Skip to content
Snippets Groups Projects
Commit 132237a0 authored by dg's avatar dg
Browse files

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@5544 51575b47-30f0-44d4-a5cc-537603b46e54
parent 1c72ae7d
No related branches found
No related tags found
No related merge requests found
......@@ -1441,6 +1441,8 @@ end
--- Returns the resistance
function _M:combatGetResist(type)
if self.force_use_resist then type = self.force_use_resist end
local a = (self.resists.all or 0) / 100
local b = (self.resists[type] or 0) / 100
local r = math.min(100 * (1 - (1 - a) * (1 - b)), (self.resists_cap.all or 0) + (self.resists_cap[type] or 0))
......
......@@ -37,3 +37,27 @@ uberTalent{
:format()
end,
}
uberTalent{
name = "Aether Permeation",
mode = "passive",
require = { special={desc="At least 25% arcane damage reduction and having been exposed to the void of space.", fct=function(self)
return self:attr("planetary_orbit") and self:combatGetResist(DamageType.ARCANE) >= 25
end} },
on_learn = function(self, t)
self.resists[DamageType.ARCANE] = (self.resists[DamageType.ARCANE] or 0) + 15
self:attr("max_mana", -70)
self.force_use_resist = DamageType.ARCANE
end,
on_unlearn = function(self, t)
self.resists[DamageType.ARCANE] = (self.resists[DamageType.ARCANE] or 0) - 15
self:attr("max_mana", 70)
self.force_use_resist = nil
end,
info = function(self, t)
return ([[Create a thin layer of aether all around you. Any attack passing through will check arcane resistance instead of the incomming damage resistance.
Also increases your arcane resistance by 15%%.
Your maximum mana will be premanently reduced by 70 to create the effect.]])
:format()
end,
}
......@@ -48,7 +48,7 @@ uberTalent = function(t)
t.require.stat.con = 80
newTalent(t)
end
load("/data/talents/uber/con.lua")
load("/data/talents/uber/const.lua")
uberTalent = function(t)
t.type = {"uber/uber", 1}
......
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