Skip to content

Commit

Permalink
fixed fireworks tower fire rate
Browse files Browse the repository at this point in the history
  • Loading branch information
ThivanW committed Oct 11, 2023
1 parent cc84d3c commit d685387
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
public class FireworksTowerCombatTask extends DefaultTask implements PriorityTask {
// constants
// Time interval (in seconds) to scan for enemies
private static final int INTERVAL = 1;
private static final int INTERVAL = 2;
// The type of targets this tower will detect
private static final short TARGET = PhysicsLayer.NPC;
//Following constants are names of events that will be triggered in the state machine
Expand Down Expand Up @@ -69,7 +69,7 @@ public void start() {
// Set the default state to IDLE state
owner.getEntity().getEvents().trigger(IDLE);

endTime = timeSource.getTime() + (INTERVAL * 500);
endTime = timeSource.getTime() + (INTERVAL * 1000);
}

/**
Expand Down

0 comments on commit d685387

Please sign in to comment.