fix(战斗系统): 修复伤害数值出错问题
- 修复在DamageEvent接口和DamageQueueComp缺少ext_dmg和dmg_ratio字段问题 - 修复HeroAtkSystem的伤害计算逻辑 - 优化HeroViewComp的hp_show和mp_show方法,直接使用model数据 - 默认显示血条并增加调试日志输出 - 移除冗余的debug日志,优化伤害计算流程
This commit is contained in:
@@ -149,7 +149,9 @@ export class SkillView extends CCComp {
|
||||
target.ent,
|
||||
this.sData.Attrs,
|
||||
this.sData.caster,
|
||||
this.sData.s_uuid
|
||||
this.sData.s_uuid,
|
||||
this.sData.ext_dmg,
|
||||
this.sData.dmg_ratio,
|
||||
);
|
||||
// 更新技能命中次数
|
||||
this.sData.hit_count++
|
||||
|
||||
Reference in New Issue
Block a user