feat(skill): 添加新技能资源并修复伤害计算问题
添加新的技能动画、预制体和字体资源,用于支持新技能效果。 修复技能伤害计算未取整的问题,确保伤害值为整数。 更新技能buff提示UI的字体和布局,提升显示效果。
This commit is contained in:
@@ -210,7 +210,7 @@ export class Skill extends ecs.Entity {
|
||||
const sBck = (config.bck ?? 0)+SUp.bck*skill_lv;
|
||||
const sAp =config.ap+SUp.ap*skill_lv;
|
||||
const sHit=config.hit_count+SUp.hit_count*skill_lv + cAttrsComp.puncture
|
||||
sDataCom.Attrs[Attrs.ap] = cAttrsComp.ap*sAp;
|
||||
sDataCom.Attrs[Attrs.ap] = Math.floor(cAttrsComp.ap*sAp);
|
||||
sDataCom.Attrs[Attrs.critical] = cAttrsComp.critical + sCrt;
|
||||
sDataCom.Attrs[Attrs.freeze_chance] = cAttrsComp.freeze_chance + sFrz;
|
||||
sDataCom.Attrs[Attrs.back_chance] = cAttrsComp.back_chance + sBck;
|
||||
|
||||
Reference in New Issue
Block a user