fix: Исправлены методы Entity.getMobile(), Entity.health()
This commit is contained in:
@@ -6024,8 +6024,8 @@ var EntityAPI = {
|
|||||||
setTarget: function(ent, target) {
|
setTarget: function(ent, target) {
|
||||||
return Entity.setTarget(ent, target);
|
return Entity.setTarget(ent, target);
|
||||||
},
|
},
|
||||||
getMobile: function(ent, mobile) {
|
getMobile: function(ent) {
|
||||||
Entity.isImmobile(ent);
|
return Entity.isImmobile(ent);
|
||||||
},
|
},
|
||||||
setMobile: function(ent, mobile) {
|
setMobile: function(ent, mobile) {
|
||||||
Entity.setImmobile(ent, !mobile);
|
Entity.setImmobile(ent, !mobile);
|
||||||
@@ -6048,16 +6048,16 @@ var EntityAPI = {
|
|||||||
health: function(entity) {
|
health: function(entity) {
|
||||||
return {
|
return {
|
||||||
get: function() {
|
get: function() {
|
||||||
return this.getHealth(entity);
|
return EntityAPI.getHealth(entity);
|
||||||
},
|
},
|
||||||
set: function(health) {
|
set: function(health) {
|
||||||
this.setHealth(entity, health);
|
EntityAPI.setHealth(entity, health);
|
||||||
},
|
},
|
||||||
getMax: function() {
|
getMax: function() {
|
||||||
return this.getMaxHealth(entity);
|
return EntityAPI.getMaxHealth(entity);
|
||||||
},
|
},
|
||||||
setMax: function(health) {
|
setMax: function(health) {
|
||||||
this.setMaxHealth(entity, health);
|
EntityAPI.setMaxHealth(entity, health);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user