Add specific kit spawn data locs
This commit is contained in:
parent
7f240bb5a4
commit
86c66d3a44
@ -396,16 +396,14 @@ public class CastleAssault extends TeamGame
|
|||||||
this.CreatureAllowOverride = true;
|
this.CreatureAllowOverride = true;
|
||||||
_kings.put(red, new TeamKing(red, "King Jon", redKing));
|
_kings.put(red, new TeamKing(red, "King Jon", redKing));
|
||||||
_kings.put(blue, new TeamKing(blue, "King Ryan", blueKing));
|
_kings.put(blue, new TeamKing(blue, "King Ryan", blueKing));
|
||||||
int kitIndex = 0;
|
for (Kit kit : GetKits())
|
||||||
for (int i = 0; i < WorldData.GetDataLocs("WHITE").size(); i++)
|
|
||||||
{
|
{
|
||||||
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;
|
this.CreatureAllowOverride = false;
|
||||||
_tntSpawner = new ObjectiveTNTSpawner(WorldData.GetDataLocs("BLACK"));
|
_tntSpawner = new ObjectiveTNTSpawner(WorldData.GetDataLocs("BLACK"));
|
||||||
|
Loading…
Reference in New Issue
Block a user