dd
This commit is contained in:
@@ -265,7 +265,13 @@ export const SkillSet = {
|
||||
6010:{uuid:6010,name:"攻击",for_hero:false,sp_name:"atk1",path:"3036",quality:Quality.WHITE, TType:TType.Frontline,maxC:1,
|
||||
TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single,CdType:CdType.cd,AType:AType.fixedStart,RType:RType.linear,EType:EType.animationEnd,fname:"max",flash:false,with:0,
|
||||
debuff:0,deV:0,deC:0,deR:100,in:8,ap:100,cd:5,hit:1,hited:0.2,buV:0,buC:0,buR:100,speed:720,cost:10,info:"向最前方敌人扔出石斧,造成100%攻击的伤害"},
|
||||
|
||||
6011:{uuid:6011,name:"攻击",for_hero:false,sp_name:"atk2",path:"3036",quality:Quality.WHITE, TType:TType.Frontline,maxC:1,
|
||||
TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single,CdType:CdType.cd,AType:AType.fixedStart,RType:RType.linear,EType:EType.animationEnd,fname:"max",flash:false,with:0,
|
||||
debuff:0,deV:0,deC:0,deR:100,in:8,ap:100,cd:5,hit:1,hited:0.2,buV:0,buC:0,buR:100,speed:720,cost:10,info:"向最前方敌人扔出石斧,造成100%攻击的伤害"},
|
||||
6020:{uuid:6020,name:"烈焰斩击",for_hero:false,sp_name:"max_fireatk",path:"3036",quality:Quality.WHITE, TType:TType.Frontline,maxC:1,
|
||||
TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single,CdType:CdType.cd,AType:AType.fixedStart,RType:RType.linear,EType:EType.animationEnd,fname:"max",flash:false,with:0,
|
||||
debuff:0,deV:0,deC:0,deR:100,in:8,ap:100,cd:5,hit:1,hited:0.2,buV:0,buC:0,buR:100,speed:720,cost:10,info:"向最前方敌人扔出石斧,造成100%攻击的伤害"},
|
||||
|
||||
|
||||
6021:{uuid:6021,name:"烈火护盾",for_hero:true,sp_name:"max_firedun",path:"3061",quality:Quality.BLUE, TType:TType.Frontline,maxC:1,
|
||||
TGroup:TGroup.Ally,SType:SType.damage,act:"atk",DTType:DTType.range,CdType:CdType.power,AType:AType.fixedStart,RType:RType.fixed,EType:EType.timeEnd,fname:"max",flash:false,with:90,
|
||||
|
||||
@@ -255,12 +255,12 @@ export const getGrowthModeDescription = (heroType: HType): string => {
|
||||
export const HeroInfo = {
|
||||
|
||||
//主将
|
||||
5001:{uuid:5001,name:"刺心.艾吉斯",path:"k2", quality:HQuality.BLUE,lv:1,kind:1,
|
||||
type:HType.warrior,hp:100,ap:15,dis:400,cd:1.5,speed:50,skills:[6010,6004,6004],
|
||||
5001:{uuid:5001,name:"火焰骑士",path:"k2", quality:HQuality.BLUE,lv:1,kind:1,
|
||||
type:HType.warrior,hp:100,ap:15,dis:400,cd:1.5,speed:50,skills:[6011,6020],
|
||||
buff:[],info:"剑类专精,穿刺伤害额外+10%"},
|
||||
|
||||
5002:{uuid:5002,name:"飓风.格罗姆",path:"k3", quality:HQuality.BLUE,lv:1,kind:1,
|
||||
type:HType.warrior,hp:100,ap:15,dis:400,cd:1.5,speed:50,skills:[6010,6005,6005],
|
||||
5002:{uuid:5002,name:"圣盾骑士",path:"k3", quality:HQuality.BLUE,lv:1,kind:1,
|
||||
type:HType.warrior,hp:100,ap:15,dis:400,cd:1.5,speed:50,skills:[6011,6004],
|
||||
buff:[],info:"斧类专精,风怒概率增加10%"},
|
||||
|
||||
// 5003:{uuid:5003,name:"碎颅.赫克托",path:"k4", quality:HQuality.BLUE,lv:1,kind:1,
|
||||
@@ -272,28 +272,28 @@ export const HeroInfo = {
|
||||
// buff:[],info:"刀类专精,易伤效果额外持续1次"},
|
||||
|
||||
5005:{uuid:5005,name:"幽灵射手",path:"a4", quality:HQuality.BLUE,lv:1,kind:2,
|
||||
type:HType.remote,hp:100,ap:15,dis:400,cd:1.5,speed:50,skills:[6003,6003,6003],
|
||||
type:HType.remote,hp:100,ap:15,dis:400,cd:1.5,speed:50,skills:[6003,6003],
|
||||
buff:[],info:"说明"},
|
||||
|
||||
|
||||
5007:{uuid:5007,name:"混沌法师",path:"zh1", quality:HQuality.BLUE,lv:1,kind:2,
|
||||
type:HType.mage,hp:100,ap:15,dis:400,cd:1.5,speed:50,skills:[6002,6002,6002],
|
||||
type:HType.mage,hp:100,ap:15,dis:400,cd:1.5,speed:50,skills:[6002,6002],
|
||||
buff:[],info:"说明"},
|
||||
|
||||
5008:{uuid:5008,name:"火焰法师",path:"zh2", quality:HQuality.BLUE,lv:1,kind:2,
|
||||
type:HType.mage,hp:100,ap:15,dis:400,cd:1.5,speed:50,skills:[6002,6002,6002],
|
||||
type:HType.mage,hp:100,ap:15,dis:400,cd:1.5,speed:50,skills:[6022,6002],
|
||||
buff:[],info:"说明"},
|
||||
|
||||
5009:{uuid:5009,name:"风暴精灵",path:"d1", quality:HQuality.BLUE,lv:1,kind:2,
|
||||
type:HType.mage,hp:100,ap:15,dis:400,cd:1.5,speed:50,skills:[6002,6002,6002],
|
||||
type:HType.mage,hp:100,ap:15,dis:400,cd:1.5,speed:50,skills:[6002,6002],
|
||||
buff:[],info:"说明"},
|
||||
|
||||
5010:{uuid:5010,name:"战争祭祀",path:"d2", quality:HQuality.BLUE,lv:1,kind:2,
|
||||
type:HType.mage,hp:100,ap:15,dis:400,cd:1.5,speed:50,skills:[6002,6002,6002],
|
||||
type:HType.mage,hp:100,ap:15,dis:400,cd:1.5,speed:50,skills:[6024,6002],
|
||||
buff:[],info:"说明"},
|
||||
|
||||
5011:{uuid:5011,name:"暴风射手",path:"a5", quality:HQuality.BLUE,lv:1,kind:2,
|
||||
type:HType.remote,hp:100,ap:15,dis:400,cd:1.5,speed:50,skills:[6003,6003,6003],
|
||||
type:HType.remote,hp:100,ap:15,dis:400,cd:1.5,speed:50,skills:[6003,6003],
|
||||
buff:[],info:"说明"},
|
||||
|
||||
|
||||
|
||||
@@ -75,6 +75,9 @@ export class BattleMoveSystem extends ecs.ComblockSystem implements ecs.ISystemU
|
||||
if(view.node.position.x <= FightSet.HEARTPOS){
|
||||
oops.message.dispatchEvent(GameEvent.LifeChange,-1)
|
||||
view.atk_heart=true
|
||||
view.is_dead=true
|
||||
view.BUFFCOMP.dead()
|
||||
view.do_dead()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import { timedCom } from '../skills/timedCom';
|
||||
import { smc } from '../common/SingletonModuleComp';
|
||||
import { HeroViewComp } from './HeroViewComp';
|
||||
import { GameEvent } from '../common/config/GameEvent';
|
||||
import { Timer } from 'db://oops-framework/core/common/timer/Timer';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('BuffComp')
|
||||
@@ -33,6 +34,10 @@ export class BuffComp extends Component {
|
||||
speek_time:number=0;
|
||||
HeroView:HeroViewComp=null!
|
||||
hp_bar:any=null
|
||||
|
||||
timer:Timer=new Timer(2);
|
||||
buff_keys:any[]=["by1","by2","by3"]
|
||||
key_index:number=0;
|
||||
protected onLoad(): void {
|
||||
}
|
||||
start() {
|
||||
@@ -47,11 +52,11 @@ export class BuffComp extends Component {
|
||||
this.hp_bar=this.top_node.getChildByName("hp").getComponent(ProgressBar)
|
||||
// this.top_node.getChildByName("hp").active=(this.node.getComponent(HeroViewComp).fac == 1 ? true : false)
|
||||
|
||||
this.vmdata_update()
|
||||
// this.vmdata_update()
|
||||
}
|
||||
|
||||
to_update_vmdata(){
|
||||
this.vmdata_update(false)
|
||||
// this.vmdata_update(false)
|
||||
}
|
||||
update(deltaTime: number) {
|
||||
if(smc.mission.pause) return
|
||||
@@ -60,11 +65,13 @@ export class BuffComp extends Component {
|
||||
if(this.wind_cd <= 0 && this.node.getChildByName("wind").active){
|
||||
this.node.getChildByName("wind").active = false;
|
||||
}
|
||||
|
||||
if(this.buff_cd > 0 ) this.buff_cd -= deltaTime;
|
||||
if(this.buff_cd <= 0 && this.node.getChildByName("buff").active){
|
||||
this.node.getChildByName("buff").active = false;
|
||||
if(this.timer.update(deltaTime)){
|
||||
this.timer.reset()
|
||||
this.show_buff(this.buff_keys[this.key_index])
|
||||
this.key_index++
|
||||
if(this.key_index>=this.buff_keys.length) this.key_index=0
|
||||
}
|
||||
|
||||
// this.in_speek(deltaTime)
|
||||
// this.vmdata_update()
|
||||
}
|
||||
@@ -132,9 +139,10 @@ export class BuffComp extends Component {
|
||||
}
|
||||
|
||||
|
||||
show_buff(t:number=1){
|
||||
this.buff_cd = t;
|
||||
this.node.getChildByName("buff").active = true;
|
||||
show_buff(key:string="bb"){
|
||||
this.node.getChildByName("buff").getChildByName("by1").active = key == "by1"
|
||||
this.node.getChildByName("buff").getChildByName("by2").active = key == "by2"
|
||||
this.node.getChildByName("buff").getChildByName("by3").active = key == "by3"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user