generated from GarandPLG/rust-flake-template
Add Miner stats and conditional audio flag
- Extend MinerUnit with hp, digging ability, and power, and provide getters for these fields. - Update the Unit trait and Units enum to expose hp, max hp, can_dig, and digging_power, and enhance base_text to display them. - Remove unnecessary `Eq` derives from several structs and enums. - Introduce a `--disable-audio` CLI flag and conditionally spawn the audio thread based on its value.
This commit is contained in:
@@ -12,7 +12,7 @@ use crate::app::{
|
||||
};
|
||||
use ratatui::layout::Rect;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct BoardState {
|
||||
cells_area: Rect,
|
||||
pub cell_width: usize,
|
||||
|
||||
Reference in New Issue
Block a user