mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-03 23:04:04 +02:00
Update max fireworks in pitching.js to be 10
This commit is contained in:
parent
4d5ed2efcf
commit
6ae4ef78dd
1 changed files with 2 additions and 4 deletions
|
@ -464,10 +464,8 @@ Baseball.prototype = {
|
|||
this.state = BASEBALL_STATE.HIT_LANDED;
|
||||
if (this.distanceTravelled > FIREWORK_SHOW_DISTANCE_FEET) {
|
||||
print("PLAYING SHOW")
|
||||
var numberOfFireworks = Math.floor(this.distanceTraveled / 100);
|
||||
if (this.wasHighScore) {
|
||||
numberOfFireworks = 20;
|
||||
}
|
||||
var numberOfFireworks = Math.floor(this.distanceTravelled / 200);
|
||||
numberOfFireworks = Math.min(10, numberOfFireworks);
|
||||
playFireworkShow(numberOfFireworks, 2000);
|
||||
}
|
||||
print("Ball took " + this.timeSinceHit.toFixed(3) + " seconds to land");
|
||||
|
|
Loading…
Reference in a new issue