SteamWar/FightSystem
Archiviert
13
1

Merge pull request 'Unlimited preparation phase option' (#387) from unlimitedPrepare into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Reviewed-on: #387
Reviewed-by: YoyoNow <jwsteam@nidido.de>
Dieser Commit ist enthalten in:
Lixfel 2023-04-11 11:04:34 +02:00
Commit 6a2a7ff9f7
3 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -72,6 +72,8 @@ Schematic:
ReplaceObsidianBedrock: false # defaults to false if missing
# If the replacement should happen with block updates
ReplaceWithBlockupdates: false # defaults to false if missing
# If the schematic perparation arena mode is time limited
UnlimitedPrepare: false # defaults to false if missing
# Maximal amount of blocks allowed in the schematic
MaxBlocks: 0 # defaults to 0 (ignored) if missing
# Maximal amount of items per dispenser

Datei anzeigen

@ -88,6 +88,7 @@ public class Config {
public static final boolean PasteAligned;
public static final boolean ReplaceObsidianBedrock;
public static final boolean ReplaceWithBlockupdates;
public static final boolean UnlimitedPrepare;
//team parameter
public static final String TeamRedName;
@ -185,6 +186,7 @@ public class Config {
PasteAligned = config.getBoolean("Schematic.PasteAligned", false);
ReplaceObsidianBedrock = config.getBoolean("Schematic.ReplaceObsidianBedrock", false);
ReplaceWithBlockupdates = config.getBoolean("Schematic.ReplaceWithBlockupdates", false);
UnlimitedPrepare = config.getBoolean("Schematic.UnlimitedPrepare", false);
GameName = config.getString("GameName", "WarGear");
TeamChatDetection = config.getString("TeamChatPrefix", "+");

Datei anzeigen

@ -29,6 +29,9 @@ public class PostSchemCountdown extends Countdown {
public PostSchemCountdown() {
super(Config.SetupDuration, new Message("POST_SCHEM_COUNTDOWN"), null, false);
if(Config.mode == ArenaMode.PREPARE && Config.UnlimitedPrepare)
return;
new StateDependentCountdown(ArenaMode.SeriousFight, FightState.PostSchemSetup, this);
}