changePos事件不聚集
This commit is contained in:
parent
34bb3c9713
commit
da5b260d5a
@ -1386,6 +1386,12 @@ events.prototype._action_changeFloor = function (data, x, y, prefix) {
|
|||||||
|
|
||||||
events.prototype._action_changePos = function (data, x, y, prefix) {
|
events.prototype._action_changePos = function (data, x, y, prefix) {
|
||||||
core.clearMap('hero');
|
core.clearMap('hero');
|
||||||
|
if (data.x == null && data.y == null && data.direction) {
|
||||||
|
core.setHeroLoc('direction', data.direction, true);
|
||||||
|
core.drawHero();
|
||||||
|
return core.doAction();
|
||||||
|
}
|
||||||
|
|
||||||
var loc = this.__action_getHeroLoc(data.loc, prefix);
|
var loc = this.__action_getHeroLoc(data.loc, prefix);
|
||||||
core.setHeroLoc('x', loc[0]);
|
core.setHeroLoc('x', loc[0]);
|
||||||
core.setHeroLoc('y', loc[1]);
|
core.setHeroLoc('y', loc[1]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user