Skip to content

Commit

Permalink
Merge branch 'main' into Team-1-Mobs-Enhancement-variations
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniSoda17 committed Oct 16, 2023
2 parents 7ac0367 + fd7c9ce commit 37a9ba2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public FireTowerCombatTask(int priority, float maxRange) {
public void start() {
super.start();
// get the tower coordinates
this.towerPosition = owner.getEntity().getCenterPosition();
this.towerPosition = owner.getEntity().getCenterPosition().sub(0.125f,0.125f);
this.maxRangePosition.set(towerPosition.x + maxRange, towerPosition.y);
owner.getEntity().getEvents().addListener("addFireRate",this::changeFireRateInterval);
//default to idle state
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public PierceTowerCombatTask(int priority, float maxRange) {
public void start() {
super.start();
// Get the tower coordinates
this.towerPosition = owner.getEntity().getCenterPosition();
this.towerPosition = owner.getEntity().getCenterPosition().sub(0.25f, 0.25f);
this.maxRangePosition.set(towerPosition.x + maxRange, towerPosition.y);
// Set the default state to IDLE state
owner.getEntity().getEvents().trigger(IDLE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public RicochetTowerCombatTask(int priority, float maxRange) {
public void start() {
super.start();
// Get the tower coordinates
this.towerPosition = owner.getEntity().getCenterPosition();
this.towerPosition = owner.getEntity().getCenterPosition().sub(0.25f, 0.25f);
this.maxRangePosition.set(towerPosition.x + maxRange, towerPosition.y);
// Set the default state to IDLE state
owner.getEntity().getEvents().trigger(IDLE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public StunTowerCombatTask(int priority, float maxRange) {
public void start() {
super.start();
//get the tower coordinates
this.towerPosition = owner.getEntity().getCenterPosition();
this.towerPosition = owner.getEntity().getCenterPosition().sub(0.25f, 0.25f);
this.maxRangePosition.set(towerPosition.x + maxRange, towerPosition.y);
owner.getEntity().getEvents().addListener("addFireRate",this::changeFireRateInterval);
//set the default state to IDLE state
Expand Down

0 comments on commit 37a9ba2

Please sign in to comment.