UnitType death handling
This commit is contained in:
@@ -609,6 +609,8 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
a.death(self());
|
||||
}
|
||||
|
||||
type.killed(self());
|
||||
|
||||
remove();
|
||||
}
|
||||
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user