From 60ee59e2e4a41a0a7a1c8ad94595ce3e4d6f966f Mon Sep 17 00:00:00 2001 From: kts of kettek Date: Sun, 30 Jan 2022 14:43:37 -0800 Subject: [PATCH] Enable turkey --- Engine/src/live/AnimalEntity.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Engine/src/live/AnimalEntity.ts b/Engine/src/live/AnimalEntity.ts index 6f5ef57..32b66dd 100644 --- a/Engine/src/live/AnimalEntity.ts +++ b/Engine/src/live/AnimalEntity.ts @@ -290,10 +290,8 @@ export class AnimalEntity extends Entity { turn() { this.isMonster = !this.isMonster if (this.isMonster) { - //if (this.def.name !== 'deer' && this.def.name !== 'turkey') { - //this.sprite.setCtor(`${Math.random()>0.5?'deer':'turkey'}.monster.${this.sprite.setKey}.${this.sprite.subsetKey}.${this.sprite.frameIndex}`) - if (this.def.name !== 'deer') { - this.sprite.setCtor(`deer.monster.${this.sprite.setKey}.${this.sprite.subsetKey}.${this.sprite.frameIndex}`) + if (this.def.name !== 'deer' && this.def.name !== 'turkey') { + this.sprite.setCtor(`${Math.random()>0.5?'deer':'turkey'}.monster.${this.sprite.setKey}.${this.sprite.subsetKey}.${this.sprite.frameIndex}`) } else { this.sprite.setCtor(`${this.sprite.spriteKey}.monster.${this.sprite.setKey}.${this.sprite.subsetKey}.${this.sprite.frameIndex}`) }