Skip to content

Commit

Permalink
TowerUpgraderComponent is now added to tower entities when they are c…
Browse files Browse the repository at this point in the history
…reated.
  • Loading branch information
AlasdairS4698737 committed Sep 6, 2023
1 parent 82715be commit 705c3e2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.csse3200.game.entities.factories;

import com.csse3200.game.components.tower.TowerUpgraderComponent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.badlogic.gdx.graphics.Texture;
Expand Down Expand Up @@ -116,7 +117,8 @@ public static Entity createWeaponTower() {
.addComponent(new CostComponent(config.cost))
.addComponent(aiTaskComponent)
.addComponent(animator)
.addComponent(new TowerAnimationController());
.addComponent(new TowerAnimationController())
.addComponent(new TowerUpgraderComponent());

return weapon;

Expand Down

0 comments on commit 705c3e2

Please sign in to comment.