feat: 新增闪避与命中属性系统,完善战斗判定逻辑
1. 新增全局默认闪避/命中率配置,为英雄和怪物提供缺省属性兜底 2. 扩展英雄属性组件,添加闪避、命中率属性与对应计算接口 3. 实现闪避判定逻辑,修正伤害流程,添加闪避提示效果 4. 新增闪避/命中相关buff、技能与光环配置 5. 完善属性值计算与 tooltip 显示逻辑
This commit is contained in:
@@ -241,6 +241,11 @@ export class HeroViewComp extends CCComp {
|
||||
shield_tip(absorbed: number) {
|
||||
this.hp_tip(TooltipTypes.shield, NumberFormatter.formatNumber(Math.max(0, Math.floor(absorbed))));
|
||||
}
|
||||
|
||||
/** 闪避提示 */
|
||||
showMiss() {
|
||||
this.hp_tip(TooltipTypes.miss, "闪避");
|
||||
}
|
||||
public playBuff(anm: string = "") {
|
||||
if (anm === "") return;
|
||||
var path = "game/skill/buff/" + anm;
|
||||
|
||||
Reference in New Issue
Block a user