This commit is contained in:
Anuken 2020-12-08 14:23:13 -05:00
parent 9bd2057237
commit 8d4ab2d7fb
2 changed files with 2 additions and 19 deletions

View File

@ -117,6 +117,8 @@ abstract class PayloadComp implements Posc, Rotc, Hitboxc, Unitc{
u.rotation(rotation);
//reset the ID to a new value to make sure it's synced
u.id = EntityGroup.nextId();
//decrement count to prevent double increment
if(!u.isAdded()) u.team.data().updateCount(u.type, -1);
u.add();
return true;

View File

@ -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 -> {
SStat.timesLaunched.add();
});
@ -325,16 +316,6 @@ public class SStats implements SteamUserStatsCallback{
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(){