Added the clown car

This commit is contained in:
WBHarry 2025-11-06 21:48:41 +01:00
parent 8ce7dc16db
commit e8961afc5e
6 changed files with 135 additions and 2 deletions

View file

@ -418,3 +418,15 @@ export async function createEmbeddedItemsWithEffects(actor, baseData) {
export const slugify = name => {
return name.toLowerCase().replaceAll(' ', '-').replaceAll('.', '');
};
export function shuffleArray(array) {
let currentIndex = array.length;
while (currentIndex != 0) {
let randomIndex = Math.floor(Math.random() * currentIndex);
currentIndex--;
[array[currentIndex], array[randomIndex]] = [array[randomIndex], array[currentIndex]];
}
return array;
}