Making Meditation a bit safer.

All new ideas for the upcoming releases of ToME 4.x.x should be discussed here

Moderator: Moderator

Post Reply
Message
Author
edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

Making Meditation a bit safer.

#1 Post 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,
}

Feanor.81
Wyrmic
Posts: 239
Joined: Mon Aug 23, 2010 12:52 pm
Location: Poggibonsi (Siena), Italy

Re: Making Meditation a bit safer.

#2 Post by Feanor.81 »

Just a note: this would make good use of the preUseTalent events yufra proposed in the Development section.
Don't fear the eyes of the Dark Lord / Morgoth I cry
All hope is gone, but I swear revenge / Hear my oath
I will take part in your damned fate

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Making Meditation a bit safer.

#3 Post by darkgod »

Done
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

Re: Making Meditation a bit safer.

#4 Post by edge2054 »

Maybe now that Meditation is a daze instead of a stun it *should* be usable with monsters in sight.

Vee
Thalore
Posts: 127
Joined: Tue Nov 02, 2010 10:27 pm

Re: Making Meditation a bit safer.

#5 Post 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.
greycat wrote:An intervention was required (kill -9)

edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

Re: Making Meditation a bit safer.

#6 Post 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.

Post Reply