Merge refactor/fix-nonamedreturns

This commit is contained in:
2026-07-07 02:35:18 +02:00

View File

@@ -38,9 +38,9 @@ func (g *RogueGame) runners(int) {
} }
// moveMonster executes a single turn of running for a monster (chase.c // moveMonster executes a single turn of running for a monster (chase.c
// move_monst). removed reports that the monster died or left the level // move_monst). The result reports that the monster died or left the
// (the C -1 return). // level (the C -1 return).
func (g *RogueGame) moveMonster(tp *Monster) (removed bool) { func (g *RogueGame) moveMonster(tp *Monster) bool {
if !tp.On(Slowed) || tp.Turn { if !tp.On(Slowed) || tp.Turn {
if g.chaseStep(tp) { if g.chaseStep(tp) {
return true return true