Use laziness

This commit is contained in:
Ketchetwahmeegwun T. Southall 2022-01-30 00:37:05 -08:00
parent 4308e8d7fc
commit 295e27f83c

View File

@ -180,7 +180,7 @@ export class AnimalEntity extends Entity {
this.wanderTimer += delta
if (this.wanderTimer >= this.nextWander) {
this.nextWander = Math.max(10, Math.random() * 100)
if (Math.random() > 0.15) {
if (Math.random() > 1 - this.mode.laziness) {
this.desiredActions = []
} else {
this.desiredActions = adjustAction([], this.getCardinal(Math.random()*360), 1)