updated
能量豆条件完善
This commit is contained in:
parent
49a2995437
commit
99305387bf
2
index.js
2
index.js
@ -488,7 +488,7 @@
|
|||||||
beans.set(this.coord.x,this.coord.y,1);
|
beans.set(this.coord.x,this.coord.y,1);
|
||||||
if(goods[this.coord.x+','+this.coord.y]){ //吃到能量豆
|
if(goods[this.coord.x+','+this.coord.y]){ //吃到能量豆
|
||||||
items.forEach(function(item){
|
items.forEach(function(item){
|
||||||
if(item.status==1){ //如果NPC为正常状态,则置为临时状态
|
if(item.status==1||item.status==3){ //如果NPC为正常状态,则置为临时状态
|
||||||
item.timeout = 450;
|
item.timeout = 450;
|
||||||
item.status = 3;
|
item.status = 3;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user