Opened 9 years ago

Last modified 6 years ago

#591 assigned change

Monster recovery should happen each turn regardless of how far away monsters are from the player

Reported by: takkaria Owned by: GabeCunningham
Milestone: v4 Keywords: monster ai
Cc:

Description (last modified by takkaria)

As far as I can tell, if a monster is fully healed but stunned/confused/afraid and is half a dungeon away from the player, those status effects will not go away.

The problem here is as follows:

  • player hurts monster (lots)
  • monster runs away to other side of the dungeon
  • monster gets up to full HP (because monster HP recovers regardless of distance, see dungeon.c:regen_monsters())
  • because monster is out of range from the player and is fully healed, the status effects don't go away (see melee2.c:process_monsters())

Suggested fix:

  • heal status effects regardless of distance

process_monster() in melee2.c is a bit horrific and needs splitting out into smaller functions, too. Should move regen_monsters() to melee2.c too.

Change History (11)

comment:1 Changed 8 years ago by magnate

This will make Sauron a whole lot tougher.

comment:2 Changed 8 years ago by magnate

  • Keywords monster added

comment:3 Changed 7 years ago by magnate

  • Status changed from new to confirmed

comment:4 Changed 7 years ago by magnate

  • Type changed from bug to change

comment:5 Changed 7 years ago by magnate

  • Keywords monster,interesting added; monster removed

comment:6 Changed 7 years ago by takkaria

  • Milestone changed from 4.0 to 3.3.0

comment:7 Changed 6 years ago by takkaria

  • Description modified (diff)

comment:8 Changed 6 years ago by takkaria

  • Keywords monster ai added; monster,interesting removed

comment:9 Changed 6 years ago by magnate

  • Milestone changed from 3.3.0 to Future

Punting in accordance with new milestone policy (that any other milestone is only set once someone is actually working on the ticket).

comment:10 Changed 6 years ago by GabeCunningham

  • Milestone changed from Future to 3.4.0
  • Owner set to GabeCunningham
  • Status changed from confirmed to assigned

comment:11 Changed 6 years ago by magnate

  • Milestone changed from 3.4.0 to 4.0

Initial assignment to v4 per http://trac.rephial.org/roadmap

Note: See TracTickets for help on using tickets.