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

ent-draught

git-svn-id: http://svn.net-core.org/repos/t-engine4@262 51575b47-30f0-44d4-a5cc-537603b46e54
parent d728e114
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ newTalent{
name = "Indentify",
type = {"spell/divination", 2},
require = spells_req2,
points = 3,
points = 5,
mana = 20,
cooldown = 20,
action = function(self, t)
......
......@@ -28,13 +28,14 @@ newTalent{
type = {"spell/water", 2},
require = spells_req2,
points = 5,
mana = 10,
mana = 30,
cooldown = 100,
action = function(self, t)
self:setEffect(self.EFF_ALL_STAT, 20, {power=1+self:combatSpellpower(0.01) * self:getTalentLevel(t)})
return true
end,
info = function(self, t)
return ([[Confures some Ent-draught to fill your stomach.]])
return ([[Confures some Ent-draught to fill your stomach and boost your stats by %d for 20 turns.]]):format(1+self:combatSpellpower(0.01) * self:getTalentLevel(t))
end,
}
......
local Stats = require "engine.interface.ActorStats"
newEffect{
name = "CUT",
desc = "Bleeding",
......@@ -279,3 +281,25 @@ newEffect{
self:removeTemporaryValue("detect_trap", eff.tid)
end,
}
newEffect{
name = "ALL_STAT",
desc = "All stats increase",
type = "magical",
status = "beneficial",
parameters = { power=1 },
activate = function(self, eff)
eff.stat = self:addTemporaryValue("stats",
{
[Stats.STAT_STR] = eff.power,
[Stats.STAT_DEX] = eff.power,
[Stats.STAT_MAG] = eff.power,
[Stats.STAT_WIL] = eff.power,
[Stats.STAT_CUN] = eff.power,
[Stats.STAT_CON] = eff.power,
})
end,
deactivate = function(self, eff)
self:removeTemporaryValue("stats", eff.stat)
end,
}
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