Skip to content

Commit

Permalink
fix: adjust frequency of snow and snowstorm weather effects to avoid …
Browse files Browse the repository at this point in the history
…lull

Closes #122
  • Loading branch information
ghost91- committed Jan 9, 2022
1 parent b850c3a commit 147ca32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/module/weatherEffects/effects/SnowWeatherEffect.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class SnowWeatherEffect extends AbstractWeatherEffect {
h: d.height,
},
maxParticles: p,
frequency: 1 / p,
frequency: (this.constructor.CONFIG.lifetime.min + this.constructor.CONFIG.lifetime.max) / 2 / p,
},
{ inplace: false },
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class SnowstormWeatherEffect extends AbstractWeatherEffect {
h: d.sceneRect.height,
},
maxParticles: p,
frequency: 1 / p,
frequency: (this.constructor.CONFIG.lifetime.min + this.constructor.CONFIG.lifetime.max) / 2 / p,
},
{ inplace: false },
);
Expand Down

0 comments on commit 147ca32

Please sign in to comment.