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 bc562c2 commit 41c8094
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/crawler_arena/CrawlerArenaMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,12 @@ public void init(){
Groups.unit.each(u -> {u.kill();});
return;
};
if(Mathf.chance(1 / 8000 * Time.delta)){
Call.sendMessage("[cyan]Do /info to view info about upgrading.");
};
Groups.player.each(p -> {
try{
Call.setHudText(p.con, "Balance: " + String.valueOf(money.get(p.uuid())[0]));
Call.setHudText(p.con, "Money: " + String.valueOf(Mathf.round(money.get(p.uuid())[0])));
}catch(Exception why){
money.put(p.uuid(), new float[]{Mathf.pow(2.71f, 1f + wave / 2 + Mathf.pow(wave, 2) / 4000f) * 7f});
};
Expand Down Expand Up @@ -228,7 +231,7 @@ public void nextWave(){
Timer.schedule(()->{waveIsOver = false;}, 1);
state.wave = wave;
UnitTypes.crawler.health += 1 * wave;
UnitTypes.crawler.speed += 0.005 * wave;
UnitTypes.crawler.speed += 0.003 * wave;
float crawlers = Mathf.pow(2.71f, 1f + wave / 2 + Mathf.pow(wave, 2) / 200);
switch(wave){
case(21):
Expand Down

0 comments on commit 41c8094

Please sign in to comment.