fix:修正getItemEffectValue

This commit is contained in:
ShakeFlower 2025-03-07 14:55:50 +08:00
parent 7aee907d5d
commit 234af3319f

View File

@ -46,7 +46,6 @@ items.prototype.getItemEffectValue = function (itemId, ratio) {
statusName = statusName.slice(0, -2); statusName = statusName.slice(0, -2);
} }
if (core.status.hero.hasOwnProperty(statusName)) { if (core.status.hero.hasOwnProperty(statusName)) {
for (var i = 0; i < itemNum; ++i) {
try { try {
statusValue = eval(effect); statusValue = eval(effect);
} }
@ -57,7 +56,6 @@ items.prototype.getItemEffectValue = function (itemId, ratio) {
effectObj[statusName] = statusValue; effectObj[statusName] = statusValue;
} }
} }
}
return effectObj; return effectObj;
} }