Mud tweaks / Unit count tweaks
This commit is contained in:
@@ -37,7 +37,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
|
||||
private UnitController controller;
|
||||
private UnitType type;
|
||||
boolean spawnedByCore, deactivated;
|
||||
boolean spawnedByCore, deactivated; //TODO remove deactivation boolean
|
||||
|
||||
transient Seq<Ability> abilities = new Seq<>(0);
|
||||
|
||||
@@ -204,7 +204,6 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
|
||||
@Override
|
||||
public void add(){
|
||||
teamIndex.updateCount(team, type, 1);
|
||||
|
||||
//check if over unit cap
|
||||
if(count() > cap() && !spawnedByCore){
|
||||
@@ -213,8 +212,6 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
if(!dead){
|
||||
Call.unitCapDeath(self());
|
||||
}
|
||||
}else{
|
||||
teamIndex.updateActiveCount(team, type, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user