Enable turkey

This commit is contained in:
Ketchetwahmeegwun T. Southall 2022-01-30 14:43:37 -08:00
parent 5a9cbc4dc4
commit 60ee59e2e4

View File

@ -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}`)
}