注释 打印+怪物变强
This commit is contained in:
@@ -37,13 +37,13 @@ export class SkillConComp extends CCComp {
|
||||
onLoad(){
|
||||
this.HeroView=this.node.getComponent(HeroViewComp)
|
||||
this.FIGHTCON=this.node.parent.getComponent(FightConComp)
|
||||
// console.log(this.HeroView.uuid+"=>"+this.HeroView.hero_name+"=> SkillConComp onLoad")
|
||||
// //console.log(this.HeroView.uuid+"=>"+this.HeroView.hero_name+"=> SkillConComp onLoad")
|
||||
this.on(GameEvent.CastHeroSkill,this.cast_master_skill,this)
|
||||
oops.message.on(GameEvent.MaxSkill,this.use_max_skill,this)
|
||||
|
||||
}
|
||||
start() {
|
||||
// console.log(this.HeroView.uuid+"=>"+this.HeroView.hero_name+"=> SkillConComp start")
|
||||
// //console.log(this.HeroView.uuid+"=>"+this.HeroView.hero_name+"=> SkillConComp start")
|
||||
this.HeroEntity=this.HeroView.ent
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ export class SkillConComp extends CCComp {
|
||||
this.HeroView.at = 0;
|
||||
}
|
||||
if (this.aoe_queues.length > 0) {
|
||||
console.log("[FightConComp]:aoe_queues:",this.aoe_queues)
|
||||
//console.log("[FightConComp]:aoe_queues:",this.aoe_queues)
|
||||
|
||||
// 遍历所有必杀技技能,更新它们的计时器
|
||||
for (let i = this.aoe_queues.length - 1; i >= 0; i--) {
|
||||
@@ -93,13 +93,13 @@ export class SkillConComp extends CCComp {
|
||||
cast_master_skill(e:string,uuid:any){
|
||||
if(!this.HeroView) return
|
||||
if(!this.HeroView.is_master) return
|
||||
console.log("hart cast_skill",uuid ,e)
|
||||
//console.log("hart cast_skill",uuid ,e)
|
||||
const config = SkillSet[uuid];
|
||||
this.castSkill(config,false,this.FIGHTCON.hero_buff.SKILL_DMG)
|
||||
}
|
||||
/** 施放技能 */
|
||||
castSkill(config: typeof SkillSet[keyof typeof SkillSet],is_wfuny:boolean=false,dmg:number=0) {
|
||||
// console.log(view.uuid+"=>"+view.hero_name+"施放技能:"+config.uuid);
|
||||
// //console.log(view.uuid+"=>"+view.hero_name+"施放技能:"+config.uuid);
|
||||
|
||||
this.doSkill(config,is_wfuny,dmg);
|
||||
|
||||
@@ -109,7 +109,7 @@ export class SkillConComp extends CCComp {
|
||||
use_max_skill(e:GameEvent,data:any){
|
||||
if(!this.HeroView) return
|
||||
if(!this.HeroView.is_master) return
|
||||
console.log("[SkillConComp]:use_max_skill:",data)
|
||||
//console.log("[SkillConComp]:use_max_skill:",data)
|
||||
this.skill_id_counter++;
|
||||
this.aoe_queues.push({
|
||||
id: this.skill_id_counter,
|
||||
@@ -258,7 +258,7 @@ export class SkillConComp extends CCComp {
|
||||
target_pos= new Vec3(targets[0].get(HeroViewComp).node.position.x,0,0)
|
||||
}
|
||||
let start_pos=new Vec3(-280,50,0)
|
||||
// console.log("[Skill]:node=>",start_pos)
|
||||
// //console.log("[Skill]:node=>",start_pos)
|
||||
skill.load(
|
||||
start_pos,
|
||||
this.node.parent,
|
||||
@@ -284,7 +284,7 @@ export class SkillConComp extends CCComp {
|
||||
|
||||
|
||||
public clear_timer() {
|
||||
// console.log("clear_timer");
|
||||
// //console.log("clear_timer");
|
||||
Object.values(this._timers).forEach(clearTimeout);
|
||||
}
|
||||
get_cd(cd:number,view:HeroViewComp){
|
||||
|
||||
Reference in New Issue
Block a user