Skip to content
Snippets Groups Projects
Commit 0a77d9a0 authored by Paolo.Brasolin's avatar Paolo.Brasolin
Browse files

fix: #fe difficulty modulation factor

parent 9c877ed9
No related branches found
No related tags found
No related merge requests found
......@@ -483,9 +483,9 @@ export default class FightScene extends Phaser.Scene {
getDifficulty(t: number, plateausAt = 15 * 60000) {
// NOTE: c'mon... 15 minutes?
// NOTE: this maps [0;∞] ↦ [0;10]
// NOTE: this maps [0;∞] ↦ [0;1]
if (t >= plateausAt) return 1;
return this.sawtoothRamp(t / plateausAt) * 10;
return this.sawtoothRamp(t / plateausAt);
}
async spawnFoes() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment