var sec = BASE_FPS * 3;
var foodHash = this.place.getFoodHash();
- if(this.yukkuri.eat(foodHash)){
+ if(foodHash !== false && this.yukkuri.eat(foodHash)){
mangMsg.output(this.yukkuri, EMsg.EAT);
this.yukkuri.setFaceImage(EFace.EAT2);
}else{
onactionend:function(self){
return function(e){
if(typeof e === "undefined")return;
- if(self.yukkuri.isManpuku()){
+ if(self.place.isFood() && self.yukkuri.isManpuku()){
self.action.setStatus(EAction.THINK);
self.yukkuri.setFaceImage(EFace.NORMAL);
this.image = game.assets[EResPath.GRASS];
this.frame = 0;
this.give = 10;
- this.amount = 3;
+ this.amount = 20;
}
this.x = x;
this.y = y;
// },
Marisa.call(this, x, y, EGrow.ADULT);
this.classname = "Player";
+ this.cmdQueue = [];
ctl.setPlayer(this);
// this.removeEventListener('enterframe',this.runEnterframe);
this.addEventListener('enterframe', function(){