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 26, 2021
1 parent ce41242 commit bc562c2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/crawler_arena/CrawlerArenaMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,14 @@ public void init(){
});
Events.on(PlayerLeave.class, e -> {
Unit u;
float hp;
try{
u = units.get(e.player.uuid());
hp = u.health;
}catch(Exception help){
u = UnitTypes.dagger.spawn(worldCenterX, worldCenterY);
hp = u.health;
};
float hp = u.health;
boolean isAlive = hp > 0;
u.kill();
if(isAlive){
Expand Down Expand Up @@ -243,10 +245,14 @@ public void nextWave(){
UnitTypes.reign.speed = 3;
Unit u = UnitTypes.reign.spawn(Team.crux, 32, 32);
u.apply(StatusEffects.boss);
u.health = 300000;
u.health = 15000 * Groups.player.size();
u.armor = 0;
u.abilities.add(new UnitSpawnAbility(UnitTypes.scepter, 240, 0, -32));
break;
case(28):
Call.sendMessage("[green]Victory.");
gameIsOver = true;
Timer.schedule(() -> {Events.fire(new GameOverEvent(Team.sharded));}, 2);
default:
break;
};
Expand Down

0 comments on commit bc562c2

Please sign in to comment.