survivors: adding items and item drops

adding rarities to items
adding drops to enemies
This commit is contained in:
Sheldan
2025-09-05 22:33:09 +02:00
parent f2e62a7e74
commit 7214a64b77
7 changed files with 272 additions and 19 deletions

View File

@@ -77,4 +77,8 @@ export function getCoordinatesSplit(amount: number) {
points.push(new Vector(x, y))
}
return points;
}
export function randomItem(items: any[]) {
return items[Math.floor(Math.random() * items.length)]
}