forked from SteamWar/SteamWar
add toggle for per region Wind Charge limit and blocker for leaving the region
This commit is contained in:
@@ -509,6 +509,20 @@ public final class GameModeConfig<M, W> {
|
||||
*/
|
||||
public final boolean WindchargesDestroyWater;
|
||||
|
||||
/**
|
||||
* Allows Wind Charges to leave the Region.
|
||||
*
|
||||
* @implSpec {@code true} by default
|
||||
*/
|
||||
public final boolean WindchargesCanLeaveRegion;
|
||||
|
||||
/**
|
||||
* Limits the amount of Wind Charges in each extended region. -1 is no limit
|
||||
*
|
||||
* @implSpec {@code -1} by default
|
||||
*/
|
||||
public final int WindchargeLimit;
|
||||
|
||||
private ArenaConfig(YMLWrapper<M, W> loader, SchematicConfig.SizeConfig Size, List<Integer> EnterStages) {
|
||||
loaded = loader.canLoad();
|
||||
WaterDepth = loader.getInt("WaterDepth", 0);
|
||||
@@ -529,6 +543,8 @@ public final class GameModeConfig<M, W> {
|
||||
WindchargesCanCrossMiddle = loader.getBoolean("WindchargesCanCrossMiddle", false);
|
||||
WindchargesInteractWithBlocks = loader.getBoolean("WindchargesInteractWithBlocks", true);
|
||||
WindchargesDestroyWater = loader.getBoolean("WindchargesDestroyWater", false);
|
||||
WindchargesCanLeaveRegion = loader.getBoolean("WindchargesCanLeaveRegion", true);
|
||||
WindchargeLimit = loader.getInt("WindchargeLimit", -1);
|
||||
}
|
||||
|
||||
@ToString
|
||||
|
||||
Reference in New Issue
Block a user