Add canGameOver to logic rules, fix trailing spaces (#10403)
This commit is contained in:
@@ -1512,6 +1512,7 @@ public class LExecutor{
|
|||||||
case dropZoneRadius -> state.rules.dropZoneRadius = value.numf() * 8f;
|
case dropZoneRadius -> state.rules.dropZoneRadius = value.numf() * 8f;
|
||||||
case unitCap -> state.rules.unitCap = Math.max(value.numi(), 0);
|
case unitCap -> state.rules.unitCap = Math.max(value.numi(), 0);
|
||||||
case lighting -> state.rules.lighting = value.bool();
|
case lighting -> state.rules.lighting = value.bool();
|
||||||
|
case canGameOver -> state.rules.canGameOver = value.bool();
|
||||||
case mapArea -> {
|
case mapArea -> {
|
||||||
int x = p1.numi(), y = p2.numi(), w = p3.numi(), h = p4.numi();
|
int x = p1.numi(), y = p2.numi(), w = p3.numi(), h = p4.numi();
|
||||||
if(!checkMapArea(x, y, w, h, false)){
|
if(!checkMapArea(x, y, w, h, false)){
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ public enum LogicRule{
|
|||||||
unitCap,
|
unitCap,
|
||||||
mapArea,
|
mapArea,
|
||||||
lighting,
|
lighting,
|
||||||
|
canGameOver,
|
||||||
ambientLight,
|
ambientLight,
|
||||||
solarMultiplier,
|
solarMultiplier,
|
||||||
dragMultiplier,
|
dragMultiplier,
|
||||||
|
|||||||
Reference in New Issue
Block a user