(R)est: how long do you want to rest?

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

Moderator: Moderator

Post Reply
Message
Author
PowerWyrm
Sher'Tul
Posts: 1106
Joined: Thu Nov 21, 2002 9:53 pm

(R)est: how long do you want to rest?

#1 Post by PowerWyrm »

Currently, resting is automatic. You will rest as long as there's no hostile monster around and your HP/MP are less than your maximum.
In beta 13, Teleport to Angolwen takes 50 turns to trigger... I can tell you it's starting to be really boring to press 50 times the "5" key to trigger the talent. Rest should allow you to enter a number of turns to bypass the fact that your HP/MP are restored to their max.

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: (R)est: how long do you want to rest?

#2 Post by yufra »

Agreed. I'll tinker with this a bit.
<DarkGod> lets say it's intended

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: (R)est: how long do you want to rest?

#3 Post by yufra »

If you want to add this to mod/class/Game.lua at the end of "self.key:addCommands" you can see if that is what you want. The key binding is Ctrl+r, and can be made more permanent later.

Code: Select all

		[{"_r","ctrl"}] = function()
			local q = engine.dialogs.GetQuantity.new(
				"Resting", "How many turns to rest?",
				1, nil, function(qty)
				self.player:restInit(qty)
			end)
			self:registerDialog(q)
		end,
<DarkGod> lets say it's intended

Zonk
Sher'Tul
Posts: 1067
Joined: Sat Mar 01, 2003 4:01 pm

Re: (R)est: how long do you want to rest?

#4 Post by Zonk »

Yeah, noticed this.
Maybe it would be better to simply make you keep resting until you are teleported back? Basically, if you have a recall-type condition, that would make rest NOT stop.
ToME online profile: http://te4.org/users/zonk
Addons (most likely obsolete): Wights, Trolls, Starting prodigy, Alternate save/resistance system

Post Reply