Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team 7 tower stat alterations #280

Merged
merged 2 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading