More work on switching battle data to interior mutability, instead of exterior mutability.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -188,9 +188,13 @@ pub fn load_moves(path: &String, lib: &mut StaticData) {
|
||||
}
|
||||
}
|
||||
|
||||
SecondaryEffect::new(chance, StringKey::new(v["name"].as_str().unwrap()), parameters)
|
||||
Some(SecondaryEffect::new(
|
||||
chance,
|
||||
StringKey::new(v["name"].as_str().unwrap()),
|
||||
parameters,
|
||||
))
|
||||
} else {
|
||||
SecondaryEffect::empty()
|
||||
None
|
||||
};
|
||||
|
||||
let mut flags = HashSet::new();
|
||||
|
||||
Reference in New Issue
Block a user