Increase difficulty

This commit is contained in:
Ketchetwahmeegwun T. Southall 2022-01-30 18:56:42 -08:00
parent 07b3c2d227
commit 10f4ac0eb9

View File

@ -691,7 +691,7 @@ export function GameState(ctx: ContextI, selectedAnimal: string, selectedSegment
daysSurvived++ daysSurvived++
for (let animal of ['turkey','nutria','deer','salamander','rabbit']) { for (let animal of ['turkey','nutria','deer','salamander','rabbit']) {
let count = 1 + Math.floor(Math.random() * daysSurvived) let count = 2 + Math.floor(Math.random() * daysSurvived*2)
for (let i = 0; i < count; i++) { for (let i = 0; i < count; i++) {
let spawn = getSpawnZone(animal) let spawn = getSpawnZone(animal)
if (!spawn) break if (!spawn) break