mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-09 23:37:51 +07:00
Added 2 new maps
This commit is contained in:
Binary file not shown.
BIN
core/assets/maps/spiral.msav
Normal file
BIN
core/assets/maps/spiral.msav
Normal file
Binary file not shown.
BIN
core/assets/maps/triad.msav
Normal file
BIN
core/assets/maps/triad.msav
Normal file
Binary file not shown.
@ -71,6 +71,9 @@ public class Map implements Comparable<Map>{
|
||||
|
||||
/** Returns the generation filters that this map uses on load.*/
|
||||
public Array<GenerateFilter> filters(){
|
||||
if(build != -1 && build < 83 && tags.get("genfilters", "").isEmpty()){
|
||||
return Array.with();
|
||||
}
|
||||
return world.maps.readFilters(tags.get("genfilters", ""));
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ import static io.anuke.mindustry.Vars.*;
|
||||
|
||||
public class Maps implements Disposable{
|
||||
/** List of all built-in maps. Filenames only. */
|
||||
private static String[] defaultMapNames = {"fortress", "labyrinth", "islands", "tendrils", "caldera", "glacier", "shattered", "wasteland", "veins", "canyon"};
|
||||
private static String[] defaultMapNames = {"fortress", "labyrinth", "islands", "tendrils", "caldera", "wasteland", "shattered", "canyon", "spiral", "triad", "veins", "glacier"};
|
||||
/** All maps stored in an ordered array. */
|
||||
private Array<Map> maps = new Array<>();
|
||||
/** Serializer for meta. */
|
||||
|
@ -7,6 +7,7 @@ project.ext.mainClassName = "io.anuke.mindustry.desktopsdl.DesktopLauncher"
|
||||
project.ext.assetsDir = new File("../core/assets")
|
||||
|
||||
def IKVM_DIR = System.env.IKVM_HOME
|
||||
def getTarget = { return project.hasProperty("target") ? project.properties["target"] : "windows" }
|
||||
|
||||
task run(dependsOn: classes, type: JavaExec) {
|
||||
main = project.mainClassName
|
||||
@ -35,7 +36,7 @@ task dist(type: Jar, dependsOn: classes) {
|
||||
from files(project.assetsDir);
|
||||
|
||||
//use target = all for all platforms
|
||||
def target = project.hasProperty("target") ? project.properties["target"] : "windows";
|
||||
def target = getTarget()
|
||||
if(target == "windows") exclude('**.so', "**.dylib")
|
||||
if(target == "mac") exclude('**.so', "**.dll")
|
||||
if(target == "linux") exclude('**.dll', "**.dylib")
|
||||
@ -50,7 +51,7 @@ task ikZip(type: Zip){
|
||||
def filename = "$appName-windows-${version}"
|
||||
|
||||
from "build/libs/$filename"
|
||||
archiveBaseName = "$appName-windows"
|
||||
archiveBaseName = "$appName-${getTarget()}"
|
||||
}
|
||||
|
||||
task ikdist{
|
||||
|
Reference in New Issue
Block a user