fix status:x
This commit is contained in:
parent
67f98f2da6
commit
f7056d699f
@ -1841,7 +1841,7 @@ control.prototype.addStatus = function (name, value) {
|
|||||||
control.prototype.getStatus = function (name) {
|
control.prototype.getStatus = function (name) {
|
||||||
if (!core.status.hero) return null;
|
if (!core.status.hero) return null;
|
||||||
if (name == 'x' || name == 'y' || name == 'direction')
|
if (name == 'x' || name == 'y' || name == 'direction')
|
||||||
return this.getHeroLoc('x');
|
return this.getHeroLoc(name);
|
||||||
if (name == 'exp') name = 'experience';
|
if (name == 'exp') name = 'experience';
|
||||||
return core.status.hero[name];
|
return core.status.hero[name];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user