From 0a77d9a011edbff18470b0f867911724cdd2996e Mon Sep 17 00:00:00 2001 From: Paolo Brasolin <paolo.brasolin@eurac.edu> Date: Wed, 13 Apr 2022 13:47:15 +0200 Subject: [PATCH] fix: #fe difficulty modulation factor --- frontend/src/js/fight_scene.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/js/fight_scene.ts b/frontend/src/js/fight_scene.ts index bb24d3b..f4b8aef 100644 --- a/frontend/src/js/fight_scene.ts +++ b/frontend/src/js/fight_scene.ts @@ -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() { -- GitLab