Ensure world tick properties are properly named in json

This commit is contained in:
Marc Di Luzio 2020-07-07 18:37:45 +01:00
parent 20385c5ae7
commit 526e9c69eb

View file

@ -39,10 +39,10 @@ type World struct {
words []string
// TicksPerDay is the amount of ticks in a single day
TicksPerDay int
TicksPerDay int `json:"ticks-per-day"`
// Current number of ticks from the start
CurrentTicks int
CurrentTicks int `json:"current-ticks"`
}
var wordsFile = os.Getenv("WORDS_FILE")