Skip to content
Snippets Groups Projects
Commit 557792c0 authored by dg's avatar dg
Browse files

NPCs Summon talent is now subject to equilibrium failures and each time it is...

NPCs Summon talent is now subject to equilibrium failures and each time it is used its cooldown will increase


git-svn-id: http://svn.net-core.org/repos/t-engine4@1760 51575b47-30f0-44d4-a5cc-537603b46e54
parent 95efe822
No related branches found
No related tags found
No related merge requests found
......@@ -298,9 +298,10 @@ newTalent{
newTalent{
name = "Summon",
type = {"other/other", 1},
cooldown = 4,
type = {"wild-gift/other", 1},
cooldown = 1,
range = 20,
equilibrium = 18,
direct_hit = true,
action = function(self, t)
if not self:canBe("summon") then game.logPlayer(self, "You can not summon, you are suppressed!") return end
......@@ -336,6 +337,10 @@ newTalent{
end
end
end
-- Apply summon destabilization
self:setEffect(self.EFF_SUMMON_DESTABILIZATION, 500, {power=4})
return true
end,
info = function(self, t)
......
......@@ -1202,6 +1202,30 @@ newEffect{
end,
}
newEffect{
name = "SUMMON_DESTABILIZATION",
desc = "Summoning Destabilization",
long_desc = function(self, eff) return ("The more the target summons creatures the longer it will take to summon more (+%d turns)."):format(eff.power) end,
type = "other", -- Type "other" so that nothing can dispel it
status = "detrimental",
parameters = { power=10 },
on_merge = function(self, old_eff, new_eff)
-- Merge the destabilizations
old_eff.dur = new_eff.dur
old_eff.power = old_eff.power + new_eff.power
-- Need to remove and re-add the talents CD
self:removeTemporaryValue("talent_cd_reduction", old_eff.effid)
old_eff.effid = self:addTemporaryValue("talent_cd_reduction", { [self.T_SUMMON] = -old_eff.power })
return old_eff
end,
activate = function(self, eff)
eff.effid = self:addTemporaryValue("talent_cd_reduction", { [self.T_SUMMON] = -eff.power })
end,
deactivate = function(self, eff)
self:removeTemporaryValue("talent_cd_reduction", eff.effid)
end,
}
newEffect{
name = "FREE_ACTION",
desc = "Free Action",
......
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