增加场景冲击波计算

This commit is contained in:
liangshi 2024-11-21 00:29:51 +08:00
parent 5682e92b08
commit 4bc3c9512b

View File

@ -47,6 +47,13 @@ let DmgCalc = {
dmgNum = (1 + phy.base / 100 + phy.plus / 100 + dynamicPhy / 100) dmgNum = (1 + phy.base / 100 + phy.plus / 100 + dynamicPhy / 100)
} }
if (/^scene,.*/.test(ele) || /.*,scene$/.test(ele) || ele === 'scene') {
dmgNum = 1
if (ele !== 'scene') {
ele = ele.replace(/(,)?scene(,)?/g, "")
}
}
// 易伤区 // 易伤区
let enemydmgNum = 1 let enemydmgNum = 1
if (game === 'sr') { if (game === 'sr') {
@ -125,7 +132,7 @@ let DmgCalc = {
cdmgNum = 0 cdmgNum = 0
} }
const isEle = ele !== false && ele !== 'phy' const isEle = ele !== false && ele !== 'phy' && ele !== 'scene'
// 反应区 // 反应区
let eleNum = 1 let eleNum = 1
let eleBase = 1 let eleBase = 1