From 8ff7082fab928e954c84a91bc6d7aeea4ac35723 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Thu, 11 May 2023 12:49:37 +0300 Subject: [PATCH] fix(client): rename action phase to play phase --- client/src/game_status/mod.rs | 4 ++-- client/src/game_status/parser.rs | 4 ++-- client/src/plugins/game/ui/mod.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/game_status/mod.rs b/client/src/game_status/mod.rs index d3894f6..ed7edaa 100644 --- a/client/src/game_status/mod.rs +++ b/client/src/game_status/mod.rs @@ -46,8 +46,8 @@ pub struct SupplyPile { pub enum PlayerState { /// e.g. not their turn Idle, - /// action phase, playing cards - ActionPhase, + /// play phase, playing cards + PlayPhase, /// buy phase, buying cards BuyPhase, } diff --git a/client/src/game_status/parser.rs b/client/src/game_status/parser.rs index 5cffdb5..7d262bf 100644 --- a/client/src/game_status/parser.rs +++ b/client/src/game_status/parser.rs @@ -135,8 +135,8 @@ pub fn parse(game: &Game) -> Result { // set player to idle invoker.state = PlayerState::Idle; - // set the target to action phase - target.state = PlayerState::ActionPhase; + // set the target to the play phase + target.state = PlayerState::PlayPhase; // clear currency invoker.currency = 0; diff --git a/client/src/plugins/game/ui/mod.rs b/client/src/plugins/game/ui/mod.rs index 8e14b92..401254f 100644 --- a/client/src/plugins/game/ui/mod.rs +++ b/client/src/plugins/game/ui/mod.rs @@ -196,7 +196,7 @@ fn hardcoded_init(game: &Game, create_action_ev_w: &mut EventWriter