its a total hack but this is better!

main
Elijah C. Voigt 1 year ago
parent db09fe8cce
commit 53922bcd91

@ -89,19 +89,14 @@ impl Plugin for Display3dPlugin {
.run_if(in_state(ai::PlayState::Human)), .run_if(in_state(ai::PlayState::Human)),
vantage_point vantage_point
.run_if(in_state(GameState::Play)) .run_if(in_state(GameState::Play))
.run_if( .run_if(in_state(PlayState::AiBogo))
in_state(PlayState::Human) .run_if(in_state(TurnState(Side::B)))
.and_then(not(state_changed::<game::TurnState>)) .run_if(any_component_added::<Selected>().or_else(any_component_removed::<Selected>())),
) vantage_point
// Do not run if it is the opponents turn while playing against AI .run_if(in_state(GameState::Play))
.run_if( .run_if(in_state(PlayState::Human))
in_state(PlayState::AiBogo) .run_if(not(state_changed::<TurnState>))
.and_then(not(in_state(TurnState(Side::A))) .run_if(any_component_added::<Selected>().or_else(any_component_removed::<Selected>())),
)
)
.run_if(any_component_added::<Selected>()
.or_else(any_component_removed::<Selected>())
),
update_pieces update_pieces
.run_if(resource_exists::<tweak::GameTweaks>) .run_if(resource_exists::<tweak::GameTweaks>)
.run_if(in_state(GameState::Play)) .run_if(in_state(GameState::Play))

Loading…
Cancel
Save