feat: state transition to collect quotes only when in state idle
This commit is contained in:
parent
5611f852b1
commit
c12e1d36f8
@ -5,7 +5,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (gm *Game) CollectQuotes() {
|
func (gm *Game) CollectQuotes() {
|
||||||
err := gm.changeGameState(STATE_ANY, STATE_COLLECT, PHASE_NONE)
|
err := gm.changeGameState(STATE_IDLE, STATE_COLLECT, PHASE_NONE)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user