Misc bugfixes, AI hit retaliation

This commit is contained in:
Anuken
2022-05-06 23:33:22 -04:00
parent f6e68e91d0
commit 6740b60af2
4 changed files with 19 additions and 7 deletions

View File

@@ -263,6 +263,13 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
return hittable();
}
@Override
public void collision(Hitboxc other, float x, float y){
if(other instanceof Bullet bullet){
controller.hit(bullet);
}
}
@Override
public int itemCapacity(){
return type.itemCapacity;