|
|
|
@ -48,7 +48,8 @@ export const callPlayerAttribute = (player: Player, base: any) => {
@@ -48,7 +48,8 @@ export const callPlayerAttribute = (player: Player, base: any) => {
|
|
|
|
|
attribute.dps = Math.ceil((1 - crit + crit * critdmg) * atk * (1 + dmgPercent)); |
|
|
|
|
//计算减伤比例
|
|
|
|
|
attribute.reducPercent = callReducPercent(attribute.def, player.lv); |
|
|
|
|
player.attribute = attribute; |
|
|
|
|
|
|
|
|
|
player.attribute.copy(attribute); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|