Use laziness
This commit is contained in:
parent
4308e8d7fc
commit
295e27f83c
|
@ -180,7 +180,7 @@ export class AnimalEntity extends Entity {
|
||||||
this.wanderTimer += delta
|
this.wanderTimer += delta
|
||||||
if (this.wanderTimer >= this.nextWander) {
|
if (this.wanderTimer >= this.nextWander) {
|
||||||
this.nextWander = Math.max(10, Math.random() * 100)
|
this.nextWander = Math.max(10, Math.random() * 100)
|
||||||
if (Math.random() > 0.15) {
|
if (Math.random() > 1 - this.mode.laziness) {
|
||||||
this.desiredActions = []
|
this.desiredActions = []
|
||||||
} else {
|
} else {
|
||||||
this.desiredActions = adjustAction([], this.getCardinal(Math.random()*360), 1)
|
this.desiredActions = adjustAction([], this.getCardinal(Math.random()*360), 1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user