mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
fix: 计算
This commit is contained in:
parent
2c02be9e68
commit
cc9a0a1271
2 changed files with 4 additions and 3 deletions
|
|
@ -29,7 +29,7 @@ export const getEquipPropertyBaseScore = (charID, propertyID) => {
|
|||
/**
|
||||
* 获取装备属性分数
|
||||
* @param {string} charID 角色id
|
||||
* @param {string} propertyID 属性id
|
||||
* @param {number} propertyID 属性id
|
||||
* @param {string} value 属性值
|
||||
* @returns {number}
|
||||
*/
|
||||
|
|
@ -38,6 +38,7 @@ export const getEquipPropertyScore = (charID, propertyID, value) => {
|
|||
value = value.replace('%', '');
|
||||
}
|
||||
value = Number(value);
|
||||
propertyID = String(propertyID);
|
||||
const baseScore = getEquipPropertyBaseScore(charID, propertyID);
|
||||
let finalScore = baseScore * value;
|
||||
switch (propertyID) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue