Block resting if you've recently been attacked

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

Moderator: Moderator

Post Reply
Message
Author
eronarn
Thalore
Posts: 161
Joined: Sun Jan 02, 2011 8:38 pm

Block resting if you've recently been attacked

#1 Post by eronarn »

My resting got stopped - which it often does, with talent cooldowns - so I hit 'r' again. It had actually been an orc grand master assassin attacking me. I died to it before I even realized it was there. This could've been prevented if 'r' only attempted to rest if conditions permit a >1 turn rest, and as there's already a 'wait one turn' key, no functionality would be lost.

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

Re: Block resting if you've recently been attacked

#2 Post by Zonk »

Yeah, you definetely should NOT be allowed to 'rest' one turn with enemies in sight/around. Had this happen to me at least once :shock:
ToME online profile: http://te4.org/users/zonk
Addons (most likely obsolete): Wights, Trolls, Starting prodigy, Alternate save/resistance system

bricks
Sher'Tul
Posts: 1262
Joined: Mon Jun 13, 2011 4:10 pm

Re: Block resting if you've recently been attacked

#3 Post by bricks »

There's a logical breakdown here, though. The game doesn't really know whether or not it will rest for one turn until it gets interrupted after processing that turn.

Perhaps threatening interruptions to resting should, as an option, require a non-standard keypress to clear and allow other actions. I think that's a common feature in many roguelikes.
Sorry about all the parentheses (sometimes I like to clarify things).

tiger_eye
Perspiring Physicist
Posts: 889
Joined: Thu Feb 17, 2011 5:20 am

Re: Block resting if you've recently been attacked

#4 Post by tiger_eye »

bricks wrote:There's a logical breakdown here, though. The game doesn't really know whether or not it will rest for one turn until it gets interrupted after processing that turn.
Nah, it would be easy enough to call "restCheck" before any resting takes place. Alternatively, one could check for visible enemies as is done for auto-explore.

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

Re: Block resting if you've recently been attacked

#5 Post by darkgod »

fixed
[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 ;)

Fela
Wyrmic
Posts: 279
Joined: Sun Aug 29, 2010 5:23 pm
Location: Hessen, Germany

Re: Block resting if you've recently been attacked

#6 Post by Fela »

Fixed HOW?

Not being able to rest at all with enemies in sight would be bad for me as i have no numpad (without the FN key, anyway), which makes passing a turn really awkward now that you cannot simply walk into a wall any more.

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

Re: Block resting if you've recently been attacked

#7 Post by darkgod »

Why do you need a numpad ? You can bind the spend a turn key to any key you wish
[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 ;)

Rectifier
Archmage
Posts: 386
Joined: Mon Aug 29, 2011 8:06 am

Re: Block resting if you've recently been attacked

#8 Post by Rectifier »

I'd recommend shift+r, forces you to use an extra key so you don't press it on accident.

Post Reply