diff --git a/src/crawler_arena/CrawlerArenaMod.java b/src/crawler_arena/CrawlerArenaMod.java index 2064c8e..15f9bf8 100644 --- a/src/crawler_arena/CrawlerArenaMod.java +++ b/src/crawler_arena/CrawlerArenaMod.java @@ -145,7 +145,7 @@ public void init(){ Call.sendMessage("[cyan]Do /info to view info about upgrading."); }; if(!Groups.unit.contains(u -> {return u.team == Team.crux;}) && !waveIsOver){ - if(wave < 8 || wave % 4 != 0){ + if(wave < 8 || wave % 2 != 0){ Call.sendMessage("[red]Next wave in 10 seconds."); Timer.schedule(() -> {nextWave();}, 10); }else{ diff --git a/src/crawler_arena/ReinforcementAI.java b/src/crawler_arena/ReinforcementAI.java index d87a16d..a43ca6c 100644 --- a/src/crawler_arena/ReinforcementAI.java +++ b/src/crawler_arena/ReinforcementAI.java @@ -12,7 +12,6 @@ import mindustry.world.meta.*; import mindustry.ai.types.*; import mindustry.ai.Pathfinder; -import arc.*; import arc.func.*; import arc.struct.*; import arc.util.*; @@ -22,6 +21,8 @@ import mindustry.core.*; import mindustry.game.*; import mindustry.world.meta.*; +import mindustry.world.blocks.payloads.*; +import mindustry.entities.comp.*; import static mindustry.Vars.*; @@ -54,6 +55,9 @@ public void updateUnit(){ }; if(Math.abs(unit.x - world.width() * 4) > 120){ unit.moveAt(new Vec2().trns(Mathf.atan2(world.width() * 4 - unit.x, world.height() * 4 - unit.y), unit.speed())); + }else if(unit instanceof Payloadc){ + Payloadc pay = (Payloadc)unit; + pay.dropLastPayload(); }; if(unit.moving()) unit.lookAt(unit.vel().angle()); unit.controlWeapons(rotate, shoot);