mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-04 16:09:23 +07:00
Cleanup
This commit is contained in:
parent
9bd2057237
commit
8d4ab2d7fb
@ -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;
|
||||
|
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user