todo 技能存在时间准确性问题

This commit is contained in:
2025-01-10 11:07:53 +08:00
parent b4158a0a29
commit 1d9af24c66
20 changed files with 315 additions and 457 deletions

View File

@@ -22,7 +22,7 @@ export class Skill extends ecs.Entity {
super.destroy();
}
load(pos: Vec3 = Vec3.ZERO,group:number,parent:Node,uuid:number=1001,
ap:number =10,t_pos:Vec3 = null,is_crit:boolean=false,crit_add:number=0)
ap:number =10,t_pos:Vec3 = null,is_crit:boolean=false,crit_add:number=0,hp:number=0)
{
var path = "game/skills/"+SkillSet[uuid].sp_name;
var prefab: Prefab = oops.res.get(path, Prefab)!;
@@ -45,7 +45,11 @@ export class Skill extends ecs.Entity {
// console.log(group+" "+SkillSet[uuid].name+"angle:"+angle)
sv.s_uuid = uuid;
sv.s_name = SkillSet[uuid].name;
sv.ap = ap*SkillSet[uuid].ap;
sv.ap = ap*SkillSet[uuid].ap/100; // 技能伤害
sv.apup = ap*SkillSet[uuid].apup/100; // 伤害增量
sv.hp = hp*SkillSet[uuid].hp/100; // 回复hp增量
sv.mhp = SkillSet[uuid].mhp/100; // hpmax增量 %
sv.shield =SkillSet[uuid].shield; // 护甲增量
sv.cd = SkillSet[uuid].cd;
sv.tg = SkillSet[uuid].tg;
sv.debtime = SkillSet[uuid].debtime;