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

fix: #fe spawn delay, for the nth time

parent e3bf8e99
No related branches found
No related tags found
No related merge requests found
......@@ -345,7 +345,7 @@ async function spawn(scene: any) {
scene.time.now;
const delay =
(8 * 1000 * (60 * 1000 - scene.time.now)) / 60 / 1000 + 2 * 1000;
setTimeout(() => spawn(scene), Math.min(200, delay));
setTimeout(() => spawn(scene), Math.max(2000, delay));
}
async function spawnFoe(scene: FightScene) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment