Page 1 of 1

Making Meditation a bit safer.

Posted: Wed Sep 22, 2010 7:16 pm
by edge2054

Code: Select all

newTalent{
	name = "Meditation",
	type = {"wild-gift/call", 1},
	require = gifts_req1,
	points = 5,
	message = "@Source@ meditates on nature.",
	equilibrium = 0,
	cooldown = 150,
	range = 20,
	action = function(self, t)
       local seen = false
        -- Check for visible monsters, only see LOS actors, so telepathy wont prevent it
        core.fov.calc_circle(self.x, self.y, 20, function(_, x, y) return game.level.map:opaque(x, y) end, function(_, x, y)
            local actor = game.level.map(x, y, game.level.map.ACTOR)
            if actor and actor ~= self then seen = true end
        end, nil)
        if seen then
            game.log("There's too much going on for you to use Meditation right now!")
            return
        end
		self:setEffect(self.EFF_STUNNED, 17 - self:getTalentLevel(t), {})
		self:incEquilibrium(-10 - self:getWil(50) * self:getTalentLevel(t))
		game:playSoundNear(self, "talents/spell_generic2")
		return true
	end,
	info = function(self, t)
		return ([[Meditate on your link with Nature. You are considered stunned for %d turns and regenerate %d equilibrium.  Meditating require peace and quiet and may not be cast with hostile creatures in sight.  The effect will increase with your Willpower stat.]]):
		format(17 - self:getTalentLevel(t), 10 + self:getWil(50) * self:getTalentLevel(t))
	end,
}

Re: Making Meditation a bit safer.

Posted: Wed Sep 22, 2010 9:04 pm
by Feanor.81
Just a note: this would make good use of the preUseTalent events yufra proposed in the Development section.

Re: Making Meditation a bit safer.

Posted: Wed Sep 22, 2010 10:27 pm
by darkgod
Done

Re: Making Meditation a bit safer.

Posted: Sun Nov 21, 2010 7:48 pm
by edge2054
Maybe now that Meditation is a daze instead of a stun it *should* be usable with monsters in sight.

Re: Making Meditation a bit safer.

Posted: Mon Nov 22, 2010 3:01 pm
by Vee
*a big ogre is coming on to you*

"Wait! Let me just meditate a bit to regain Equilibrium! OMMMM~"

--

No I don't think that's a good idea.

Re: Making Meditation a bit safer.

Posted: Mon Nov 22, 2010 4:51 pm
by edge2054
Keep in mind distance too and summoners.

No it may not be a good idea to meditate in the middle of combat but it's no longer a fatal idea like it was when I proposed this change.