Fix formatting and minor restructuring

Fixed formatting using cargo fmt.
Change some parser structure to reduce code deduplication
This commit is contained in:
Lol3rrr
2024-09-22 20:31:38 +02:00
parent c1e85d77dc
commit 67d33f64c0
6 changed files with 53 additions and 90 deletions

View File

@@ -271,10 +271,13 @@ impl PropController {
}
fn insert_propinfo(&mut self, prop_name: &str, f: &mut ValueField) {
self.prop_infos.insert(f.prop_id, PropInfo {
id: f.prop_id as u32,
prop_name: prop_name.into(),
});
self.prop_infos.insert(
f.prop_id,
PropInfo {
id: f.prop_id as u32,
prop_name: prop_name.into(),
},
);
}
pub fn set_special_ids(&mut self, weap_prop: &str, is_grenade_or_weapon: bool, id: u32) {