Skip to content

Commit

Permalink
invalidation handled and tested validator with frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaaDev committed Feb 20, 2024
1 parent 2db1816 commit b9ca374
Show file tree
Hide file tree
Showing 5 changed files with 204 additions and 365 deletions.
4 changes: 2 additions & 2 deletions src/api/attack/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pub struct SocketResponse {
pub is_alive: Option<bool>,
pub attacker_health: Option<i32>,
pub exploded_mines: Option<Vec<MineDetails>>,
pub triggered_defenders: Option<Vec<DefenderResponse>>,
// pub defender_damaged: Option<DefenderResponse>,
// pub triggered_defenders: Option<Vec<DefenderResponse>>,
pub defender_damaged: Option<Vec<DefenderResponse>>,
pub damaged_buildings: Option<Vec<BuildingResponse>>,
pub artifacts_gained_total: Option<i32>,
pub is_sync: bool,
Expand Down
4 changes: 3 additions & 1 deletion src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ pub const HIGHEST_TROPHY: f32 = 2_000.0;
pub const BONUS_SCALE: i32 = 2;
pub const MAX_BOMBS_PER_ATTACK: i32 = 30;
pub const ATTACK_TOKEN_AGE_IN_MINUTES: i64 = 5;
pub const GAME_AGE_IN_MINUTES: usize = 25;
pub const GAME_AGE_IN_MINUTES: usize = 1;
pub const MATCH_MAKING_ATTEMPTS: i32 = 10;
pub const PERCENTANGE_ARTIFACTS_OBTAINABLE: f32 = 0.3;
pub const BOMB_DAMAGE_MULTIPLIER: f32 = 5.0;

pub const LIVES: i32 = 3;
Loading

0 comments on commit b9ca374

Please sign in to comment.