Fire rule
This commit is contained in:
@@ -17,7 +17,7 @@ public class Fires{
|
|||||||
|
|
||||||
/** Start a fire on the tile. If there already is a file there, refreshes its lifetime. */
|
/** Start a fire on the tile. If there already is a file there, refreshes its lifetime. */
|
||||||
public static void create(Tile tile){
|
public static void create(Tile tile){
|
||||||
if(net.client() || tile == null) return; //not clientside.
|
if(net.client() || tile == null || !state.rules.fire) return; //not clientside.
|
||||||
|
|
||||||
Fire fire = map.get(tile.pos());
|
Fire fire = map.get(tile.pos());
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ public class Rules{
|
|||||||
public boolean reactorExplosions = true;
|
public boolean reactorExplosions = true;
|
||||||
/** Whether friendly explosions can occur and set fire/damage other blocks. */
|
/** Whether friendly explosions can occur and set fire/damage other blocks. */
|
||||||
public boolean damageExplosions = true;
|
public boolean damageExplosions = true;
|
||||||
|
/** Whether fire is enabled. */
|
||||||
|
public boolean fire = true;
|
||||||
/** Whether units use and require ammo. */
|
/** Whether units use and require ammo. */
|
||||||
public boolean unitAmmo = false;
|
public boolean unitAmmo = false;
|
||||||
/** How fast unit pads build units. */
|
/** How fast unit pads build units. */
|
||||||
|
|||||||
Reference in New Issue
Block a user