diff --git a/source/core/src/main/com/csse3200/game/components/maingame/MainGameDisplay.java b/source/core/src/main/com/csse3200/game/components/maingame/MainGameDisplay.java index e9f293d32..e46912371 100644 --- a/source/core/src/main/com/csse3200/game/components/maingame/MainGameDisplay.java +++ b/source/core/src/main/com/csse3200/game/components/maingame/MainGameDisplay.java @@ -250,7 +250,6 @@ public void clicked(InputEvent event, float x, float y) { tower5.addListener(tower5Tooltip); // Scale all the tower build buttons down - tower1.sizeBy(0.5f); // Add all buttons to their respective tables and position them towerTable.add(tower1).padRight(10f); towerTable.add(tower2).padRight(10f); diff --git a/source/core/src/test/com/csse3200/game/entities/factories/TowerFactoryTest.java b/source/core/src/test/com/csse3200/game/entities/factories/TowerFactoryTest.java index 5f2adce24..e3d20b53a 100644 --- a/source/core/src/test/com/csse3200/game/entities/factories/TowerFactoryTest.java +++ b/source/core/src/test/com/csse3200/game/entities/factories/TowerFactoryTest.java @@ -208,7 +208,7 @@ public void testWeaponTowerCombatStatsComponentAndCostComponent() { public void testWallTowerCombatStatsComponentAndCostComponent() { assertEquals(300, wallTower.getComponent(CombatStatsComponent.class).getHealth(), "Health should be 300"); assertEquals(0, wallTower.getComponent(CombatStatsComponent.class).getBaseAttack(), "BaseAttack should be 0"); - assertEquals(45, wallTower.getComponent(CostComponent.class).getCost(), "Cost should be 5"); + assertEquals(45, wallTower.getComponent(CostComponent.class).getCost(), "Cost should be 45"); } @Test