Opened 11 years ago

Closed 11 years ago

#536 closed bug (fixed (in master))

Stepping next to a sleeping monster should not allow it to wake up *and* hit in the same turn

Reported by: takkaria Owned by:
Milestone: 3.1.0 Keywords:
Cc:

Description

Eddie Grove wrote:

I wonder if this is just me, or if others share my peeve.

It really bugs me when I step next to a sleeping monster and it hits me.

IMO waking up should take a turn. So I should step adjacent, it wakes up,
and then I get the first swing in. The easiest way to do this would be
to start the monster with -100 energy rather than 0 energy when it wakes.

Another one I agree. This would also prevent most instant deaths by melee when you go downstairs. (carrion crawler next to stairs, no FA).

Attachments (1)

wakedelay.1036.patch (3.5 KB) - added by d_m 11 years ago.
patch to delay monsters that just woke up

Download all attachments as: .zip

Change History (3)

comment:1 Changed 11 years ago by d_m

Turns out that the code that wakes monsters up when you're walking around happens after the energy checks. This patch gives basically the same effect by treating monsters who just woke up like sleeping monsters (after waking them of course). It's less trivial than initially expected though.

Changed 11 years ago by d_m

patch to delay monsters that just woke up

comment:2 Changed 11 years ago by takkaria

  • Resolution set to fixed
  • Status changed from new to closed

in [663a76b] (SVN r1061), thanks

Note: See TracTickets for help on using tickets.