From 295e27f83c5aed0291f536a5dd3529927969f7ad Mon Sep 17 00:00:00 2001 From: kts of kettek Date: Sun, 30 Jan 2022 00:37:05 -0800 Subject: [PATCH] Use laziness --- Engine/src/live/AnimalEntity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/src/live/AnimalEntity.ts b/Engine/src/live/AnimalEntity.ts index 45245ab..43f237a 100644 --- a/Engine/src/live/AnimalEntity.ts +++ b/Engine/src/live/AnimalEntity.ts @@ -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)