This commit is contained in:
2025-06-09 23:30:35 +08:00
parent 9bace6aa99
commit 1f5a4a7fb7
6 changed files with 2082 additions and 5589 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 570 KiB

After

Width:  |  Height:  |  Size: 663 KiB

View File

@@ -1414,8 +1414,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.7, "x": 1,
"y": 0.7, "y": 1,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,
@@ -1442,8 +1442,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 126, "width": 88,
"height": 124 "height": 88
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -2981,8 +2981,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.7, "x": 1,
"y": 0.7, "y": 1,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,
@@ -3009,8 +3009,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 126, "width": 88,
"height": 124 "height": 88
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -4548,8 +4548,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.7, "x": 1,
"y": 0.7, "y": 1,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,
@@ -4576,8 +4576,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 126, "width": 88,
"height": 124 "height": 88
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",

View File

@@ -19,7 +19,7 @@ export enum EquipAttr {
//装备属性起效对象 //装备属性起效对象
export enum EquipAttrTarget { export enum EquipAttrTarget {
ALL = 0, // 所有 ALL = 0, // 所有
SELF = 1, // 自身 HERO = 1, // 自身
FRIEND = 2, // 伙伴 FRIEND = 2, // 伙伴
ENEMY = 3, // 敌人 ENEMY = 3, // 敌人
} }
@@ -43,7 +43,10 @@ export enum EquipQuality {
ORANGE = 5, ORANGE = 5,
RED = 6, RED = 6,
} }
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 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,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,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 interface EquipAttribute { export interface EquipAttribute {
type: EquipAttr; // 属性类型 type: EquipAttr; // 属性类型
@@ -63,7 +66,6 @@ export interface EquipData {
debuffs: number[]; // debuff列表 debuffs: number[]; // debuff列表
range?: number; // 攻击范围(可选) range?: number; // 攻击范围(可选)
} }
export const equip_list=[2001,2002]
export const EquipInfo: { [key: number]: EquipData } = { export const EquipInfo: { [key: number]: EquipData } = {
2001: { 2001: {
uuid: 2001, uuid: 2001,
@@ -71,8 +73,8 @@ export const EquipInfo: { [key: number]: EquipData } = {
type: EquipType.WEAPON, type: EquipType.WEAPON,
quality: EquipQuality.WHITE, quality: EquipQuality.WHITE,
attributes: [ attributes: [
{ type: EquipAttr.ATK, value: 10, target: EquipAttrTarget.SELF }, { type: EquipAttr.ATK, value: 10, target: EquipAttrTarget.HERO },
{ type: EquipAttr.ATK_SPEED, value: 0.1, target: EquipAttrTarget.SELF } { type: EquipAttr.ATK_SPEED, value: 0.1, target: EquipAttrTarget.HERO }
], ],
skills: [], skills: [],
buffs: [], buffs: [],
@@ -81,16 +83,45 @@ export const EquipInfo: { [key: number]: EquipData } = {
}, },
2002: { 2002: {
uuid: 2002, uuid: 2002,
name: "守护者铠甲", name: "新手剑",
type: EquipType.ARMOR, type: EquipType.WEAPON,
quality: EquipQuality.GREEN, quality: EquipQuality.WHITE,
attributes: [ attributes: [
{ type: EquipAttr.HP, value: 100, target: EquipAttrTarget.SELF }, { type: EquipAttr.ATK, value: 10, target: EquipAttrTarget.HERO },
{ type: EquipAttr.SKILL_DMG, value: 0.05, target: EquipAttrTarget.SELF } { type: EquipAttr.ATK_SPEED, value: 0.1, target: EquipAttrTarget.HERO }
], ],
skills: [], skills: [],
buffs: [], buffs: [],
debuffs: [], debuffs: [],
} range: 1
},
2003: {
uuid: 2003,
name: "新手剑",
type: EquipType.WEAPON,
quality: EquipQuality.WHITE,
attributes: [
{ type: EquipAttr.ATK, value: 10, target: EquipAttrTarget.HERO },
{ type: EquipAttr.ATK_SPEED, value: 0.1, target: EquipAttrTarget.HERO }
],
skills: [],
buffs: [],
debuffs: [],
range: 1
},
2004: {
uuid: 2004,
name: "新手剑",
type: EquipType.WEAPON,
quality: EquipQuality.WHITE,
attributes: [
{ type: EquipAttr.ATK, value: 10, target: EquipAttrTarget.HERO },
{ type: EquipAttr.ATK_SPEED, value: 0.1, target: EquipAttrTarget.HERO }
],
skills: [],
buffs: [],
debuffs: [],
range: 1
},
} }

View File

@@ -191,7 +191,7 @@ export class EquipsComp extends Component {
switch (target) { switch (target) {
case EquipAttrTarget.ALL: case EquipAttrTarget.ALL:
return 'hero'; // 默认作用于英雄 return 'hero'; // 默认作用于英雄
case EquipAttrTarget.SELF: case EquipAttrTarget.HERO:
return 'hero'; return 'hero';
case EquipAttrTarget.FRIEND: case EquipAttrTarget.FRIEND:
return 'friend'; return 'friend';