Unlock bosses when defeated
This commit is contained in:
@@ -175,6 +175,12 @@ public class Control implements ApplicationListener, Loadable{
|
||||
Effects.shake(5f, 5f, core);
|
||||
});
|
||||
});
|
||||
|
||||
Events.on(UnitDestroyEvent.class, e -> {
|
||||
if(e.unit instanceof BaseUnit){
|
||||
data.unlockContent(((BaseUnit)e.unit).getType());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user