From 6483c5e9dababdf9612c3ccd2339d36d3b122d23 Mon Sep 17 00:00:00 2001 From: oc Date: Mon, 22 Apr 2019 18:33:20 +0800 Subject: [PATCH] getRealStatus Math.floor --- libs/control.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/control.js b/libs/control.js index e8a7f75b..c8d58abf 100644 --- a/libs/control.js +++ b/libs/control.js @@ -1857,7 +1857,7 @@ control.prototype.getStatus = function (name) { control.prototype.getStatusOrDefault = function (status, name) { if (status && name in status) return status[name]; - return this.getStatus(name); + return Math.floor(this.getStatus(name)); } ////// 获得勇士实际属性(增幅后的) ////// @@ -1867,7 +1867,7 @@ control.prototype.getRealStatus = function (name) { ////// 从status中获得实际属性(增幅后的),如果不存在则从勇士属性中获取 ////// control.prototype.getRealStatusOrDefault = function (status, name) { - return this.getStatusOrDefault(status, name) * this.getBuff(name); + return Math.floor(this.getStatusOrDefault(status, name) * this.getBuff(name)); } ////// 设置某个属性的增幅值 //////