diff --git a/game/modules/tome/data/talents/spells/divination.lua b/game/modules/tome/data/talents/spells/divination.lua index ca0fd6559aaa3913d541252ae77cf376de02036e..d88efd61c5e1d13b99c3180615326fa9cc8fb355 100644 --- a/game/modules/tome/data/talents/spells/divination.lua +++ b/game/modules/tome/data/talents/spells/divination.lua @@ -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) diff --git a/game/modules/tome/data/talents/spells/water.lua b/game/modules/tome/data/talents/spells/water.lua index e3e95e53398b9a0b8db5191e3b03ab1af206b602..84cf860abbdcb2f7ae3d953f540ad375a79cf95c 100644 --- a/game/modules/tome/data/talents/spells/water.lua +++ b/game/modules/tome/data/talents/spells/water.lua @@ -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, } diff --git a/game/modules/tome/data/timed_effects.lua b/game/modules/tome/data/timed_effects.lua index aedc3e8f7cbcfb058c3aa200cba43c9043481860..c8efcb38adcd7ede85775e27f2c1361d8f70beaa 100644 --- a/game/modules/tome/data/timed_effects.lua +++ b/game/modules/tome/data/timed_effects.lua @@ -1,3 +1,5 @@ +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, +}