getRealStatus Math.floor

This commit is contained in:
oc 2019-04-22 18:33:20 +08:00
parent 6ee94d6501
commit 6483c5e9da

View File

@ -1857,7 +1857,7 @@ control.prototype.getStatus = function (name) {
control.prototype.getStatusOrDefault = function (status, name) { control.prototype.getStatusOrDefault = function (status, name) {
if (status && name in status) if (status && name in status)
return status[name]; return status[name];
return this.getStatus(name); return Math.floor(this.getStatus(name));
} }
////// 获得勇士实际属性(增幅后的) ////// ////// 获得勇士实际属性(增幅后的) //////
@ -1867,7 +1867,7 @@ control.prototype.getRealStatus = function (name) {
////// 从status中获得实际属性增幅后的如果不存在则从勇士属性中获取 ////// ////// 从status中获得实际属性增幅后的如果不存在则从勇士属性中获取 //////
control.prototype.getRealStatusOrDefault = function (status, name) { control.prototype.getRealStatusOrDefault = function (status, name) {
return this.getStatusOrDefault(status, name) * this.getBuff(name); return Math.floor(this.getStatusOrDefault(status, name) * this.getBuff(name));
} }
////// 设置某个属性的增幅值 ////// ////// 设置某个属性的增幅值 //////