feat(技能): 添加治疗和魔法盾基础技能配置
- 新增治疗(6100)和魔法盾(6101)基础技能配置 - 删除旧的heath技能资源文件 - 添加新的heathed动画和预制体资源 - 调整水球技能(6005)的ap和map参数
This commit is contained in:
@@ -430,17 +430,17 @@ export class HeroViewComp extends CCComp {
|
|||||||
|
|
||||||
playSkillEffect(skill_id:number) {
|
playSkillEffect(skill_id:number) {
|
||||||
let skill = SkillSet[skill_id]
|
let skill = SkillSet[skill_id]
|
||||||
|
console.log('[heroview] skill_id'+skill_id,skill)
|
||||||
|
if (!skill) return;
|
||||||
switch(skill.act){
|
switch(skill.act){
|
||||||
case "max":
|
case "max":
|
||||||
this.as.max()
|
this.as.max()
|
||||||
this.tooltip(TooltipTypes.skill, skill.name)
|
|
||||||
break
|
break
|
||||||
case "atk":
|
case "atk":
|
||||||
this.as.atk()
|
this.as.atk()
|
||||||
break
|
break
|
||||||
case "buff":
|
case "buff":
|
||||||
this.as.buff()
|
this.as.buff()
|
||||||
this.tooltip(TooltipTypes.skill, skill.name)
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,12 @@ export class TooltipCom extends CCComp {
|
|||||||
},0.5)
|
},0.5)
|
||||||
break
|
break
|
||||||
case TooltipTypes.skill:
|
case TooltipTypes.skill:
|
||||||
this.node.getChildByName("skill").getChildByName("name").getComponent(Label).string = "<"+SkillSet[this.s_uuid].name+">";
|
const skillConfig = SkillSet[this.s_uuid];
|
||||||
|
if (skillConfig) {
|
||||||
|
this.node.getChildByName("skill").getChildByName("name").getComponent(Label).string = "<"+skillConfig.name+">";
|
||||||
|
} else {
|
||||||
|
this.node.getChildByName("skill").getChildByName("name").getComponent(Label).string = "";
|
||||||
|
}
|
||||||
this.node.getChildByName("skill").active=true;
|
this.node.getChildByName("skill").active=true;
|
||||||
this.node.setPosition(v3(this.node.position.x,this.node.position.y+30))
|
this.node.setPosition(v3(this.node.position.x,this.node.position.y+30))
|
||||||
this.scheduleOnce(()=>{
|
this.scheduleOnce(()=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user