装备技能转变 触发+伙伴死亡 被攻击触发

This commit is contained in:
2025-06-18 10:58:18 +08:00
parent fdfa9cbd37
commit be4543b62e
9 changed files with 305 additions and 74 deletions

View File

@@ -252,7 +252,7 @@
"fileId": "0f1YvlzyZOLIAHiCyCBXRz" "fileId": "0f1YvlzyZOLIAHiCyCBXRz"
}, },
{ {
"__type__": "20503VOc7ZA84sbp8G72pxZ", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
@@ -263,29 +263,61 @@
"__prefab": { "__prefab": {
"__id__": 13 "__id__": 13
}, },
"tag": 0,
"_group": 4,
"_density": 1,
"_sensor": true,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 3.6,
"y": -10.2
},
"_size": {
"__type__": "cc.Size",
"width": 63.6,
"height": 106.7
},
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "38+qbhXMVHtoU9k7o0hvx8" "fileId": "abSos3/xZFOZSp08Izyl05"
}, },
{ {
"__type__": "6a7fejJxHlM5r/TS8IFF1Kq", "__type__": "cc.RigidBody2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": false, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"enabledContactListener": true,
"bullet": false,
"awakeOnLoad": true,
"_group": 1,
"_type": 1,
"_allowSleep": false,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_angularVelocity": 0,
"_fixedRotation": false,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "36K2fPnkJLPbBwJ5DxQ0ry" "fileId": "2apGMb5RtE2YHEPWvhVoTH"
}, },
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",

View File

@@ -35,10 +35,16 @@
}, },
{ {
"__id__": 14 "__id__": 14
},
{
"__id__": 16
},
{
"__id__": 18
} }
], ],
"_prefab": { "_prefab": {
"__id__": 16 "__id__": 20
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -314,6 +320,74 @@
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "29TlPeJcdIy4wZXKhtLbdr" "fileId": "29TlPeJcdIy4wZXKhtLbdr"
}, },
{
"__type__": "cc.RigidBody2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"enabledContactListener": true,
"bullet": false,
"awakeOnLoad": true,
"_group": 1,
"_type": 1,
"_allowSleep": false,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_angularVelocity": 0,
"_fixedRotation": false,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "58tC4fIN9CO56Y1QXCUmEk"
},
{
"__type__": "cc.BoxCollider2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"tag": 0,
"_group": 4,
"_density": 1,
"_sensor": true,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 4.1,
"y": -3.7
},
"_size": {
"__type__": "cc.Size",
"width": 62.6,
"height": 31.7
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "06iYFbB9lCdoNl1MeEo3h4"
},
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {

View File

@@ -38,10 +38,13 @@
}, },
{ {
"__id__": 16 "__id__": 16
},
{
"__id__": 18
} }
], ],
"_prefab": { "_prefab": {
"__id__": 18 "__id__": 20
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -284,40 +287,106 @@
"fileId": "f4FjKz0SlKzLQiRv9NKgJU" "fileId": "f4FjKz0SlKzLQiRv9NKgJU"
}, },
{ {
"__type__": "20503VOc7ZA84sbp8G72pxZ", "__type__": "f680dkagx9PmbfqtF463/Ua",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": false, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 15 "__id__": 15
}, },
"speed": 600,
"controlPointSide": 1,
"controlPointOffset": 0.5,
"controlPointRandomness": 0.3,
"autoRotate": true,
"showTrajectory": true,
"trajectoryColor": {
"__type__": "cc.Color",
"r": 0,
"g": 255,
"b": 0,
"a": 255
},
"trajectoryWidth": 3,
"easing": "linear",
"rotationSmoothness": 0.6,
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "71rQac811CkZmLJZ+3hWYp" "fileId": "ceJ7oJ7BtCa567d+94RoRt"
}, },
{ {
"__type__": "c92adevMwxBYYbFjVc25eV9", "__type__": "cc.BoxCollider2D",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"__editorExtras__": {}, "__editorExtras__": {},
"node": { "node": {
"__id__": 1 "__id__": 1
}, },
"_enabled": false, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 17 "__id__": 17
}, },
"tag": 0,
"_group": 4,
"_density": 1,
"_sensor": true,
"_friction": 0.2,
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 11.1,
"y": 1.3
},
"_size": {
"__type__": "cc.Size",
"width": 76.6,
"height": 21.7
},
"_id": "" "_id": ""
}, },
{ {
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "beqrCy1W1KT5dRKWJ1+thK" "fileId": "78Uk9gCslA763sdijuTa5h"
},
{
"__type__": "cc.RigidBody2D",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"enabledContactListener": true,
"bullet": false,
"awakeOnLoad": true,
"_group": 1,
"_type": 1,
"_allowSleep": false,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_angularVelocity": 0,
"_fixedRotation": false,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "9dkSU5svFBwZACdT8juge4"
}, },
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",

