feat: 杀掉样板的工具栏

This commit is contained in:
AncTe committed 2024-05-04 13:23:03 +08:00
1 parent 4d5f14e8a5
commit f52f986bfa
41 files changed
+1473 -222

No files matched your search

+2 -4
View File
@@ -996,7 +996,7 @@ export class DamageEnemy<T extends EnemyIds = EnemyIds> {
/**
* 计算伤害时会用到的勇士属性,攻击防御,其余的不会有buff加成,直接从core.status.hero取
*/
const realStatus: (keyof HeroStatus)[] = ['atk', 'def'];
const realStatus: (keyof HeroStatus)[] = ['atk', 'def', 'hpmax', 'mana'];
/**
* 主动技能列表
*/
@@ -1016,12 +1016,10 @@ export function calDamageWith(
): number | null {
const {
hp,
hpmax,
mana,
mdef,
special: heroSpec = { num: [], last: [] }
} = core.status.hero;
let { atk, def } = hero as HeroStatus;
let { atk, def, hpmax, mana } = hero as HeroStatus;
let { hp: monHp, atk: monAtk, def: monDef, special, enemy } = info;
let damage = 0;