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
|
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user