master
Mark 2024-01-01 16:55:19 -08:00
parent 53446bf5d2
commit b8d4d31d58
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ impl Ship {
self.hull <= 0.0
}
/// Called whenever a projectile hits this ship.
/// Returns true if that projectile should be destroyed and false otherwise.
pub fn handle_projectile_collision(&mut self, ct: &content::Content, p: &Projectile) -> bool {
let f = ct.get_faction(self.faction);
let r = f.relationships.get(&p.faction).unwrap();