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 634264d commit 0356d12
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions src/crawler_arena/CrawlerArenaMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class CrawlerArenaMod extends Plugin {

@Override
public void init(){
unitCostsBase.addAll(new int[]{200}, new int[]{200}, new int[]{325}, new int[]{75}, new int[]{400}, new int[]{1500}, new int[]{2750}, new int[]{1500}, new int[]{3000}, new int[]{1500}, new int[]{2500}, new int[]{12000}, new int[]{15000}, new int[]{30000}, new int[]{30000}, new int[]{30000}, new int[]{40000}, new int[]{175000}, new int[]{250000}, new int[]{325000}, new int[]{250000}, new int[]{4000000});
unitCostsBase.addAll(new int[]{200}, new int[]{200}, new int[]{325}, new int[]{75}, new int[]{400}, new int[]{1500}, new int[]{2750}, new int[]{1500}, new int[]{3000}, new int[]{1500}, new int[]{2500}, new int[]{12000}, new int[]{15000}, new int[]{30000}, new int[]{30000}, new int[]{30000}, new int[]{40000}, new int[]{175000}, new int[]{250000}, new int[]{325000}, new int[]{250000}, new int[]{1500000});
upgradeableUnits.addAll(UnitTypes.mace, UnitTypes.atrax, UnitTypes.pulsar, UnitTypes.flare, UnitTypes.risso, UnitTypes.fortress, UnitTypes.quasar, UnitTypes.spiroct, UnitTypes.zenith, UnitTypes.mega, UnitTypes.crawler, UnitTypes.quad, UnitTypes.vela, UnitTypes.scepter, UnitTypes.antumbra, UnitTypes.arkyid, UnitTypes.sei, UnitTypes.eclipse, UnitTypes.reign, UnitTypes.toxopid, UnitTypes.corvus, UnitTypes.omura);
upgradeableUnits.each(u -> {
unitCosts.put(u, new int[]{unitCostsBase.get(0)[0]});
Expand Down Expand Up @@ -237,15 +237,15 @@ public void nextWave(){
state.wave = wave;
UnitTypes.crawler.health += 1 * wave;
UnitTypes.crawler.speed += 0.003 * wave;
float crawlers = Mathf.pow(2.71f, 1f + wave / 2);
float crawlers = Mathf.pow(2.71f, 1f + wave / 2) * Groups.player.size() / 20;
switch(wave){
case(21):
Call.sendMessage("[red]What makes you live for this long?");
break;
case(23):
Call.sendMessage("[red]Why are you still alive?");
break;
case(26):
case(24):
Call.sendMessage("[#FF0000]Observation is no longer prohibited. It comes.");
crawlers = 0;
UnitTypes.reign.maxRange = 8000;
Expand Down Expand Up @@ -314,21 +314,32 @@ public void nextWave(){
sy = 32;
break;
};
Unit u;
UnitTypes.crawler.spawn(Team.crux, sx, sy);
if(arkyids > 0){
UnitTypes.arkyid.spawn(Team.crux, sx, sy).health = 1000;
u = UnitTypes.arkyid.spawn(Team.crux, sx, sy);
u.health = 1000;
u.maxHealth = 1000;
u.armor = 0;
arkyids--;
};
if(spirocts > 0){
UnitTypes.spiroct.spawn(Team.crux, sx, sy).health = 250;
u = UnitTypes.spiroct.spawn(Team.crux, sx, sy);
u.health = 250;
u.maxHealth = 250;
u.armor = 0;
spirocts--;
};
if(atraxes > 0){
UnitTypes.atrax.spawn(Team.crux, sx, sy).health = 100;
u = UnitTypes.atrax.spawn(Team.crux, sx, sy);
u.health = 100;
u.armor = 0;
atraxes--;
};
if(toxopids > 0){
UnitTypes.toxopid.spawn(Team.crux, sx, sy).health = 3000;
u = UnitTypes.toxopid.spawn(Team.crux, sx, sy);
u.health = 3000;
u.armor = 0;
toxopids--;
};
}
Expand All @@ -344,6 +355,7 @@ public void registerClientCommands(CommandHandler handler){
if(newUnit.type == UnitTypes.crawler){
newUnit.abilities.add(new UnitSpawnAbility(UnitTypes.crawler, 60f, 0f, -8f));
newUnit.health = 400;
newUnit.maxHealth = 400;
newUnit.armor = 10;
};
newUnit.add();
Expand Down

0 comments on commit 0356d12

Please sign in to comment.