Cleanup
This commit is contained in:
@@ -117,6 +117,8 @@ abstract class PayloadComp implements Posc, Rotc, Hitboxc, Unitc{
|
|||||||
u.rotation(rotation);
|
u.rotation(rotation);
|
||||||
//reset the ID to a new value to make sure it's synced
|
//reset the ID to a new value to make sure it's synced
|
||||||
u.id = EntityGroup.nextId();
|
u.id = EntityGroup.nextId();
|
||||||
|
//decrement count to prevent double increment
|
||||||
|
if(!u.isAdded()) u.team.data().updateCount(u.type, -1);
|
||||||
u.add();
|
u.add();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -249,15 +249,6 @@ public class SStats implements SteamUserStatsCallback{
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Events.on(LoseEvent.class, e -> {
|
|
||||||
if(campaign()){
|
|
||||||
//TODO implement
|
|
||||||
//if(state.getSector().metCondition() && (state.wave - state.getSector().conditionWave) / state.getSector().launchPeriod >= 1){
|
|
||||||
// skipLaunching2Death.complete();
|
|
||||||
//}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
Events.on(SectorLaunchEvent.class, e -> {
|
Events.on(SectorLaunchEvent.class, e -> {
|
||||||
SStat.timesLaunched.add();
|
SStat.timesLaunched.add();
|
||||||
});
|
});
|
||||||
@@ -325,16 +316,6 @@ public class SStats implements SteamUserStatsCallback{
|
|||||||
|
|
||||||
SStat.sectorsControlled.set(e.sector.planet.sectors.count(Sector::hasBase));
|
SStat.sectorsControlled.set(e.sector.planet.sectors.count(Sector::hasBase));
|
||||||
});
|
});
|
||||||
|
|
||||||
//TODO dead achievement
|
|
||||||
/*
|
|
||||||
Events.on(MechChangeEvent.class, e -> {
|
|
||||||
if(campaign()){
|
|
||||||
if(mechs.add(e.mech.name)){
|
|
||||||
SStat.zoneMechsUsed.max(mechs.size);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void save(){
|
private void save(){
|
||||||
|
|||||||
Reference in New Issue
Block a user