|
@ -112,7 +112,6 @@ pub fn unit_stats() -> BTreeMap<UnitType, UnitStats> { |
|
|
pub fn mag_stats() -> HashMap<MagType, MagStats> {
|
|
|
pub fn mag_stats() -> HashMap<MagType, MagStats> {
|
|
|
let mag_stats: BTreeMap<String, MagStats> = load_data_file("data/item_stats/mag_stats.toml");
|
|
|
let mag_stats: BTreeMap<String, MagStats> = load_data_file("data/item_stats/mag_stats.toml");
|
|
|
mag_stats.iter()
|
|
|
mag_stats.iter()
|
|
|
.inspect(|k| println!("{:?}", k))
|
|
|
|
|
|
.map(|(name, stats)| {
|
|
|
.map(|(name, stats)| {
|
|
|
(name.parse().unwrap(), *stats)
|
|
|
(name.parse().unwrap(), *stats)
|
|
|
}).collect()
|
|
|
}).collect()
|
|
|