View File

@@ -25,10 +25,13 @@
}, },
{ {
"__id__": 4 "__id__": 4
},
{
"__id__": 6
} }
], ],
"_prefab": { "_prefab": {
"__id__": 6 "__id__": 8
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
@@ -132,6 +135,40 @@
"__type__": "cc.CompPrefabInfo", "__type__": "cc.CompPrefabInfo",
"fileId": "a32g1O2bxLI6D28EOYFjld" "fileId": "a32g1O2bxLI6D28EOYFjld"
}, },
{
"__type__": "f680dkagx9PmbfqtF463/Ua",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 7
},
"speed": 600,
"controlPointSide": 1,
"controlPointOffset": 0.5,
"controlPointRandomness": 0.3,
"autoRotate": true,
"showTrajectory": true,
"trajectoryColor": {
"__type__": "cc.Color",
"r": 0,
"g": 255,
"b": 0,
"a": 255
},
"trajectoryWidth": 3,
"easing": "linear",
"rotationSmoothness": 0.6,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c7oqZKuutF/aQd3exMADCG"
},
{ {
"__type__": "cc.PrefabInfo", "__type__": "cc.PrefabInfo",
"root": { "root": {
@@ -141,6 +178,7 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "733PKzwANLyJWD2ume4u5f", "fileId": "733PKzwANLyJWD2ume4u5f",
"instance": null,
"targetOverrides": null "targetOverrides": null
} }
] ]

View File

