Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya246 authored Mar 27, 2021
1 parent 8d6b286 commit e618b06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/crawler_arena/CrawlerArenaMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
6 changes: 5 additions & 1 deletion src/crawler_arena/ReinforcementAI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand All @@ -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.*;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e618b06

Please sign in to comment.