mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-24 13:31:45 -08:00
Steam achievement for killing a unit with a mass driver
This commit is contained in:
parent
b7cb080f36
commit
bbc8d77386
2 changed files with 6 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ public enum Achievement{
|
|||
|
||||
have10mItems(SStat.totalCampaignItems, 10_000_000),
|
||||
killEclipseDuo,
|
||||
killMassDriver,
|
||||
|
||||
completeErekir,
|
||||
completeSerpulo,
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import arc.struct.*;
|
|||
import arc.util.*;
|
||||
import mindustry.*;
|
||||
import mindustry.content.*;
|
||||
import mindustry.entities.bullet.*;
|
||||
import mindustry.game.EventType.*;
|
||||
import mindustry.game.SectorInfo.*;
|
||||
import mindustry.gen.*;
|
||||
|
|
@ -394,6 +395,10 @@ public class GameService{
|
|||
if(e.unit.type == UnitTypes.eclipse && e.bullet.owner instanceof TurretBuild turret && turret.block == Blocks.duo){
|
||||
killEclipseDuo.complete();
|
||||
}
|
||||
|
||||
if(e.bullet.type instanceof MassDriverBolt){
|
||||
killMassDriver.complete();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue