Finish score/wakeMonster tidy (scoreSlot; drop unused return)

This commit is contained in:
2026-07-22 22:02:02 +07:00
parent 8895db530d
commit ff7ee95395
2 changed files with 21 additions and 18 deletions

View File

@@ -116,7 +116,7 @@ func (g *RogueGame) wanderer() {
// wakeMonster is what to do when the hero steps next to a monster
// (monsters.c wake_monster).
func (g *RogueGame) wakeMonster(y, x int) *Monster {
func (g *RogueGame) wakeMonster(y, x int) {
p := &g.Player
tp := g.Level.MonsterAt(y, x)
@@ -143,8 +143,6 @@ func (g *RogueGame) wakeMonster(y, x int) *Monster {
tp.Dest = &p.Pos
}
}
return tp
}
// meanWakes decides whether a sleeping mean monster starts the chase