Map editor tweaks & fixes / New map

This commit is contained in:
Anuken
2020-10-22 15:27:30 -04:00
parent c2ff5a69ef
commit a2e75df096
22 changed files with 108 additions and 76 deletions

View File

@@ -100,6 +100,8 @@ public class Block extends UnlockableContent{
public boolean autoResetEnabled = true;
/** if true, the block stops updating when disabled */
public boolean noUpdateDisabled = false;
/** Whether to use this block's color in the minimap. Only used for overlays. */
public boolean useColor = true;
/** tile entity health */
public int health = -1;
/** base block explosiveness */

View File

@@ -183,7 +183,7 @@ public class Conveyor extends Block implements Autotiler{
@Override
public void unitOn(Unit unit){
if(clogHeat > 0.5f) return;
if(clogHeat > 0.5f || !enabled) return;
noSleep();

View File

@@ -20,6 +20,7 @@ public class OreBlock extends OverlayFloor{
this.itemDrop = ore;
this.variants = 3;
this.mapColor.set(ore.color);
this.useColor = true;
}
/** For mod use only!*/

View File

@@ -9,6 +9,7 @@ public class OverlayFloor extends Floor{
public OverlayFloor(String name){
super(name);
useColor = false;
}
@Override