mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Unlock core units on respawn
This commit is contained in:
parent
479cad3d0c
commit
fab282e8be
2 changed files with 6 additions and 0 deletions
|
|
@ -1697,6 +1697,7 @@ public class UnitTypes implements ContentList{
|
|||
engineOffset = 6f;
|
||||
hitSize = 8f;
|
||||
commandLimit = 3;
|
||||
alwaysUnlocked = true;
|
||||
|
||||
weapons.add(new Weapon("small-basic-weapon"){{
|
||||
reload = 17f;
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import arc.graphics.g2d.*;
|
|||
import arc.math.*;
|
||||
import arc.math.geom.*;
|
||||
import arc.struct.*;
|
||||
import mindustry.*;
|
||||
import mindustry.annotations.Annotations.*;
|
||||
import mindustry.content.*;
|
||||
import mindustry.core.*;
|
||||
|
|
@ -71,6 +72,10 @@ public class CoreBlock extends StorageBlock{
|
|||
unit.spawnedByCore(true);
|
||||
unit.add();
|
||||
}
|
||||
|
||||
if(state.isCampaign() && player == Vars.player){
|
||||
block.unitType.unlock();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue