oops
This commit is contained in:
parent
39cafcde67
commit
07b3c2d227
|
@ -295,7 +295,7 @@ export class AnimalEntity extends Entity {
|
|||
if (this.isMonster) {
|
||||
if (this.def.name !== 'deer' && this.def.name !== 'turkey' && this.def.name !== 'nutria') {
|
||||
let keys = ['deer', 'turkey', 'nutria']
|
||||
let v = 1 + Math.floor(Math.random()*3)
|
||||
let v = Math.floor(Math.random()*3)
|
||||
this.sprite.setCtor(`${keys[v]}.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