1
0

some micro battle maps (thanks to GalaxiaOwner) with some maps by me

This commit is contained in:
labalityowo
2023-05-22 11:25:59 +07:00
parent e7b02fc9d1
commit 938b7578ff
11 changed files with 14 additions and 0 deletions

View File

@ -117,6 +117,17 @@ public class Parse
continue;
}
if(block.getType() == Material.GLASS){
//Make it's easier for micro battles map
if(getGameType() == GameType.Micro){
String name = "20"; //set auto glass
if (!_customLocs.containsKey(name)) _customLocs.put(name, new ArrayList<Location>());
_customLocs.get(name).add(block.getLocation());
//Remove Blocks
block.setTypeId(0);
}
}
//Signs
if (block.getType() == Material.SIGN_POST || block.getType() == Material.WALL_SIGN)
{
@ -157,6 +168,7 @@ public class Parse
block.getRelative(BlockFace.DOWN).setTypeId(0);
}
}
else if (block.getType() == Material.LEAVES || block.getType() == Material.LEAVES_2)
{
if (block.getData() <= 3)

View File

@ -412,11 +412,13 @@ public class CakeWars extends TeamGame
_chestLootModule.register(this);
// Backwards compatibility with old cake wars maps
int i = 1;
for (Location location : WorldData.GetDataLocs("SILVER"))
{
WorldData.GetAllCustomLocs().computeIfAbsent("POINT Outer-" + i++ + " GREEN", k -> new ArrayList<>()).add(location);
}
for (Location location : WorldData.GetDataLocs("WHITE"))
{
WorldData.GetAllCustomLocs().computeIfAbsent("POINT Center GOLD", k -> new ArrayList<>()).add(location);