Removed the base kit and replaced it with Iron Golem.

This commit is contained in:
Mysticate 2015-08-13 08:16:33 -04:00
parent ed7dbddf4a
commit eaad787075
2 changed files with 31 additions and 23 deletions

View File

@ -65,7 +65,7 @@ public class Evolution extends SoloGame
private EvolveManager _evolve;
private ArrayList<EvoKit> _mobKits = new ArrayList<EvoKit>();
// private ArrayList<EvoKit> _mobKits = new ArrayList<EvoKit>();
private NautHashMap<String, EvoToken> _tokens = new NautHashMap<String, EvoToken>();
@ -77,27 +77,35 @@ public class Evolution extends SoloGame
public Evolution(ArcadeManager manager)
{
super(manager, GameType.Evolution, new Kit[0], new String[0]);
//Custom kit stuff to make other things easiet
_mobKits.add(new KitGolem(manager));
_mobKits.add(new KitBlaze(manager));
_mobKits.add(new KitSpider(manager));
_mobKits.add(new KitCreeper(manager));
_mobKits.add(new KitSlime(manager));
// _mobKits.add(new KitEnderman(manager));
// _mobKits.add(new KitSnowman(manager));
// _mobKits.add(new KitWolf(manager));
_mobKits.add(new KitChicken(manager));
// _mobKits.add(new KitSkeleton(manager));
setKits(_mobKits.toArray(new EvoKit[0]));
super(manager, GameType.Evolution, new EvoKit[]
{
new KitGolem(manager),
new KitBlaze(manager),
new KitSpider(manager),
new KitCreeper(manager),
new KitSlime(manager),
new KitChicken(manager)
}, new String[0]);
//
// //Custom kit stuff to make other things easiet
// _mobKits.add(new KitGolem(manager));
// _mobKits.add(new KitBlaze(manager));
// _mobKits.add(new KitSpider(manager));
// _mobKits.add(new KitCreeper(manager));
// _mobKits.add(new KitSlime(manager));
//// _mobKits.add(new KitEnderman(manager));
//// _mobKits.add(new KitSnowman(manager));
//// _mobKits.add(new KitWolf(manager));
// _mobKits.add(new KitChicken(manager));
//// _mobKits.add(new KitSkeleton(manager));
//
// setKits(_mobKits.toArray(new EvoKit[0]));
_gameDesc = new String[]
{
"You can evolve every kill.",
"Each evolution has unique skills.",
"First to get through " + _mobKits.size() + " evolutions wins!"
"First to get through " + GetKits().length + " evolutions wins!"
};
DamageTeamSelf = true;
@ -217,7 +225,7 @@ public class Evolution extends SoloGame
if (!IsAlive(player))
return;
EvoKit newKit = _mobKits.get(getScore(player));
EvoKit newKit = (EvoKit) GetKits()[getScore(player)];
SetKit(player, newKit, false);
@ -267,7 +275,7 @@ public class Evolution extends SoloGame
}
}
if (increaseScore(event.getPlayer()) >= _mobKits.size())
if (increaseScore(event.getPlayer()) >= GetKits().length)
{
ScoreboardUpdate(new UpdateEvent(UpdateType.FAST));
@ -291,7 +299,7 @@ public class Evolution extends SoloGame
Manager.GetCondition().GetActiveCondition(event.getPlayer(), ConditionType.CLOAK).Expire();
}
if (getScore(event.getPlayer()) >= _mobKits.size())
if (getScore(event.getPlayer()) >= GetKits().length)
{
End();
}
@ -475,8 +483,8 @@ public class Evolution extends SoloGame
EvoToken token = _tokens.get(player.getName());
EvoKit from = _mobKits.get(token.Level);
EvoKit to = _mobKits.get((token.Level + 1) >= _mobKits.size() ? token.Level : token.Level + 1); //Account for the score increase after evolve
EvoKit from = (EvoKit) GetKits()[token.Level];
EvoKit to = (EvoKit) GetKits()[token.Level + 1 >= GetKits().length ? token.Level : token.Level + 1]; //Account for the score increase after evolve
_evolve.addEvolve(Manager.getHologramManager(), player, from, to);
return true;

View File

@ -25,7 +25,7 @@ public class KitGolem extends EvoKit
}, 40, 6, new Perk[]
{
new PerkSiesmicSlamEVO(), new PerkKnockbackTaken(.5)
}, EntityType.IRON_GOLEM);
}, EntityType.IRON_GOLEM, true);
}
@Override