Adding default values for the Royale ruleset and game map (#119)

This commit is contained in:
Chris Hoefgen 2022-12-05 15:11:34 -08:00 committed by GitHub
parent 82e1999126
commit 0bc228ff34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ func (m RoyaleHazardsMap) PostUpdateBoard(lastBoardState *rules.BoardState, sett
// Royale uses the current turn to generate hazards, not the previous turn that's in the board state
turn := lastBoardState.Turn + 1
shrinkEveryNTurns := settings.Int(rules.ParamShrinkEveryNTurns, 0)
shrinkEveryNTurns := settings.Int(rules.ParamShrinkEveryNTurns, 20)
if shrinkEveryNTurns < 1 {
return errors.New("royale game can't shrink more frequently than every turn")
}