diff --git a/src/data/changelog.json b/src/data/changelog.json index 0d7fb0eb..64c4d154 100644 --- a/src/data/changelog.json +++ b/src/data/changelog.json @@ -1,7 +1,10 @@ [ { - "time": "2024-04-14", - "changes": ["【精英材料计算】支持五周年活动限时掉落"] + "time": "2024-05-03", + "changes": [ + "【精英材料计算】支持五周年活动限时掉落", + "【精英材料计算】修复理智效率没有计算龙门币价值的问题" + ] }, { "time": "2024-04-14", diff --git a/src/store/materialValue.js b/src/store/materialValue.js index 79e08e35..1ffcc1d9 100644 --- a/src/store/materialValue.js +++ b/src/store/materialValue.js @@ -59,12 +59,22 @@ export const useMaterialValueStore = defineStore('materialValue', () => { } }; + const omitFieldsSet = new Set([ + 'zoneId', + 'sampleNum', + 'event', + 'retro', + 'cost', + 'lmd', + 'cardExp', + ]); + const calcStageEfficiency = dropTable => { if (!dataReady.value) return {}; return mapValues(dropTable, drops => { - let ap = 0; + let ap = drops.lmd * data.value[4001]; _.each(drops, (v, k) => { - if (k in data.value && v > 0) { + if (!omitFieldsSet.has(k) && k in data.value && v > 0) { ap += v * data.value[k]; } });