Increase difficulty
This commit is contained in:
parent
07b3c2d227
commit
10f4ac0eb9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user