only spawn centre food on setup when settings.MinimumFood is > 0 (#106)
This commit is contained in:
parent
ba3b882e1b
commit
7fa55be26c
1 changed files with 4 additions and 2 deletions
|
|
@ -63,8 +63,10 @@ func (m ArcadeMazeMap) SetupBoard(initialBoardState *rules.BoardState, settings
|
|||
editor.AddHazard(hazard)
|
||||
}
|
||||
|
||||
if settings.MinimumFood > 0 {
|
||||
// Add food in center
|
||||
editor.AddFood(rules.Point{X: 9, Y: 11})
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue