Second map updates
This commit is contained in:
Binary file not shown.
@@ -1322,6 +1322,7 @@ public class Blocks{
|
|||||||
}};
|
}};
|
||||||
|
|
||||||
//TODO should have a useful turret ammo byproduct? scrap?
|
//TODO should have a useful turret ammo byproduct? scrap?
|
||||||
|
//TODO surge being removed I think
|
||||||
surgeCrucible = new HeatCrafter("surge-crucible"){{
|
surgeCrucible = new HeatCrafter("surge-crucible"){{
|
||||||
requirements(Category.crafting, with(Items.silicon, 100, Items.graphite, 80, Items.carbide, 60, Items.thorium, 90));
|
requirements(Category.crafting, with(Items.silicon, 100, Items.graphite, 80, Items.carbide, 60, Items.thorium, 90));
|
||||||
|
|
||||||
|
|||||||
@@ -491,7 +491,9 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
|||||||
|
|
||||||
/** @return whether this block is allowed to update based on team/environment */
|
/** @return whether this block is allowed to update based on team/environment */
|
||||||
public boolean allowUpdate(){
|
public boolean allowUpdate(){
|
||||||
return team != Team.derelict && block.supportsEnv(state.rules.env);
|
return team != Team.derelict && block.supportsEnv(state.rules.env) &&
|
||||||
|
//check if outside map limit
|
||||||
|
(!state.rules.limitMapArea || !state.rules.disableOutsideArea || Rect.contains(state.rules.limitX, state.rules.limitY, state.rules.limitWidth, state.rules.limitHeight, tile.x, tile.y));
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockStatus status(){
|
public BlockStatus status(){
|
||||||
|
|||||||
@@ -144,6 +144,8 @@ public class Rules{
|
|||||||
public boolean limitMapArea = false;
|
public boolean limitMapArea = false;
|
||||||
/** Map area limit rectangle. */
|
/** Map area limit rectangle. */
|
||||||
public int limitX, limitY, limitWidth = 1, limitHeight = 1;
|
public int limitX, limitY, limitWidth = 1, limitHeight = 1;
|
||||||
|
/** If true, blocks outside the map area are disabled. */
|
||||||
|
public boolean disableOutsideArea = true;
|
||||||
/** special tags for additional info. */
|
/** special tags for additional info. */
|
||||||
public StringMap tags = new StringMap();
|
public StringMap tags = new StringMap();
|
||||||
/** Name of callback to call for background rendering in mods; see Renderer#addCustomBackground. Runs last. */
|
/** Name of callback to call for background rendering in mods; see Renderer#addCustomBackground. Runs last. */
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ public class Build{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(state.rules.placeRangeCheck && getEnemyOverlap(type, team, x, y) != null){
|
if(state.rules.placeRangeCheck && !state.isEditor() && getEnemyOverlap(type, team, x, y) != null){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ public class PayloadBlock extends Block{
|
|||||||
updatePayload();
|
updatePayload();
|
||||||
|
|
||||||
if(rotate){
|
if(rotate){
|
||||||
payRotation = Angles.moveToward(payRotation, rotate ? rotdeg() : 90f, payloadRotateSpeed * delta());
|
payRotation = Angles.moveToward(payRotation, block.rotate ? rotdeg() : 90f, payloadRotateSpeed * delta());
|
||||||
}
|
}
|
||||||
payVector.approach(Vec2.ZERO, payloadSpeed * delta());
|
payVector.approach(Vec2.ZERO, payloadSpeed * delta());
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,9 @@ public class DesktopLauncher extends ClientLauncher{
|
|||||||
if(Structs.contains(arg, "-gl3")){
|
if(Structs.contains(arg, "-gl3")){
|
||||||
gl30 = true;
|
gl30 = true;
|
||||||
}
|
}
|
||||||
|
if(Structs.contains(arg, "-antialias")){
|
||||||
|
samples = 16;
|
||||||
|
}
|
||||||
if(Structs.contains(arg, "-debug")){
|
if(Structs.contains(arg, "-debug")){
|
||||||
Log.level = LogLevel.debug;
|
Log.level = LogLevel.debug;
|
||||||
}
|
}
|
||||||
@@ -358,11 +361,4 @@ public class DesktopLauncher extends ClientLauncher{
|
|||||||
private static void message(String message){
|
private static void message(String message){
|
||||||
SDL.SDL_ShowSimpleMessageBox(SDL.SDL_MESSAGEBOX_ERROR, "oh no", message);
|
SDL.SDL_ShowSimpleMessageBox(SDL.SDL_MESSAGEBOX_ERROR, "oh no", message);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean validAddress(byte[] bytes){
|
|
||||||
if(bytes == null) return false;
|
|
||||||
byte[] result = new byte[8];
|
|
||||||
System.arraycopy(bytes, 0, result, 0, bytes.length);
|
|
||||||
return !new String(Base64Coder.encode(result)).equals("AAAAAAAAAOA=") && !new String(Base64Coder.encode(result)).equals("AAAAAAAAAAA=");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,4 +24,4 @@ android.useAndroidX=true
|
|||||||
#used for slow jitpack builds; TODO see if this actually works
|
#used for slow jitpack builds; TODO see if this actually works
|
||||||
org.gradle.internal.http.socketTimeout=100000
|
org.gradle.internal.http.socketTimeout=100000
|
||||||
org.gradle.internal.http.connectionTimeout=100000
|
org.gradle.internal.http.connectionTimeout=100000
|
||||||
archash=acb45de74d
|
archash=5f559f794f
|
||||||
|
|||||||
Reference in New Issue
Block a user