mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 02:44:02 +00:00
style: format remaining owned runtime modules
This commit is contained in:
1 parent
ae99843c14
commit
2aca7aecbb
94 files changed
+8865
-3151
No files matched your search
@@ -33,13 +33,14 @@ const GAP_SPREAD_M = 6;
|
||||
*/
|
||||
export function queuePlatoons(totalLen, count, rng = Math.random) {
|
||||
const platoons = [];
|
||||
if (!Number.isFinite(totalLen) || totalLen <= 0 || !(count > 0)) return platoons;
|
||||
if (!Number.isFinite(totalLen) || totalLen <= 0 || !(count > 0))
|
||||
return platoons;
|
||||
|
||||
let placed = 0;
|
||||
while (placed < count) {
|
||||
const platoonSize = Math.min(
|
||||
count - placed,
|
||||
PLATOON_MIN + Math.floor(rng() * PLATOON_SPREAD)
|
||||
PLATOON_MIN + Math.floor(rng() * PLATOON_SPREAD),
|
||||
);
|
||||
const anchor = rng() * totalLen;
|
||||
const platoon = [];
|
||||
|
||||
Reference in new issue
Block a user