Enable turkey
This commit is contained in:
parent
5a9cbc4dc4
commit
60ee59e2e4
|
@ -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}`)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user