New alpha drone mechanics

This commit is contained in:
Anuken
2018-11-07 19:34:31 -05:00
parent 122fbbed22
commit 216433aa2d
2 changed files with 26 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ public class Mechs implements ContentList{
alpha = new Mech("alpha-mech", false){
int maxDrones = 3;
float buildTime = 200f;
float buildTime = 20f;
{
drillPower = 1;
@@ -53,7 +53,7 @@ public class Mechs implements ContentList{
@Override
public void updateAlt(Player player){
if(getDrones(player) < maxDrones && !TutorialSector.supressDrone() && player.timer.get(Player.timerAbility, buildTime)){
if(player.isShooting && player.timer.get(Player.timerAbility, buildTime) && getDrones(player) < maxDrones && !TutorialSector.supressDrone()){
if(!Net.client()) {
AlphaDrone drone = (AlphaDrone) UnitTypes.alphaDrone.create(player.getTeam());
drone.leader = player;