broken-battle/src/equipment/hat.rs

19 lines
353 B
Rust
Raw Normal View History

2023-08-14 21:50:27 +01:00
use crate::statistics::StatBlock;
#[derive(Debug, Clone)]
pub struct Hat {
name: String,
stat_mods: StatBlock,
}
impl Hat {
pub fn new() -> Hat {
Hat {
name: String::from("Basic Hat"),
stat_mods: StatBlock::new_zero(),
}
}
pub fn stat_mods(self) -> StatBlock {
self.stat_mods
}
}