UnitType death handling

This commit is contained in:
Anuken
2022-06-18 16:07:04 -04:00
parent c5fdd34eb7
commit 031af7c432
3 changed files with 4 additions and 1 deletions

View File

@@ -609,6 +609,8 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
a.death(self());
}
type.killed(self());
remove();
}

View File

@@ -470,6 +470,8 @@ public class UnitType extends UnlockableContent{
}
public void killed(Unit unit){}
public void landed(Unit unit){}
public void display(Unit unit, Table table){

View File

@@ -35,7 +35,6 @@ public class GenericCrafter extends Block{
public boolean dumpExtraLiquid = true;
public boolean ignoreLiquidFullness = false;
//TODO should be seconds?
public float craftTime = 80;
public Effect craftEffect = Fx.none;
public Effect updateEffect = Fx.none;