能量增长完善 下一步 开始设计英雄
This commit is contained in:
@@ -85,8 +85,9 @@ export class Skill extends ecs.Entity {
|
||||
SComp.caster_crit_d = ap_data.crit_d
|
||||
SComp.puncture = ap_data.puncture
|
||||
SComp.puncture_damage = ap_data.puncture_damage
|
||||
SComp.heal = config.heal
|
||||
SComp.shield = config.shield
|
||||
SComp.buV = config.buV
|
||||
SComp.buC = config.buC
|
||||
SComp.buR = config.buR
|
||||
SComp.burn_count = ap_data.burn_count
|
||||
SComp.burn_value = ap_data.burn_value
|
||||
SComp.stun_time = ap_data.stun_time
|
||||
|
||||
@@ -41,8 +41,9 @@ export class SkillCom extends CCComp {
|
||||
distance_x:number=0;
|
||||
distance_y:number=0;
|
||||
ap:number=0;
|
||||
heal:number=0;
|
||||
shield:number=0;
|
||||
buV:number=0;
|
||||
buC:number=0;
|
||||
buR:number=0;
|
||||
burn_count:number=0;
|
||||
burn_value:number=0;
|
||||
stun_time:number=0;
|
||||
@@ -257,18 +258,16 @@ export class SkillCom extends CCComp {
|
||||
let view=entity.get(HeroViewComp)
|
||||
if(view.node.position.x==this.targetPos.x){
|
||||
if(SkillSet[this.s_uuid].SType==SType.heal){
|
||||
view.add_hp(this.heal,false)
|
||||
view.add_hp(this.buV,false)
|
||||
}
|
||||
if(SkillSet[this.s_uuid].SType==SType.shield){
|
||||
view.add_shield(this.shield)
|
||||
view.add_shield(this.buV)
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
update(deltaTime: number) {
|
||||
let config=SkillSet[this.s_uuid]
|
||||
if(smc.mission.pause) {
|
||||
|
||||
Reference in New Issue
Block a user