buff 路径需要修复
This commit is contained in:
@@ -170,13 +170,13 @@
|
|||||||
"_dstBlendFactor": 4,
|
"_dstBlendFactor": 4,
|
||||||
"_color": {
|
"_color": {
|
||||||
"__type__": "cc.Color",
|
"__type__": "cc.Color",
|
||||||
"r": 255,
|
"r": 51,
|
||||||
"g": 255,
|
"g": 255,
|
||||||
"b": 255,
|
"b": 0,
|
||||||
"a": 255
|
"a": 255
|
||||||
},
|
},
|
||||||
"_spriteFrame": {
|
"_spriteFrame": {
|
||||||
"__uuid__": "7b0e7263-3b25-4fec-8935-abdd67c4b86d@fa39c",
|
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@ea9e2",
|
||||||
"__expectedType__": "cc.SpriteFrame"
|
"__expectedType__": "cc.SpriteFrame"
|
||||||
},
|
},
|
||||||
"_type": 0,
|
"_type": 0,
|
||||||
|
|||||||
@@ -67,8 +67,8 @@
|
|||||||
"__type__": "cc.RealCurve",
|
"__type__": "cc.RealCurve",
|
||||||
"_times": [
|
"_times": [
|
||||||
0,
|
0,
|
||||||
0.20833333333333334,
|
0.2083333283662796,
|
||||||
0.4166666666666667,
|
0.4166666567325592,
|
||||||
0.625
|
0.625
|
||||||
],
|
],
|
||||||
"_values": [
|
"_values": [
|
||||||
@@ -142,8 +142,8 @@
|
|||||||
"__type__": "cc.RealCurve",
|
"__type__": "cc.RealCurve",
|
||||||
"_times": [
|
"_times": [
|
||||||
0,
|
0,
|
||||||
0.20833333333333334,
|
0.2083333283662796,
|
||||||
0.4166666666666667,
|
0.4166666567325592,
|
||||||
0.625
|
0.625
|
||||||
],
|
],
|
||||||
"_values": [
|
"_values": [
|
||||||
@@ -217,8 +217,8 @@
|
|||||||
"__type__": "cc.RealCurve",
|
"__type__": "cc.RealCurve",
|
||||||
"_times": [
|
"_times": [
|
||||||
0,
|
0,
|
||||||
0.20833333333333334,
|
0.2083333283662796,
|
||||||
0.4166666666666667,
|
0.4166666567325592,
|
||||||
0.625
|
0.625
|
||||||
],
|
],
|
||||||
"_values": [
|
"_values": [
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export const SkillSet={
|
|||||||
in:1,count:1,apup:0,ap:2,hp:0,cd:1,shield:0,speed:300,},
|
in:1,count:1,apup:0,ap:2,hp:0,cd:1,shield:0,speed:300,},
|
||||||
|
|
||||||
6017:{uuid: 6017,path: "6017",type: 91,tg:1,debuff:0,depb:50,debtime:2,derate:1,name: "治愈术",sp_name:"heath",info:"释放一个寒冰箭攻击敌人",
|
6017:{uuid: 6017,path: "6017",type: 91,tg:1,debuff:0,depb:50,debtime:2,derate:1,name: "治愈术",sp_name:"heath",info:"释放一个寒冰箭攻击敌人",
|
||||||
in:0.5,count:1,apup:0,ap:1,hp:3,shield:0,speed:450, },
|
in:1,count:1,apup:0,ap:1,hp:3,shield:0,speed:450, },
|
||||||
|
|
||||||
6018:{uuid: 6018,path: "6018",type: 91,tg:0,debuff:0,depb:50,debtime:2,derate:1,name: "魔法盾",sp_name:"shield",info:"释放一个寒冰箭攻击敌人",
|
6018:{uuid: 6018,path: "6018",type: 91,tg:0,debuff:0,depb:50,debtime:2,derate:1,name: "魔法盾",sp_name:"shield",info:"释放一个寒冰箭攻击敌人",
|
||||||
in:0.8,count:1,apup:0,ap:1,hp:0,cd:1,shield:1,speed:450, },
|
in:0.8,count:1,apup:0,ap:1,hp:0,cd:1,shield:1,speed:450, },
|
||||||
|
|||||||
@@ -567,6 +567,8 @@ export class HeroViewComp extends CCComp {
|
|||||||
console.log("to_add_buff:"+hero.hero_name+" "+sk);
|
console.log("to_add_buff:"+hero.hero_name+" "+sk);
|
||||||
let is_crit=this.check_crit()
|
let is_crit=this.check_crit()
|
||||||
skill.load(pos,this.box_group,this.node,sk,this.ap_max,t_pos,is_crit,this.crit_add);
|
skill.load(pos,this.box_group,this.node,sk,this.ap_max,t_pos,is_crit,this.crit_add);
|
||||||
|
console.log(this.scale+this.hero_name+"使用buff:"+sk+" t_pos:"+t_pos+" box:"+this.box_group,);
|
||||||
|
|
||||||
if(SkillSet[sk].hp > 0){ //buff加血
|
if(SkillSet[sk].hp > 0){ //buff加血
|
||||||
let increase_hp=Math.floor(SkillSet[sk].hp*this.ap_max)
|
let increase_hp=Math.floor(SkillSet[sk].hp*this.ap_max)
|
||||||
hero.add_hp(increase_hp)
|
hero.add_hp(increase_hp)
|
||||||
|
|||||||
Reference in New Issue
Block a user