From ab882fac18193e7046c6ab9d4af16f5e360fcaec Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 23 Oct 2017 15:40:40 +0100 Subject: [PATCH] Make sure CA and CATDM use Crowns instead of Gems --- .../arcade/game/games/castleassault/CastleAssault.java | 6 ++++++ .../arcade/game/games/castleassault/CastleAssaultTDM.java | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/castleassault/CastleAssault.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/castleassault/CastleAssault.java index 5e4a3c0a1..ed84b599d 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/castleassault/CastleAssault.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/castleassault/CastleAssault.java @@ -104,6 +104,9 @@ import nautilus.game.arcade.game.games.castleassault.kits.KitFighter; import nautilus.game.arcade.game.games.castleassault.kits.KitPlayer; import nautilus.game.arcade.game.games.castleassault.kits.KitTank; import nautilus.game.arcade.game.modules.compass.CompassModule; +import nautilus.game.arcade.game.modules.gamesummary.GameSummaryComponentType; +import nautilus.game.arcade.game.modules.gamesummary.GameSummaryModule; +import nautilus.game.arcade.game.modules.gamesummary.components.GemSummaryComponent; import nautilus.game.arcade.kit.Kit; import nautilus.game.arcade.managers.lobby.current.NewGameLobbyManager; @@ -197,6 +200,9 @@ public class CastleAssault extends TeamGame .setGiveCompassToSpecs(true) .setGiveCompassToAlive(false) .register(this); + + getModule(GameSummaryModule.class) + .replaceComponent(GameSummaryComponentType.GEMS, new GemSummaryComponent(this::GetGems, C.cGold, "Crowns")); _flintAndSteel = new ItemBuilder(Material.FLINT_AND_STEEL).setData((short) (Material.FLINT_AND_STEEL.getMaxDurability() - MAX_FLINT_AND_STEEL_USES)); _wearableTnt = new ItemBuilder(Material.TNT).setTitle(C.cRed + "TNT").addLore(C.cRedB + "Right Click with Weapon to " + F.name("Detonate")); diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/castleassault/CastleAssaultTDM.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/castleassault/CastleAssaultTDM.java index a5d9f8e6a..31baf5b37 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/castleassault/CastleAssaultTDM.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/castleassault/CastleAssaultTDM.java @@ -85,6 +85,9 @@ import nautilus.game.arcade.game.games.castleassault.kits.KitFighter; import nautilus.game.arcade.game.games.castleassault.kits.KitPlayer; import nautilus.game.arcade.game.games.castleassault.kits.KitTank; import nautilus.game.arcade.game.modules.compass.CompassModule; +import nautilus.game.arcade.game.modules.gamesummary.GameSummaryComponentType; +import nautilus.game.arcade.game.modules.gamesummary.GameSummaryModule; +import nautilus.game.arcade.game.modules.gamesummary.components.GemSummaryComponent; import nautilus.game.arcade.kit.Kit; import nautilus.game.arcade.managers.lobby.current.NewGameLobbyManager; @@ -169,7 +172,10 @@ public class CastleAssaultTDM extends TeamGame .setGiveCompassToSpecs(true) .setGiveCompassToAlive(false) .register(this); - + + getModule(GameSummaryModule.class) + .replaceComponent(GameSummaryComponentType.GEMS, new GemSummaryComponent(this::GetGems, C.cGold, "Crowns")); + _flintAndSteel = new ItemBuilder(Material.FLINT_AND_STEEL).setData((short) (Material.FLINT_AND_STEEL.getMaxDurability() - MAX_FLINT_AND_STEEL_USES)); generateLoot();