Page 1 of 1

Block resting if you've recently been attacked

Posted: Sun Nov 27, 2011 5:23 am
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.

Re: Block resting if you've recently been attacked

Posted: Sun Nov 27, 2011 9:54 am
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:

Re: Block resting if you've recently been attacked

Posted: Sun Nov 27, 2011 7:54 pm
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.

Re: Block resting if you've recently been attacked

Posted: Sun Nov 27, 2011 8:15 pm
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.

Re: Block resting if you've recently been attacked

Posted: Mon Nov 28, 2011 1:13 am
by darkgod
fixed

Re: Block resting if you've recently been attacked

Posted: Wed Dec 07, 2011 10:34 am
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.

Re: Block resting if you've recently been attacked

Posted: Wed Dec 07, 2011 11:23 am
by darkgod
Why do you need a numpad ? You can bind the spend a turn key to any key you wish

Re: Block resting if you've recently been attacked

Posted: Wed Dec 07, 2011 3:20 pm
by Rectifier
I'd recommend shift+r, forces you to use an extra key so you don't press it on accident.