修正攻击词条评分中的类型错误

This commit is contained in:
Monst.x 2022-06-24 12:58:31 +08:00 committed by GitHub
parent 7cc09121ac
commit dc91e8fa07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ let Reliquaries = {
attrMark.hpPlus = attrMark.hp / baseAttr[0] * 100;
}
if (attrMark.atk) {
attrMark.atkPlus = attrMark.atk / (baseAttr[1] + 400) * 100;
attrMark.atkPlus = attrMark.atk / (parseInt(baseAttr[1]) + 400) * 100;
}
if (attrMark.def) {
attrMark.defPlus = attrMark.def / baseAttr[2] * 100;