Skip to content

Commit a6b9360

Browse files
committed
refactor state change events
1 parent 9d7ef53 commit a6b9360

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

server/src/content/custom_phase_actions.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ pub enum CustomPhaseEventType {
2222
impl CustomPhaseEventType {
2323
#[must_use]
2424
pub fn is_last_type_for_event(&self) -> bool {
25-
#[allow(clippy::match_like_matches_macro, clippy::match_wildcard_for_single_variants)]
25+
#[allow(
26+
clippy::match_like_matches_macro,
27+
clippy::match_wildcard_for_single_variants
28+
)]
2629
match self {
2730
CustomPhaseEventType::StartCombatAttacker => false,
2831
_ => true,

server/src/game.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ use crate::advance::Advance;
88
use crate::combat::{self, start_combat, Combat, CombatDieRoll, CombatPhase, COMBAT_DIE_SIDES};
99
use crate::consts::{ACTIONS, MOVEMENT_ACTIONS};
1010
use crate::content::custom_phase_actions::{
11-
CustomPhaseEventState, CustomPhaseEventType,
12-
CustomPhaseState,
11+
CustomPhaseEventState, CustomPhaseEventType, CustomPhaseState,
1312
};
1413
use crate::events::EventMut;
1514
use crate::explore::{explore_resolution, move_to_unexplored_tile, undo_explore_resolution};

0 commit comments

Comments
 (0)