Add specific kit spawn data locs

This commit is contained in:
AlexTheCoder 2017-05-11 16:05:19 -04:00
parent 7f240bb5a4
commit 86c66d3a44

View File

@ -396,16 +396,14 @@ public class CastleAssault extends TeamGame
this.CreatureAllowOverride = true;
_kings.put(red, new TeamKing(red, "King Jon", redKing));
_kings.put(blue, new TeamKing(blue, "King Ryan", blueKing));
int kitIndex = 0;
for (int i = 0; i < WorldData.GetDataLocs("WHITE").size(); i++)
for (Kit kit : GetKits())
{
if (kitIndex >= GetKits().length)
List<Location> spawns = WorldData.GetDataLocs("K:" + kit.GetName());
for (Location spawn : spawns)
{
kitIndex = 0;
Entity ent = kit.SpawnEntity(spawn);
Manager.GetLobby().addKitLocation(ent, kit, spawn);
}
Entity ent = GetKits()[kitIndex].SpawnEntity(WorldData.GetDataLocs("WHITE").get(i));
Manager.GetLobby().addKitLocation(ent, GetKits()[kitIndex], WorldData.GetDataLocs("WHITE").get(i));
kitIndex++;
}
this.CreatureAllowOverride = false;
_tntSpawner = new ObjectiveTNTSpawner(WorldData.GetDataLocs("BLACK"));