@@ -35,6 +35,8 @@ export enum EquipSpecialAttr {
ATK_ADD_GLOD=7, //金币增加 ATK_ADD_GLOD=7, //金币增加
ATK_ADD_MASTER_ATK=8, //主将攻击力增加 ATK_ADD_MASTER_ATK=8, //主将攻击力增加
ATK_ADD_MASTER_HP=9, //主将生命值增加 ATK_ADD_MASTER_HP=9, //主将生命值增加
DOUBLE_DEAD=10, //双倍死亡触发
DOUBLE_ATKED=11, //双倍受击触发
} }
export enum EquipQuality { export enum EquipQuality {
WHITE = 1, WHITE = 1,
@@ -47,7 +49,7 @@ export enum EquipQuality {
export const weapon_id=[2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025] export const weapon_id=[2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025]
export const armor_id=[2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122] export const armor_id=[2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122]
export const accessory_id=[2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2223,2224,2225,2226,2227,2228,2229,2230] export const accessory_id=[2201,2202,2203,2204,2205,2206,2207,2208,2209,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2223,2224,2225,2226,2227,2228,2229,2230]
export const equip_list=[2001,2002,2003,2004,2005] export const equip_list=[2001,2002,2003,]
// 装备属性加成接口 // 装备属性加成接口
export interface EquipAttribute { export interface EquipAttribute {
type: BuffAttr; // 属性类型 type: BuffAttr; // 属性类型
@@ -78,6 +80,9 @@ export const EquipInfo: { [key: number]: EquipData } = {
2001: {uuid: 2001, name: "新手剑", type: EquipType.WEAPON,info:"攻击力增加80%", 2001: {uuid: 2001, name: "新手剑", type: EquipType.WEAPON,info:"攻击力增加80%",
special_attr: [ special_attr: [
{special_attr:EquipSpecialAttr.ATK_ADD_FRIEND_ATK,special_attr_value:3}, {special_attr:EquipSpecialAttr.ATK_ADD_FRIEND_ATK,special_attr_value:3},
{special_attr:EquipSpecialAttr.ICE,special_attr_value:1},
{special_attr:EquipSpecialAttr.DOUBLE_DEAD,special_attr_value:1},
{special_attr:EquipSpecialAttr.DOUBLE_ATKED,special_attr_value:1},
{special_attr:EquipSpecialAttr.ATK_ADD_FRIEND_HP,special_attr_value:30}, {special_attr:EquipSpecialAttr.ATK_ADD_FRIEND_HP,special_attr_value:30},
{special_attr:EquipSpecialAttr.ATK_ADD_GLOD,special_attr_value:3}, {special_attr:EquipSpecialAttr.ATK_ADD_GLOD,special_attr_value:3},
{special_attr:EquipSpecialAttr.ATK_ADD_MASTER_ATK,special_attr_value:3}, {special_attr:EquipSpecialAttr.ATK_ADD_MASTER_ATK,special_attr_value:3},
@@ -92,6 +97,9 @@ export const EquipInfo: { [key: number]: EquipData } = {
}, },
2002: {uuid: 2002,name: "新手剑2",type: EquipType.WEAPON,info:"攻击速度增加30%", 2002: {uuid: 2002,name: "新手剑2",type: EquipType.WEAPON,info:"攻击速度增加30%",
special_attr:[ special_attr:[
{special_attr:EquipSpecialAttr.FIRE,special_attr_value:1},
{special_attr:EquipSpecialAttr.DOUBLE_DEAD,special_attr_value:1},
{special_attr:EquipSpecialAttr.DOUBLE_ATKED,special_attr_value:1},
{special_attr:EquipSpecialAttr.ATK_ADD_FRIEND_ATK,special_attr_value:3}, {special_attr:EquipSpecialAttr.ATK_ADD_FRIEND_ATK,special_attr_value:3},
{special_attr:EquipSpecialAttr.ATK_ADD_FRIEND_HP,special_attr_value:30}, {special_attr:EquipSpecialAttr.ATK_ADD_FRIEND_HP,special_attr_value:30},
{special_attr:EquipSpecialAttr.ATK_ADD_GLOD,special_attr_value:3}, {special_attr:EquipSpecialAttr.ATK_ADD_GLOD,special_attr_value:3},
@@ -107,6 +115,9 @@ export const EquipInfo: { [key: number]: EquipData } = {
}, },
2003: {uuid: 2003,name: "新手剑3",type: EquipType.WEAPON,info:"攻击次数增加1次", 2003: {uuid: 2003,name: "新手剑3",type: EquipType.WEAPON,info:"攻击次数增加1次",
special_attr:[ special_attr:[
{special_attr:EquipSpecialAttr.WIND,special_attr_value:1},
{special_attr:EquipSpecialAttr.DOUBLE_DEAD,special_attr_value:1},
{special_attr:EquipSpecialAttr.DOUBLE_ATKED,special_attr_value:1},
{special_attr:EquipSpecialAttr.ATK_ADD_FRIEND_ATK,special_attr_value:3}, {special_attr:EquipSpecialAttr.ATK_ADD_FRIEND_ATK,special_attr_value:3},
{special_attr:EquipSpecialAttr.ATK_ADD_FRIEND_HP,special_attr_value:30}, {special_attr:EquipSpecialAttr.ATK_ADD_FRIEND_HP,special_attr_value:30},
{special_attr:EquipSpecialAttr.ATK_ADD_GLOD,special_attr_value:3}, {special_attr:EquipSpecialAttr.ATK_ADD_GLOD,special_attr_value:3},
@@ -120,36 +131,6 @@ export const EquipInfo: { [key: number]: EquipData } = {
{ type: DebuffAttr.DECD, value: 50, target: EquipAttrTarget.ENEMY }, { type: DebuffAttr.DECD, value: 50, target: EquipAttrTarget.ENEMY },
] ]
}, },
2004: {uuid: 2004,name: "防具1",type: EquipType.ARMOR,info:"生命值增加100%",
special_attr:[
{special_attr:EquipSpecialAttr.ATK_ADD_FRIEND_ATK,special_attr_value:3},
{special_attr:EquipSpecialAttr.ATK_ADD_FRIEND_HP,special_attr_value:30},
{special_attr:EquipSpecialAttr.ATK_ADD_GLOD,special_attr_value:3},
{special_attr:EquipSpecialAttr.ATK_ADD_MASTER_ATK,special_attr_value:3},
{special_attr:EquipSpecialAttr.ATK_ADD_MASTER_HP,special_attr_value:3},
],
buff: [
{ type: BuffAttr.HP, value: 100, target: EquipAttrTarget.HERO },
],
debuff: [
{ type: DebuffAttr.DECD, value: 50, target: EquipAttrTarget.ENEMY },
]
},
2005: {uuid: 2005,name: "防具2",type: EquipType.ARMOR,info:"免伤增加50%",
special_attr:[
{special_attr:EquipSpecialAttr.ATK_ADD_FRIEND_ATK,special_attr_value:3},
{special_attr:EquipSpecialAttr.ATK_ADD_FRIEND_HP,special_attr_value:30},
{special_attr:EquipSpecialAttr.ATK_ADD_GLOD,special_attr_value:3},
{special_attr:EquipSpecialAttr.ATK_ADD_MASTER_ATK,special_attr_value:3},
{special_attr:EquipSpecialAttr.ATK_ADD_MASTER_HP,special_attr_value:3},
],
buff: [
{ type: BuffAttr.DEF, value: 50, target: EquipAttrTarget.HERO },
],
debuff: [
{ type: DebuffAttr.DECD, value: 50, target: EquipAttrTarget.ENEMY },
]
},
} }

View File

@@ -143,11 +143,11 @@ export const SkillSet = {
6009:{uuid:6009,name:"飞刀打击",sp_name:"mon_xd",path:"6009",TargetType:TargetType.Frontline,TargetGroup:3,act:"atk",CdType:1,AnimType:AnimType.parabolic,endType:3,fname:"max",flash:false,with:50,debuff:0,depb:0,debtime:0,derate:0,in:0.8,count:1,def:0,apup:0,ap:100,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"向最前方敌人扔出飞刀,造成100%攻击的伤害"}, 6009:{uuid:6009,name:"飞刀打击",sp_name:"mon_xd",path:"6009",TargetType:TargetType.Frontline,TargetGroup:3,act:"atk",CdType:1,AnimType:AnimType.parabolic,endType:3,fname:"max",flash:false,with:50,debuff:0,depb:0,debtime:0,derate:0,in:0.8,count:1,def:0,apup:0,ap:100,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"向最前方敌人扔出飞刀,造成100%攻击的伤害"},
6010:{uuid:6010,name:"石斧打击",sp_name:"mon_sf",path:"6010",TargetType:TargetType.Frontline,TargetGroup:3,act:"atk",CdType:1,AnimType:AnimType.parabolic,endType:3,fname:"max",flash:false,with:50,debuff:0,depb:0,debtime:0,derate:0,in:0.8,count:1,def:0,apup:0,ap:100,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"向最前方敌人扔出石斧,造成100%攻击的伤害"}, 6010:{uuid:6010,name:"石斧打击",sp_name:"mon_sf",path:"6010",TargetType:TargetType.Frontline,TargetGroup:3,act:"atk",CdType:1,AnimType:AnimType.parabolic,endType:3,fname:"max",flash:false,with:50,debuff:0,depb:0,debtime:0,derate:0,in:0.8,count:1,def:0,apup:0,ap:100,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"向最前方敌人扔出石斧,造成100%攻击的伤害"},
6011:{uuid:6011,name:"烈火呼吸",sp_name:"firequan",path:"6011",TargetType:TargetType.Frontline,TargetGroup:3,act:"max",CdType:2,AnimType:AnimType.parabolic,endType:1,fname:"max",flash:false,with:50,debuff:0,depb:0,debtime:0,derate:0,in:3,count:1,def:0,apup:0,ap:100,mhp:0,hp:0,cd:5,buff_cd:0.5,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"召唤烈焰攻击前方敌人,造成200%攻击的伤害,烈焰维持3秒"}, 6011:{uuid:6011,name:"烈火呼吸",sp_name:"firequan",path:"6011",TargetType:TargetType.Frontline,TargetGroup:3,act:"max",CdType:2,AnimType:AnimType.parabolic,endType:1,fname:"max",flash:false,with:50,debuff:0,depb:0,debtime:0,derate:0,in:3,count:1,def:0,apup:0,ap:100,mhp:0,hp:0,cd:5,buff_cd:0.5,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"召唤烈焰攻击前方敌人,造成200%攻击的伤害,烈焰维持3秒"},
6012:{uuid:6012,name:"大火球" ,sp_name:"fire",path:"6012",TargetType:TargetType.Frontline,TargetGroup:3,act:"max",CdType:2,AnimType:AnimType.parabolic,endType:1,fname:"max",flash:false,with:50,debuff:2,depb:20,debtime:2,derate:100,in:1,count:1,def:0,apup:0,ap:300,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"召唤大火球攻击前方所有敌人,造成300%攻击的伤害,有一定几率施加灼烧"}, 6012:{uuid:6012,name:"大火球" ,sp_name:"fire",path:"6012",TargetType:TargetType.Frontline,TargetGroup:3,act:"max",CdType:2,AnimType:AnimType.linear,endType:1,fname:"max",flash:false,with:50,debuff:2,depb:20,debtime:2,derate:100,in:1,count:1,def:0,apup:0,ap:300,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"召唤大火球攻击前方所有敌人,造成300%攻击的伤害,有一定几率施加灼烧"},
6013:{uuid:6013,name:"火墙", sp_name:"firewall",path:"6013",TargetType:TargetType.Frontline,TargetGroup:3,act:"max",CdType:2,AnimType:4,endType:1,fname:"max",flash:false,with:50,debuff:0,depb:0,debtime:0,derate:0,in:10,count:1,def:0,apup:0,ap:50,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"在最前方敌人位置,召唤一堵火墙,持续10秒,每秒造成50%攻击伤害"}, 6013:{uuid:6013,name:"火墙", sp_name:"firewall",path:"6013",TargetType:TargetType.Frontline,TargetGroup:3,act:"max",CdType:2,AnimType:4,endType:1,fname:"max",flash:false,with:50,debuff:0,depb:0,debtime:0,derate:0,in:10,count:1,def:0,apup:0,ap:50,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"在最前方敌人位置,召唤一堵火墙,持续10秒,每秒造成50%攻击伤害"},
6014:{uuid:6014,name:"寒冰箭", sp_name:"arrow_blue",path:"6014",TargetType:TargetType.Frontline,TargetGroup:3,act:"max",CdType:2,AnimType:AnimType.parabolic,endType:1,fname:"max",flash:false,with:50,debuff:1,depb:20,debtime:2,derate:0,in:1,count:1,def:0,apup:0,ap:200,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"召唤大火球攻击前方所有敌人,造成200%攻击的伤害,20%几率冰冻敌人"}, 6014:{uuid:6014,name:"寒冰箭", sp_name:"arrow_blue",path:"6014",TargetType:TargetType.Frontline,TargetGroup:3,act:"max",CdType:2,AnimType:AnimType.linear,endType:1,fname:"max",flash:false,with:50,debuff:1,depb:20,debtime:2,derate:0,in:1,count:1,def:0,apup:0,ap:200,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"召唤大火球攻击前方所有敌人,造成200%攻击的伤害,20%几率冰冻敌人"},
6015:{uuid:6015,name:"烈焰射击",sp_name:"arrow_yellow",path:"6015",TargetType:TargetType.Frontline,TargetGroup:3,act:"max",CdType:2,AnimType:AnimType.parabolic,endType:1,fname:"max",flash:false,with:50,debuff:3,depb:20,debtime:2,derate:0,in:1,count:1,def:0,apup:0,ap:200,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"召唤大火球攻击前方所有敌人,造成200%攻击的伤害,20%几率眩晕敌人"}, 6015:{uuid:6015,name:"烈焰射击",sp_name:"arrow_yellow",path:"6015",TargetType:TargetType.Frontline,TargetGroup:3,act:"max",CdType:2,AnimType:AnimType.parabolic,endType:1,fname:"max",flash:false,with:50,debuff:3,depb:20,debtime:2,derate:0,in:1,count:1,def:0,apup:0,ap:200,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"召唤大火球攻击前方所有敌人,造成200%攻击的伤害,20%几率眩晕敌人"},
6016:{uuid:6016,name:"龙卷风", sp_name:"bwind",path:"6016",TargetType:TargetType.Frontline,TargetGroup:3,act:"max",CdType:2,AnimType:AnimType.parabolic,endType:1,fname:"max",flash:false,with:50,debuff:8,depb:50,debtime:1,derate:0,in:1,count:1,def:0,apup:0,ap:200,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"召唤大火球攻击前方所有敌人,造成200%攻击的伤害,50%几率击退敌人"}, 6016:{uuid:6016,name:"龙卷风", sp_name:"bwind",path:"6016",TargetType:TargetType.Frontline,TargetGroup:3,act:"max",CdType:2,AnimType:AnimType.linear,endType:1,fname:"max",flash:false,with:50,debuff:8,depb:50,debtime:1,derate:0,in:1,count:1,def:0,apup:0,ap:200,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"召唤大火球攻击前方所有敌人,造成200%攻击的伤害,50%几率击退敌人"},
6017:{uuid:6017,name:"生命之泉",sp_name:"heath",path:"6017",TargetType:TargetType.Frontline,TargetGroup:2,act:"max",CdType:2,AnimType:AnimType.parabolic,endType:1,fname:"max_blue",flash:true,with:50,debuff:0,depb:0,debtime:0,derate:0,in:5,count:1,def:0,apup:0,ap:100,mhp:0,hp:3,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"5秒持续为全体友方恢复施法者最大生命值15%的生命"}, 6017:{uuid:6017,name:"生命之泉",sp_name:"heath",path:"6017",TargetType:TargetType.Frontline,TargetGroup:2,act:"max",CdType:2,AnimType:AnimType.parabolic,endType:1,fname:"max_blue",flash:true,with:50,debuff:0,depb:0,debtime:0,derate:0,in:5,count:1,def:0,apup:0,ap:100,mhp:0,hp:3,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"5秒持续为全体友方恢复施法者最大生命值15%的生命"},
6018:{uuid:6018,name:"神圣护盾",sp_name:"shield",path:"6018",TargetType:TargetType.Frontline,TargetGroup:0,act:"max",CdType:2,AnimType:AnimType.parabolic,endType:1,fname:"max",flash:false,with:50,debuff:0,depb:0,debtime:0,derate:0,in:0.8,count:1,def:0,apup:0,ap:100,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:30,speed:720,sonsk:0,hero:0,info:"召唤圣盾保护自己,可以抵御3次攻击"}, 6018:{uuid:6018,name:"神圣护盾",sp_name:"shield",path:"6018",TargetType:TargetType.Frontline,TargetGroup:0,act:"max",CdType:2,AnimType:AnimType.parabolic,endType:1,fname:"max",flash:false,with:50,debuff:0,depb:0,debtime:0,derate:0,in:0.8,count:1,def:0,apup:0,ap:100,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:30,speed:720,sonsk:0,hero:0,info:"召唤圣盾保护自己,可以抵御3次攻击"},
6019:{uuid:6019,name:"战争咆哮",sp_name:"apup",path:"6019",TargetType:TargetType.Frontline,TargetGroup:2,act:"max",CdType:2,AnimType:AnimType.parabolic,endType:1,fname:"max_red",flash:true,with:50,debuff:0,depb:0,debtime:0,derate:0,in:1,count:1,def:0,apup:20,ap:100,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"为全体友方增加施法者攻击力20%的攻击"}, 6019:{uuid:6019,name:"战争咆哮",sp_name:"apup",path:"6019",TargetType:TargetType.Frontline,TargetGroup:2,act:"max",CdType:2,AnimType:AnimType.parabolic,endType:1,fname:"max_red",flash:true,with:50,debuff:0,depb:0,debtime:0,derate:0,in:1,count:1,def:0,apup:20,ap:100,mhp:0,hp:0,cd:5,buff_cd:1,hited:0.3,shield:0,speed:720,sonsk:0,hero:0,info:"为全体友方增加施法者攻击力20%的攻击"},

View File

@@ -79,6 +79,8 @@ export class HeroViewComp extends CCComp {
speek_time:number = 0; speek_time:number = 0;
is_stop_temp:boolean = false;i is_stop_temp:boolean = false;i
Friend_alive_cd:Timer=new Timer(10) Friend_alive_cd:Timer=new Timer(10)
double_dead:boolean=false
double_atked:boolean=false
private damageQueue: Array<{ private damageQueue: Array<{
damage: number, damage: number,
isCrit: boolean, isCrit: boolean,
@@ -142,15 +144,18 @@ export class HeroViewComp extends CCComp {
} }
change_atk(e:GameEvent,data:any){ change_atk(e:GameEvent,data:any){
if(!this.is_master) return
if(data.ice){ if(data.ice){
this.atk_skill=6001 this.atk_skill=6014
}else if(data.fire){ }else if(data.fire){
this.atk_skill=6002 this.atk_skill=6012
}else if(data.wind){ }else if(data.wind){
this.atk_skill=6003 this.atk_skill=6016
}else{ }else{
this.atk_skill=6001 this.atk_skill=6001
} }
console.log("[HeroViewComp]:change_atk",SkillSet[this.atk_skill].name)
} }
get isActive() { get isActive() {
@@ -258,20 +263,8 @@ export class HeroViewComp extends CCComp {
if(this.atk_count< FightSet.ATK_ADD_FRIEND_COUNT) return if(this.atk_count< FightSet.ATK_ADD_FRIEND_COUNT) return
if(this.FIGHTCON.atk_add_glod >0) smc.vmdata.mission_data.gold+=this.FIGHTCON.atk_add_glod if(this.FIGHTCON.atk_add_glod >0) smc.vmdata.mission_data.gold+=this.FIGHTCON.atk_add_glod
this.do_friend_atk_add()
this.do_master_atk_add()
this.atk_count=0
}
friend_count_atk_count(){ //伙伴攻击次数 有装备加成,需要单独处理
if(this.is_master) return
if(this.atk_add_count==0) return
this.atk_count+=1
if(this.atk_count < this.atk_add_count) return
}
do_friend_atk_add(){
let friends=ecs.query(ecs.allOf(FriendModelComp)) let friends=ecs.query(ecs.allOf(FriendModelComp))
friends.forEach(friend=>{ friends.forEach(friend=>{
let friend_view=friend.get(HeroViewComp) let friend_view=friend.get(HeroViewComp)
if(this.FIGHTCON.atk_add_friend_atk>0) { if(this.FIGHTCON.atk_add_friend_atk>0) {
@@ -281,8 +274,7 @@ export class HeroViewComp extends CCComp {
friend_view.add_hp_max(this.FIGHTCON.atk_add_friend_hp) friend_view.add_hp_max(this.FIGHTCON.atk_add_friend_hp)
} }
}) })
}
do_master_atk_add(){
let master=ecs.query(ecs.allOf(MasterModelComp)) let master=ecs.query(ecs.allOf(MasterModelComp))
master.forEach(master=>{ master.forEach(master=>{
let master_view=master.get(HeroViewComp) let master_view=master.get(HeroViewComp)
@@ -293,7 +285,18 @@ export class HeroViewComp extends CCComp {
master_view.add_hp_max(this.FIGHTCON.atk_add_master_hp) master_view.add_hp_max(this.FIGHTCON.atk_add_master_hp)
} }
}) })
this.atk_count=0
} }
friend_count_atk_count(){ //伙伴攻击次数 有装备加成,需要单独处理
if(this.is_master) return
if(this.atk_add_count==0) return
this.atk_count+=1
if(this.atk_count < this.atk_add_count) return
}
do_change(){ do_change(){
this.BUFFCOMP.update_info_ap() this.BUFFCOMP.update_info_ap()
this.BUFFCOMP.update_info_hp() this.BUFFCOMP.update_info_hp()
@@ -308,6 +311,7 @@ export class HeroViewComp extends CCComp {
do_dead(){ do_dead(){
this.do_dead_trigger()
this.Friend_alive_cd=new Timer(this.FIGHTCON.friend_alive_cd) this.Friend_alive_cd=new Timer(this.FIGHTCON.friend_alive_cd)
console.log("[HeroViewComp]:角色死亡",this.hero_uuid) console.log("[HeroViewComp]:角色死亡",this.hero_uuid)
if(this.is_master){ if(this.is_master){
@@ -315,7 +319,9 @@ export class HeroViewComp extends CCComp {
oops.message.dispatchEvent(GameEvent.FightEnd,{victory:false}) oops.message.dispatchEvent(GameEvent.FightEnd,{victory:false})
} }
} }
do_atked(remainingDamage:number){ do_atked(remainingDamage:number){
this.do_atked_trigger()
if (this.shield > 0) { if (this.shield > 0) {
this.shield -= 1 this.shield -= 1
this.BUFFCOMP.tooltip(5,"*吸收*"); this.BUFFCOMP.tooltip(5,"*吸收*");
@@ -334,7 +340,6 @@ export class HeroViewComp extends CCComp {
this.do_dead() this.do_dead()
console.log("[HeroViewComp]:dead,fac => "+(this.fac==FacSet.HERO?"hero":"monster")) console.log("[HeroViewComp]:dead,fac => "+(this.fac==FacSet.HERO?"hero":"monster"))
if(this.ent == null) return; if(this.ent == null) return;
if(this.fac ==FacSet.HERO){ if(this.fac ==FacSet.HERO){
this.to_grave() this.to_grave()
}else{ }else{
@@ -345,11 +350,32 @@ export class HeroViewComp extends CCComp {
this.showDamage(remainingDamage, true); this.showDamage(remainingDamage, true);
} }
} }
dead(){ // dead(){
this.BUFFCOMP.dead() // this.BUFFCOMP.dead()
this.to_drop() // this.to_drop()
// }
do_dead_trigger(){
if(this.is_dead||this.fac==FacSet.MON||this.is_master) return
let count = 1
if(this.double_dead) {
console.log("[HeroViewComp]:double_dead")
count =2
}
for(let i=0;i<count;i++){
console.log("[HeroViewComp]:dead"+i+"次")
}
} }
do_atked_trigger(){
if(this.is_dead||this.fac==FacSet.MON||this.is_master) return
let count = 1
if(this.double_atked) {
console.log("[HeroViewComp]:double_atked")
count =2
}
}
to_grave(){ to_grave(){
tween(this.node).to(0.5, { position:v3(-900,this.node.position.y+300,0)},{ tween(this.node).to(0.5, { position:v3(-900,this.node.position.y+300,0)},{
onComplete: (target?: object) => { onComplete: (target?: object) => {

View File

@@ -69,7 +69,18 @@ export class SkillCom extends CCComp {
bm.moveTo(this.targetPos) bm.moveTo(this.targetPos)
} }
if(SkillSet[this.s_uuid].AnimType==AnimType.linear){
let tx =400
if(this.group==BoxSet.MONSTER){
tx=-400
this.node.scale=v3(this.node.scale.x*-1,1,1)
}
tween(this.node).to(1, { position:v3(tx,this.node.position.y,0)},{
onComplete: (target?: object) => {
this.node.setPosition(tx,this.node.position.y-300,0)
}
}).start()
}
// let dir_x = this.targetPos.x > this.node.position.x ? 1 : -1 // let dir_x = this.targetPos.x > this.node.position.x ? 1 : -1
// this.node.scale = v3(dir_x,1,1) // this.node.scale = v3(dir_x,1,1)
// 根据目标位置设置节点朝向 // 根据目标位置设置节点朝向

View File

@@ -16,6 +16,6 @@
- [x] 普通攻击改为寒冰攻击带冰冻(被动) - [x] 普通攻击改为寒冰攻击带冰冻(被动)
- [x] 普通攻击改为火焰攻击带易伤(被动) - [x] 普通攻击改为火焰攻击带易伤(被动)
- [x] 伙伴复活时间减少%(被动) - [x] 伙伴复活时间减少%(被动)
- [ ] 每攻击n次 加伙伴hp - [x] 每攻击n次 加伙伴hp
- [ ] 每攻击n次 加伙伴ap - [x] 每攻击n次 加伙伴ap
- [ ] 每攻击n次后 增加1金币 - [x] 每攻击n次后 增加1金币