1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-07-29 16:40:54 +00:00

Compare commits

..

No commits in common. "3c5f5c7496d31ec66465fae2a85fc4ac2ed0b144" and "94cb7039a85b880b1e57f2c474c99b17e5d7bd06" have entirely different histories.

View file

@ -110,10 +110,6 @@ impl Inventory {
self.weapons.get(idx)
}
pub fn get_weapon_by_type_mut(&mut self, wtype: WeaponType) -> Option<&mut Weapon> {
self.weapons.iter_mut().find(|weapon| weapon.wtype == wtype)
}
pub fn get_current_weapon(&self) -> Option<&Weapon> {
self.weapons.get(self.current_weapon as usize)
}