From 0586e5fb77f5d6d757c393276fed51775ebe7dd8 Mon Sep 17 00:00:00 2001 From: Mysticate Date: Sun, 26 Jul 2015 00:27:09 -0400 Subject: [PATCH] Added an exception for a map to make it night. --- .../arcade/game/games/lobbers/BombLobbers.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/lobbers/BombLobbers.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/lobbers/BombLobbers.java index df3d97f48..837104e2d 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/lobbers/BombLobbers.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/lobbers/BombLobbers.java @@ -108,11 +108,23 @@ public class BombLobbers extends TeamGame implements IThrown HungerSet = 20; - WorldTimeSet = -1; + WorldTimeSet = 6000; registerStatTrackers(new Tracker6Kill(this), new TrackerBlastProof(this), new TrackerNoDamage(this), new TrackerTNTThrown(this), new TrackerDirectHit(this)); } + @EventHandler + public void setTime(GameStateChangeEvent event) + { + if (event.GetState() != GameState.Prepare) + return; + + if (WorldData.MapName.equalsIgnoreCase("Intergalactic")) + { + WorldTimeSet = 18000; + } + } + public void addKill(Player player) { _kills.put(player, _kills.containsKey(player) ? _kills.get(player) + 1 : 1);