Drop unused named return on moveMonster (nonamedreturns)
This commit is contained in:
@@ -38,9 +38,9 @@ func (g *RogueGame) runners(int) {
|
||||
}
|
||||
|
||||
// moveMonster executes a single turn of running for a monster (chase.c
|
||||
// move_monst). removed reports that the monster died or left the level
|
||||
// (the C -1 return).
|
||||
func (g *RogueGame) moveMonster(tp *Monster) (removed bool) {
|
||||
// move_monst). The result reports that the monster died or left the
|
||||
// level (the C -1 return).
|
||||
func (g *RogueGame) moveMonster(tp *Monster) bool {
|
||||
if !tp.On(Slowed) || tp.Turn {
|
||||
if g.chaseStep(tp) {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user