Skip to content

Commit

Permalink
removed resize of tower buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
The-AhmadAA committed Oct 15, 2023
1 parent b69b1f2 commit fade9b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fade9b8

Please sign in to comment.