From 31eedceeb3df50e8c5855761dd930d9dff22858d Mon Sep 17 00:00:00 2001 From: panw Date: Thu, 16 Oct 2025 11:14:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=80=E8=83=BD=E8=AE=BE=E7=BD=AE=E6=B8=85?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/game/skill/atk/atk_fires.prefab | 8 +- assets/resources/game/skill/atk/atk_s2.prefab | 343 ++++++ .../game/skill/atk/atk_s2.prefab.meta | 13 + assets/resources/game/skill/atk/atk_s3.prefab | 343 ++++++ .../game/skill/atk/atk_s3.prefab.meta | 13 + assets/resources/gui/role_controller.prefab | 12 +- assets/script/game/common/config/CardSet.ts | 172 --- .../script/game/common/config/CardSet.ts.meta | 9 - assets/script/game/common/config/Equips.ts | 1017 ----------------- .../script/game/common/config/Equips.ts.meta | 9 - assets/script/game/common/config/Goods.ts | 49 - .../script/game/common/config/Goods.ts.meta | 9 - assets/script/game/common/config/LevelUp.ts | 218 ---- .../script/game/common/config/LevelUp.ts.meta | 9 - .../script/game/common/config/MissionEvent.ts | 11 - .../game/common/config/MissionEvent.ts.meta | 9 - assets/script/game/common/config/RewardSet.ts | 304 ----- .../game/common/config/RewardSet.ts.meta | 9 - assets/script/game/common/config/SkillSet.ts | 162 +-- assets/script/game/hero/HeroConComp.ts | 4 - assets/script/game/hero/HeroViewComp.ts | 4 - assets/script/game/hero/SkillConComp.ts | 17 +- assets/script/game/map/GoodsComp.ts | 168 --- assets/script/game/map/GoodsComp.ts.meta | 9 - assets/script/game/map/HeroPageComp.ts | 48 - assets/script/game/map/HeroPageComp.ts.meta | 9 - assets/script/game/map/ItemComp.ts | 222 ---- assets/script/game/map/ItemComp.ts.meta | 9 - assets/script/game/map/LuckCardComp.ts | 50 - assets/script/game/map/LuckCardComp.ts.meta | 9 - assets/script/game/map/MSkillComp.ts | 131 --- assets/script/game/map/MSkillComp.ts.meta | 9 - assets/script/game/map/ShopPageComp.ts | 40 - assets/script/game/map/ShopPageComp.ts.meta | 9 - assets/script/game/skill/AtkConCom.ts | 10 +- assets/script/game/skill/SkillViewCom.ts | 26 +- assets/script/game/skills/BezCom.ts | 50 - assets/script/game/skills/BezCom.ts.meta | 9 - settings/v2/packages/information.json | 12 +- 39 files changed, 812 insertions(+), 2752 deletions(-) create mode 100644 assets/resources/game/skill/atk/atk_s2.prefab create mode 100644 assets/resources/game/skill/atk/atk_s2.prefab.meta create mode 100644 assets/resources/game/skill/atk/atk_s3.prefab create mode 100644 assets/resources/game/skill/atk/atk_s3.prefab.meta delete mode 100644 assets/script/game/common/config/CardSet.ts delete mode 100644 assets/script/game/common/config/CardSet.ts.meta delete mode 100644 assets/script/game/common/config/Equips.ts delete mode 100644 assets/script/game/common/config/Equips.ts.meta delete mode 100644 assets/script/game/common/config/Goods.ts delete mode 100644 assets/script/game/common/config/Goods.ts.meta delete mode 100644 assets/script/game/common/config/LevelUp.ts delete mode 100644 assets/script/game/common/config/LevelUp.ts.meta delete mode 100644 assets/script/game/common/config/MissionEvent.ts delete mode 100644 assets/script/game/common/config/MissionEvent.ts.meta delete mode 100644 assets/script/game/common/config/RewardSet.ts delete mode 100644 assets/script/game/common/config/RewardSet.ts.meta delete mode 100644 assets/script/game/map/GoodsComp.ts delete mode 100644 assets/script/game/map/GoodsComp.ts.meta delete mode 100644 assets/script/game/map/HeroPageComp.ts delete mode 100644 assets/script/game/map/HeroPageComp.ts.meta delete mode 100644 assets/script/game/map/ItemComp.ts delete mode 100644 assets/script/game/map/ItemComp.ts.meta delete mode 100644 assets/script/game/map/LuckCardComp.ts delete mode 100644 assets/script/game/map/LuckCardComp.ts.meta delete mode 100644 assets/script/game/map/MSkillComp.ts delete mode 100644 assets/script/game/map/MSkillComp.ts.meta delete mode 100644 assets/script/game/map/ShopPageComp.ts delete mode 100644 assets/script/game/map/ShopPageComp.ts.meta delete mode 100644 assets/script/game/skills/BezCom.ts delete mode 100644 assets/script/game/skills/BezCom.ts.meta diff --git a/assets/resources/game/skill/atk/atk_fires.prefab b/assets/resources/game/skill/atk/atk_fires.prefab index 8bfa4560..f78a5114 100644 --- a/assets/resources/game/skill/atk/atk_fires.prefab +++ b/assets/resources/game/skill/atk/atk_fires.prefab @@ -250,7 +250,7 @@ "propertyPath": [ "_active" ], - "value": false + "value": true }, { "__type__": "CCPropertyOverrideInfo", @@ -311,10 +311,10 @@ "__uuid__": "26ff5f8c-e160-4977-bf1b-0b6153052bef", "__expectedType__": "cc.Prefab" }, - "runType": 0, - "hasReady": false, + "hasReady": true, "ReadyTime": 0.1, - "ready_y": 0, + "runType": 0, + "ready_y": 200, "atk_x": 10, "atk_y": 40, "_id": "" diff --git a/assets/resources/game/skill/atk/atk_s2.prefab b/assets/resources/game/skill/atk/atk_s2.prefab new file mode 100644 index 00000000..886fbd47 --- /dev/null +++ b/assets/resources/game/skill/atk/atk_s2.prefab @@ -0,0 +1,343 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "atk_s2", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "atk_s2", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + } + ], + "_active": true, + "_components": [ + { + "__id__": 16 + }, + { + "__id__": 18 + } + ], + "_prefab": { + "__id__": 20 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_prefab": { + "__id__": 3 + }, + "__editorExtras__": {} + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 2 + }, + "asset": { + "__uuid__": "43a67d73-b426-4f20-9a1f-1aaae1c82bd0", + "__expectedType__": "cc.Prefab" + }, + "fileId": "cfqCWnxbFLNoQMedQXsav3", + "instance": { + "__id__": 4 + }, + "targetOverrides": null + }, + { + "__type__": "cc.PrefabInstance", + "fileId": "51heDVa6dNC5JOz0aq5R7A", + "prefabRootNode": { + "__id__": 1 + }, + "mountedChildren": [], + "mountedComponents": [], + "propertyOverrides": [ + { + "__id__": 5 + }, + { + "__id__": 7 + }, + { + "__id__": 8 + }, + { + "__id__": 9 + }, + { + "__id__": 10 + }, + { + "__id__": 12 + }, + { + "__id__": 13 + }, + { + "__id__": 14 + }, + { + "__id__": 15 + } + ], + "removedComponents": [] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_name" + ], + "value": "ready" + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "cfqCWnxbFLNoQMedQXsav3" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": 6.112, + "y": 45.573, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_lrot" + ], + "value": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_euler" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 11 + }, + "propertyPath": [ + "_lrot" + ], + "value": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": -0.7071067811865475, + "w": 0.7071067811865476 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "feOW1uSctLKYCw3esMiuox" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 11 + }, + "propertyPath": [ + "_euler" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": -90 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 11 + }, + "propertyPath": [ + "_lscale" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0.8, + "y": 1.2, + "z": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_active" + ], + "value": false + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_lscale" + ], + "value": { + "__type__": "cc.Vec3", + "x": 2, + "y": 2, + "z": 1 + } + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 17 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 40, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.49664333316829656, + "y": 0.5156666649712457 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "63NP9yq3hEUKD/OZZZ5t7x" + }, + { + "__type__": "fa24e/W24dKOpV/zeDMOkBU", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 19 + }, + "atkPrefab": { + "__uuid__": "6ccc9250-6e7a-48a9-8a8d-75d6c9406d21", + "__expectedType__": "cc.Prefab" + }, + "runType": 2, + "hasReady": false, + "ReadyTime": 0.1, + "ready_y": 0, + "atk_x": 10, + "atk_y": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "71M8fD8N5EuYBVRGv+zaXd" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "c46/YsCPVOJYA4mWEpNYRx", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": [ + { + "__id__": 2 + } + ] + } +] \ No newline at end of file diff --git a/assets/resources/game/skill/atk/atk_s2.prefab.meta b/assets/resources/game/skill/atk/atk_s2.prefab.meta new file mode 100644 index 00000000..43a02081 --- /dev/null +++ b/assets/resources/game/skill/atk/atk_s2.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.50", + "importer": "prefab", + "imported": true, + "uuid": "dce11b51-ebee-49f3-be9e-7e061d08f1e8", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "atk_s2" + } +} diff --git a/assets/resources/game/skill/atk/atk_s3.prefab b/assets/resources/game/skill/atk/atk_s3.prefab new file mode 100644 index 00000000..baaddca5 --- /dev/null +++ b/assets/resources/game/skill/atk/atk_s3.prefab @@ -0,0 +1,343 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "atk_s3", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "atk_s3", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + } + ], + "_active": true, + "_components": [ + { + "__id__": 16 + }, + { + "__id__": 18 + } + ], + "_prefab": { + "__id__": 20 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_prefab": { + "__id__": 3 + }, + "__editorExtras__": {} + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 2 + }, + "asset": { + "__uuid__": "43a67d73-b426-4f20-9a1f-1aaae1c82bd0", + "__expectedType__": "cc.Prefab" + }, + "fileId": "cfqCWnxbFLNoQMedQXsav3", + "instance": { + "__id__": 4 + }, + "targetOverrides": null + }, + { + "__type__": "cc.PrefabInstance", + "fileId": "51heDVa6dNC5JOz0aq5R7A", + "prefabRootNode": { + "__id__": 1 + }, + "mountedChildren": [], + "mountedComponents": [], + "propertyOverrides": [ + { + "__id__": 5 + }, + { + "__id__": 7 + }, + { + "__id__": 8 + }, + { + "__id__": 9 + }, + { + "__id__": 10 + }, + { + "__id__": 12 + }, + { + "__id__": 13 + }, + { + "__id__": 14 + }, + { + "__id__": 15 + } + ], + "removedComponents": [] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_name" + ], + "value": "ready" + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "cfqCWnxbFLNoQMedQXsav3" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": 6.112, + "y": 45.573, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_lrot" + ], + "value": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_euler" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 11 + }, + "propertyPath": [ + "_lrot" + ], + "value": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": -0.7071067811865475, + "w": 0.7071067811865476 + } + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "feOW1uSctLKYCw3esMiuox" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 11 + }, + "propertyPath": [ + "_euler" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": -90 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 11 + }, + "propertyPath": [ + "_lscale" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0.8, + "y": 1.2, + "z": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_active" + ], + "value": false + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_lscale" + ], + "value": { + "__type__": "cc.Vec3", + "x": 2, + "y": 2, + "z": 1 + } + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 17 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 40, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.49664333316829656, + "y": 0.5156666649712457 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "63NP9yq3hEUKD/OZZZ5t7x" + }, + { + "__type__": "fa24e/W24dKOpV/zeDMOkBU", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 19 + }, + "atkPrefab": { + "__uuid__": "940ebade-65c5-4af0-b3ef-99b339fb81d1", + "__expectedType__": "cc.Prefab" + }, + "runType": 2, + "hasReady": false, + "ReadyTime": 0.1, + "ready_y": 0, + "atk_x": 10, + "atk_y": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "71M8fD8N5EuYBVRGv+zaXd" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "c46/YsCPVOJYA4mWEpNYRx", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": [ + { + "__id__": 2 + } + ] + } +] \ No newline at end of file diff --git a/assets/resources/game/skill/atk/atk_s3.prefab.meta b/assets/resources/game/skill/atk/atk_s3.prefab.meta new file mode 100644 index 00000000..c1b909af --- /dev/null +++ b/assets/resources/game/skill/atk/atk_s3.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.50", + "importer": "prefab", + "imported": true, + "uuid": "96031e6d-7853-4ab2-8621-7ae5e9154386", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "atk_s3" + } +} diff --git a/assets/resources/gui/role_controller.prefab b/assets/resources/gui/role_controller.prefab index 003fed0e..77baa66a 100644 --- a/assets/resources/gui/role_controller.prefab +++ b/assets/resources/gui/role_controller.prefab @@ -1320,7 +1320,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 243.69999999999993, + "y": 301, "z": 0 }, "_lrot": { @@ -1414,7 +1414,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 718, - "height": 485.39999999999986 + "height": 600 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -3990,7 +3990,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 718, - "height": 485.39999999999986 + "height": 600 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -4015,11 +4015,11 @@ "__prefab": { "__id__": 164 }, - "_alignFlags": 45, + "_alignFlags": 44, "_target": null, "_left": 1, "_right": 1, - "_top": 0.6200000000000001, + "_top": 0.6142968750000001, "_bottom": 1, "_horizontalCenter": 0, "_verticalCenter": 0, @@ -4048,8 +4048,6 @@ "__id__": 0 }, "fileId": "d8tk5LEZZGh4E2AdHDAtvh", - "instance": null, - "targetOverrides": null, "nestedPrefabInstanceRoots": null }, { diff --git a/assets/script/game/common/config/CardSet.ts b/assets/script/game/common/config/CardSet.ts deleted file mode 100644 index fd68e9fa..00000000 --- a/assets/script/game/common/config/CardSet.ts +++ /dev/null @@ -1,172 +0,0 @@ -/* - CardList type: 1:伙伴 2:技能 3:装备 - */ - -import { getHeroList } from "./heroSet" -import { BuffAttr, getSkills, HeroSkillList, SkillSet } from "./SkillSet" -import { equip_list, weapons, armors, accessorys, getEquipUUIDsByType } from "./Equips" -import { getEnhancement } from "./LevelUp" -import { TalentList } from "./TalentSet" -import { QualitySet } from "./BoxSet" - -//1:伙伴 2:技能 3:装备的出现概率配置 -export const CardProbability={ - 1:0.5, - 2:0.3, - 3:0.2, -} -export const cardType={ - HERO:1, - SKILL:2, - EQUIP:3, - SPECIAL:4, - ENHANCEMENT:5, - TALENT:6, -} -// 获取随机卡牌UUID -export function getRandomCardUUID( - heroRate: number = 1, // 伙伴出现概率修正系数 - skillRate: number = 1, // 技能出现概率修正系数 - equipRate: number = 1, // 装备出现概率修正系数 - specialRate: number = 1 // 功能卡牌出现概率修正系数 -): { type: number; uuid: number } { - // 计算修正后的概率 - const adjustedProbability = { - 1: CardProbability[1] * heroRate, - 2: CardProbability[2] * skillRate, - 3: CardProbability[3] * equipRate, - 4: CardProbability[4] * specialRate - }; - - // 计算总概率 - const totalProbability = Object.values(adjustedProbability).reduce((sum, prob) => sum + prob, 0); - - // 生成0-1之间的随机数 - const random = Math.random() * totalProbability; - let cumulativeProbability = 0; - - // 根据修正后的概率确定卡牌类型 - let c_type = 1; // 默认类型为伙伴 - for (const [type, probability] of Object.entries(adjustedProbability)) { - cumulativeProbability += probability; - if (random <= cumulativeProbability) { - c_type = parseInt(type); - break; - } - } - - // 根据类型获取对应的卡牌列表 - let cardList: number[] = []; - switch (c_type) { - case cardType.HERO: // 伙伴 - cardList = getHeroList(); - break; - case cardType.SKILL: // 技能 - cardList = HeroSkillList; - break; - case cardType.EQUIP: // 装备 - cardList = equip_list; - break; - case cardType.SPECIAL: // 功能卡牌 - cardList = SuperCardsList; - break; - - } - - // 从对应类型的卡牌列表中随机选择一个 - const randomIndex = Math.floor(Math.random() * cardList.length); - return {type:c_type,uuid:cardList[randomIndex]}; -} - -// 获取指定类型的随机卡牌UUID -export function getRandomCardUUIDByType(type: number): number { - let cardList: number[] = []; - switch (type) { - case cardType.HERO: // 伙伴 - cardList = getHeroList(); - break; - case cardType.SKILL: // 技能 - cardList = HeroSkillList; - break; - case cardType.EQUIP: // 装备 - cardList = equip_list; - break; - case cardType.SPECIAL: // 功能卡牌 - cardList = SuperCardsList; - break; - default: - throw new Error(`Invalid card type: ${type}`); - } - - const randomIndex = Math.floor(Math.random() * cardList.length); - return cardList[randomIndex]; -} - -// 获取多个不重复的指定类型卡牌 -export function getRandomCardsByType( - type: number, - count: number, - data?: number, // 新增参数:装备子类型 1:武器 2:防具 3:饰品 0或undefined:全部 - level?: number // 新增参数:装备等级 1-5 -): { type: number; uuid: number }[] { - let cardList: number[] = []; - switch (type) { - case cardType.HERO: - cardList = getHeroList(data); //hero选项是1和0 1是主将 - break; - case cardType.SKILL: - cardList = getSkills(data); // 技能时 data是品质 - break; - case cardType.EQUIP: - // 根据装备子类型筛选 - cardList=getEquipUUIDsByType(data) //装备时 data是装备子类型 1:武器 2:防具 3:饰品 0或undefined:全部 - break; - case cardType.SPECIAL: - cardList = SuperCardsList; - break; - case cardType.TALENT: - cardList = Object.keys(TalentList).map(key => parseInt(key)); - break; - default: - throw new Error(`Invalid card type: ${type}`); - } - - // 确保请求数量不超过可用卡牌数量 - count = Math.min(count, cardList.length); - - // 打乱数组顺序 - const shuffled = [...cardList].sort(() => Math.random() - 0.5); - - // 返回指定数量的卡牌 - return shuffled.slice(0, count).map(uuid => ({ - type, - uuid - })); -} -export const SuperCardsType={ - SPECIAL:1, //特殊效果 - AOE:2, //伤害技能 范围伤害 - BUFF:3, //buff技能 范围buff - DEBUFF:4, //debuff技能 范围debuff - LEVELUP:5, //升级后奖励 -} -export const CTarget={ - MASTER:1, //主将 - ENEMY:2, //敌人 - ALL:3, //所有 -} - - -export const SuperCardsList=[3101,3102,3103,3104,3105,3106]; -export const SuperCards={ - - 3101:{uuid:3101,name:"陨石爆",quality:QualitySet.GREEN,path:"3101",CTarget:CTarget.ENEMY,type:SuperCardsType.AOE,value1:SkillSet[6005].uuid,value2:1,value3:0, - info:"召唤大量火球攻击敌人,每个火球对敌人造成英雄攻击力的300%伤害"}, - 3102:{uuid:3102,name:"龙卷群",quality:QualitySet.BLUE,path:"3104",CTarget:CTarget.ENEMY,type:SuperCardsType.AOE,value1:SkillSet[6006].uuid,value2:1,value3:0, - info:"召唤大量火球攻击敌人,每个火球对敌人造成英雄攻击力的300%伤害"}, - 3103:{uuid:3103,name:"大海啸",quality:QualitySet.PURPLE,path:"3105",CTarget:CTarget.ENEMY,type:SuperCardsType.AOE,value1:SkillSet[6007].uuid,value2:1,value3:0, - info:"召唤大量火球攻击敌人,每个火球对敌人造成英雄攻击力的300%伤害"}, - 3104:{uuid:3104,name:"攻击力",quality:QualitySet.ORANGE,path:"3106",CTarget:CTarget.MASTER,type:SuperCardsType.BUFF,value1:BuffAttr.AP,value2:5,value3:0}, - 3105:{uuid:3105,name:"生命值",quality:QualitySet.ORANGE,path:"3107",CTarget:CTarget.MASTER,type:SuperCardsType.BUFF,value1:BuffAttr.HP_MAX,value2:5,value3:0}, - 3106:{uuid:3106,name:"防御值",quality:QualitySet.ORANGE,path:"3108",CTarget:CTarget.MASTER,type:SuperCardsType.BUFF,value1:BuffAttr.DEF,value2:5,value3:0}, -} diff --git a/assets/script/game/common/config/CardSet.ts.meta b/assets/script/game/common/config/CardSet.ts.meta deleted file mode 100644 index f7dbbce3..00000000 --- a/assets/script/game/common/config/CardSet.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "ffda71d7-624d-40de-8c09-712edd44bfdc", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/common/config/Equips.ts b/assets/script/game/common/config/Equips.ts deleted file mode 100644 index ddaa4c30..00000000 --- a/assets/script/game/common/config/Equips.ts +++ /dev/null @@ -1,1017 +0,0 @@ -import { QualitySet } from "./BoxSet"; -import { BuffAttr } from "./SkillSet"; - -// 装备路径配置表 -export const EPath = { - // 剑类武器 - "穿刺短剑": "2101", - "寒锋长剑": "2102", - "龙鳞穿刺者": "2103", - "冰霜穿刺者": "2104", - - // 斧类武器 - "风暴战斧": "3101", - "寒锋巨斧": "3102", - "龙鳞撕裂者": "3105", - "泰坦撕裂者": "3106", - - // 锤类武器 - "碎骨战锤": "5101", - "雷霆重锤": "5102", - "龙鳞粉碎者": "5103", - "泰坦粉碎者": "5104", - - // 刀类武器 - "影刃": "6101", - "寒月双刃": "6102", - "龙鳞切割者": "6103", - "冰霜切割者": "6104", - - // 盾牌装备 - "风影圆盾": "4101", - "流光护盾": "4102", - "量子闪避者": "4103", - "荆棘木盾": "4111", - "钢铁尖刺": "4112", - "龙鳞反伤者": "4113", - "守护圆盾": "4121", - "圣光壁垒": "4122", - "永恒守护者": "4123", - - // 饰品装备 - "磐石戒指": "7401", - "刚玉戒指": "7402", - "烈阳戒指": "7403", - "雷暴耳饰": "7404", - "迷雾耳饰": "7405", - "荆棘耳饰": "7406", - "星辉耳饰": "7421", - "霜晶耳饰": "7422", - "流光吊坠": "7423", - "地脉指环": "7424", - "炎阳戒指": "7425", - "潮汐戒指": "7426", - "天穹戒指": "7441", - "神木戒指": "7442", - "日曜戒指": "7443", - "月影项链": "7444", - "星尘项链": "7445", - "深渊戒指": "7446", - "永夜戒指": "7447", -}; - -// 装备类型 -export enum EquipType { - WEAPON = 1, // 武器 - ARMOR = 2, // 防具 - ACCESSORY = 3 // 饰品 -} - -//装备属性起效对象 -export enum EquipAttrTarget { - HERO = 1, // 自身 - FRIEND = 2, // 伙伴 - ENEMY = 3, // 敌人 -} -//buff debuff起效技能类型 -export enum SkillTarget { - ALL = 0, - FIRE = 1, - WATER = 2, - EARTH = 3, - WIND = 4, - LIGHT = 5, - DARK = 6, -} - //特殊属性 -export enum EquipSpecialAttr { - ICE=1, //冰系加成 - FIRE=2, //火焰加成 - WIND=3, //飓风加成 - //FRIEND_LIVE_CD=4, //伙伴复活时间减少 已经放弃了,怕兼容问题暂时留着 - //ATK_ADD_FRIEND_ATK=5, //攻击n次后增加伙伴攻击力 - //ATK_ADD_FRIEND_HP=6, //攻击n次后增加伙伴生命值 - ATK_ADD_GLOD=7, //攻击n次后增加金币 - ATK_ADD_MASTER_ATK=8, //攻击n次后增加主将攻击力 - ATK_ADD_MASTER_HP=9, //攻击n次后增加主将生命值 - //DOUBLE_DEAD=10, //额外死亡触发次数 伙伴系统已经取消,怕兼容问题暂时留着 - DOUBLE_ATKED=11, //额外受击触发次数 - ATKED_ADD_SKILL_STONE=12, //被攻击增加技能石 - ATK_ADD_VALUE=13, //攻击n次后触发属性增加的值 额外增加值 -} - -// 剑类武器UUID列表 - 根据wp.md配置 -export const swordWeapons = [ - // 等级1 - 2101, 2102, 2103, // 绿、蓝、紫 - // 等级2 - 2201, 2202, 2203, // 绿、蓝、紫 - // 等级3 - 2301, 2302, 2303, // 绿、蓝、紫 - // 等级4 - 2401, 2402, 2403, 2404, // 绿、蓝、紫、紫(冰霜) - // 等级5 - 2501, 2502, 2503, 2504, // 绿、蓝、紫、紫(冰霜) -]; - -// 斧类武器UUID列表 - 根据wp.md配置 -export const axeWeapons = [ - // 等级1 - 3101, 3102, 3103, // 绿、蓝、紫 - // 等级2 - 3201, 3202, 3203, // 绿、蓝、紫 - // 等级3 - 3301, 3302, 3303, // 绿、蓝、紫 - // 等级4 - 3401, 3402, 3403, 3404, // 绿、蓝、紫、紫(泰坦) - // 等级5 - 3501, 3502, 3503, 3504, // 绿、蓝、紫、紫(泰坦) -]; - -// 锤类武器UUID列表 - 根据wp.md配置 -export const hammerWeapons = [ - // 等级1 - 1101, 1102, 1103, // 绿、蓝、紫 - // 等级2 - 1201, 1202, 1203, // 绿、蓝、紫 - // 等级3 - 1301, 1302, 1303, // 绿、蓝、紫 - // 等级4 - 1401, 1402, 1403, 1404, // 绿、蓝、紫、紫(泰坦) - // 等级5 - 1501, 1502, 1503, 1504, // 绿、蓝、紫、紫(泰坦) -]; - -// 刀类武器UUID列表 - 根据wp.md配置 -export const knifeWeapons = [ - // 等级1 - 6101, 6102, 6103, // 绿、蓝、紫 - // 等级2 - 6201, 6202, 6203, // 绿、蓝、紫 - // 等级3 - 6301, 6302, 6303, // 绿、蓝、紫 - // 等级4 - 6401, 6402, 6403, 6404, // 绿、蓝、紫、紫(冰霜) - // 等级5 - 6501, 6502, 6503, 6504, // 绿、蓝、紫、紫(冰霜) -]; - -// 盾牌装备UUID列表 - 根据wp.md配置 -export const shieldArmors = [ - // 闪避型盾牌 - // 等级1-5 风影圆盾(绿) - 4101, 4201, 4301, 4401, 4501, - // 等级1-5 流光护盾(蓝) - 4102, 4202, 4302, 4402, 4502, - // 等级1-5 量子闪避者(紫) - 4103, 4203, 4303, 4403, 4503, - - // 反伤型盾牌 - // 等级1-5 荆棘木盾(绿) - 4111, 4211, 4311, 4411, 4511, - // 等级1-5 钢铁尖刺(蓝) - 4112, 4212, 4312, 4412, 4512, - // 等级1-5 龙鳞反伤者(紫) - 4113, 4213, 4313, 4413, 4513, - - // 均衡型盾牌 - // 等级1-5 守护圆盾(绿) - 4121, 4221, 4321, 4421, 4521, - // 等级1-5 圣光壁垒(蓝) - 4122, 4222, 4322, 4422, 4522, - // 等级1-5 永恒守护者(紫) - 4123, 4223, 4323, 4423, 4523, -]; - -// 饰品装备UUID列表 - 根据wp.md配置 -export const accessoryItems = [ - // 绿色品质饰品 (等级4-5) - // 磐石戒指 - 7401, 7501, - // 刚玉戒指 - 7402, 7502, - // 烈阳戒指 - 7403, 7503, - // 雷暴耳饰 - 7404, 7504, - // 迷雾耳饰 - 7405, 7505, - // 荆棘耳饰 - 7406, 7506, - - // 蓝色品质饰品 (等级4-5) - // 星辉耳饰 - 7421, 7521, - // 霜晶耳饰 - 7422, 7522, - // 流光吊坠 - 7423, 7523, - // 地脉指环 - 7424, 7524, - // 炎阳戒指 - 7425, 7525, - // 潮汐戒指 - 7426, 7526, - - // 紫色品质饰品 (等级4-5) - // 天穹戒指 - 7441, 7541, - // 神木戒指 - 7442, 7542, - // 日曜戒指 - 7443, 7543, - // 月影项链 - 7444, 7544, - // 星尘项链 - 7445, 7545, - // 深渊戒指 - 7446, 7546, - // 永夜戒指 - 7447, 7547, -]; -//build 流派 -export const build_list = { - CRIT:1,//暴击流 - DODGE:2,//闪避流 - REFLECT:3,//反伤流 - ATKUP:4,//攻击增益流 - SPEED:5,//高速流 - BURN:6,//叠伤流 - PUNCTURE:7,//穿透流 - WFUNY:8,//风怒流 -} -//build 说明 -export const build_info = { - [build_list.CRIT]: "暴击流", - [build_list.DODGE]: "闪避流", - [build_list.REFLECT]: "反伤流", - [build_list.ATKUP]: "攻击增益流", - [build_list.SPEED]: "高速流", - [build_list.BURN]: "叠伤流", - [build_list.PUNCTURE]: "穿透流", - [build_list.WFUNY]: "风怒流", -} -export const weapons = [...swordWeapons, ...axeWeapons, ...hammerWeapons, ...knifeWeapons]; -export const armors = [...shieldArmors]; -export const accessorys = [...accessoryItems]; -export const equip_list = [...swordWeapons, ...axeWeapons, ...hammerWeapons, ...knifeWeapons, ...shieldArmors, ...accessoryItems]; - - - -/** - * 根据装备类型获取所有uuid数组 - * @param equipType 装备类型 1:武器 2:防具 3:饰品 (可选,不传则返回所有类型) - * @returns uuid数组 - */ -export function getEquipUUIDsByType(equipType?: EquipType): number[] { - const result: number[] = []; - - // 遍历所有装备配置 - for (const [uuid, equipData] of Object.entries(EquipInfo)) { - const numericUuid = parseInt(uuid); - - // 检查装备类型是否匹配(如果指定了类型) - if (equipType === undefined || equipData.type === equipType) { - // 添加所有该类型的装备 - result.push(numericUuid); - } - } - - // 按UUID排序 - return result.sort((a, b) => a - b); -} - -/** - * 获取所有装备的uuid数组 - * @returns 所有装备的uuid数组 - */ -export function getAllEquipUUIDs(): number[] { - return getEquipUUIDsByType(); -} - - - - -// 装备属性加成接口 -export interface EquipAttribute { - type: BuffAttr; // 属性类型 - value: number; // 属性值 - target?: EquipAttrTarget; // 属性作用目标(可选) -} - -export interface EquipSpecialAttrData { - special_attr: EquipSpecialAttr; // 特殊属性 - special_attr_value: number; // 特殊属性值 -} - -// 装备基础接口 -export interface EquipData { - uuid: number; // 装备唯一ID - name: string; // 装备名称 - type: EquipType; // 装备类型 - quality: QualitySet; // 装备品质 - path: string; // 文件名 - info: string; // 装备描述 - special_attr: EquipSpecialAttrData[]; // 特殊属性数组 - buff: EquipAttribute[]; // 属性加成列表 - build?: number[]; // 流派(可选) -} - -export const EquipInfo: { [key: number]: EquipData } = { - - // 剑类武器 - 2101: { - uuid: 2101, - name: "穿刺短剑", - type: EquipType.WEAPON, - quality: QualitySet.GREEN, - path: EPath["穿刺短剑"], - info: "攻击力增加170%,穿透1个目标", - special_attr: [], - build: [build_list.PUNCTURE], - buff: [ - { type: BuffAttr.ATK, value: 170, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK_CD, value: 20, target: EquipAttrTarget.HERO }, // CD修正-20% - { type: BuffAttr.PUNCTURE, value: 1, target: EquipAttrTarget.HERO }, // 穿刺1个目标 - ], - }, - 2102: { - uuid: 2102, - name: "寒锋长剑", - type: EquipType.WEAPON, - quality: QualitySet.BLUE, - path: EPath["寒锋长剑"], - info: "攻击力增加230%,穿透2个目标,30%穿刺伤害", - special_attr: [], - build: [build_list.PUNCTURE], - buff: [ - { type: BuffAttr.ATK, value: 230, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK_CD, value: 20, target: EquipAttrTarget.HERO }, // CD修正-20% - { type: BuffAttr.PUNCTURE, value: 2, target: EquipAttrTarget.HERO }, // 穿刺2个目标 - { type: BuffAttr.PUNCTURE_DMG, value: 30, target: EquipAttrTarget.HERO }, // 30%穿刺伤害 - ], - }, - 2103: { - uuid: 2103, - name: "龙鳞穿刺者", - type: EquipType.WEAPON, - quality: QualitySet.PURPLE, - path: EPath["龙鳞穿刺者"], - info: "攻击力增加290%,穿透3个目标,40%穿刺伤害", - special_attr: [], - build: [build_list.PUNCTURE], - buff: [ - { type: BuffAttr.ATK, value: 290, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK_CD, value: 20, target: EquipAttrTarget.HERO }, // CD修正-20% - { type: BuffAttr.PUNCTURE, value: 3, target: EquipAttrTarget.HERO }, // 穿刺3个目标 - { type: BuffAttr.PUNCTURE_DMG, value: 40, target: EquipAttrTarget.HERO }, // 40%穿刺伤害 - ], - }, - 2104: { - uuid: 2104, - name: "冰霜穿刺者", - type: EquipType.WEAPON, - quality: QualitySet.PURPLE, - path: EPath["冰霜穿刺者"], - info: "攻击力增加290%,穿透3个目标,冰冻概率25%", - special_attr: [], - build: [build_list.PUNCTURE], - buff: [ - { type: BuffAttr.ATK, value: 290, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK_CD, value: 20, target: EquipAttrTarget.HERO }, // CD修正-20% - { type: BuffAttr.PUNCTURE, value: 3, target: EquipAttrTarget.HERO }, // 穿刺3个目标 - { type: BuffAttr.FROST_RATIO, value: 25, target: EquipAttrTarget.HERO }, // 冰冻概率25% - ], - }, - - // === 斧类武器配置 === - - // 斧类武器 - 3101: { - uuid: 3101, - name: "风暴战斧", - type: EquipType.WEAPON, - quality: QualitySet.GREEN, - path: EPath["风暴战斧"], - info: "攻击力增加220%,风怒概率40%", - special_attr: [], - build: [build_list.WFUNY], - buff: [ - { type: BuffAttr.ATK, value: 220, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK_CD, value: 0, target: EquipAttrTarget.HERO }, // CD修正0% - { type: BuffAttr.WFUNY, value: 40, target: EquipAttrTarget.HERO }, // 风怒概率40% - ], - }, - 3102: { - uuid: 3102, - name: "寒锋巨斧", - type: EquipType.WEAPON, - quality: QualitySet.BLUE, - path: EPath["寒锋巨斧"], - info: "攻击力增加280%,风怒概率50%", - special_attr: [], - build: [build_list.WFUNY], - buff: [ - { type: BuffAttr.ATK, value: 280, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK_CD, value: 0, target: EquipAttrTarget.HERO }, // CD修正0% - { type: BuffAttr.WFUNY, value: 50, target: EquipAttrTarget.HERO }, // 风怒概率50% - ], - }, - 3105: { - uuid: 3105, - name: "龙鳞撕裂者", - type: EquipType.WEAPON, - quality: QualitySet.PURPLE, - path: EPath["龙鳞撕裂者"], - info: "攻击力增加340%,风怒概率60%,击退概率27%", - special_attr: [], - build: [build_list.WFUNY], - buff: [ - { type: BuffAttr.ATK, value: 340, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK_CD, value: 0, target: EquipAttrTarget.HERO }, // CD修正0% - { type: BuffAttr.WFUNY, value: 60, target: EquipAttrTarget.HERO }, // 风怒概率60% - { type: BuffAttr.KNOCKBACK, value: 27, target: EquipAttrTarget.HERO }, // 击退概率37% - ], - }, - 3106: { - uuid: 3106, - name: "泰坦撕裂者", - type: EquipType.WEAPON, - quality: QualitySet.PURPLE, - path: EPath["泰坦撕裂者"], - info: "攻击力增加300%,风怒概率60%,击晕概率12.5%", - special_attr: [], - build: [build_list.WFUNY], - buff: [ - { type: BuffAttr.ATK, value: 300, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK_CD, value: 0, target: EquipAttrTarget.HERO }, // CD修正0% - { type: BuffAttr.WFUNY, value: 60, target: EquipAttrTarget.HERO }, // 风怒概率60% - { type: BuffAttr.STUN_RATIO, value: 12.5, target: EquipAttrTarget.HERO }, // 击晕概率12.5% - ], - }, - - // === 锤类武器配置 === - - - // 锤类武器 - 5101: { - uuid: 5101, - name: "碎骨战锤", - type: EquipType.WEAPON, - quality: QualitySet.GREEN, - path: EPath["碎骨战锤"], - info: "攻击力增加240%,暴击率20%,暴击伤害+35%", - special_attr: [], - build: [build_list.CRIT], - buff: [ - { type: BuffAttr.ATK, value: 240, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK_CD, value: -6.7, target: EquipAttrTarget.HERO }, // CD修正+6.7% - { type: BuffAttr.CRITICAL, value: 20, target: EquipAttrTarget.HERO }, // 暴击率20% - { type: BuffAttr.CRITICAL_DMG, value: 35, target: EquipAttrTarget.HERO }, // 暴击伤害+35% - ], - }, - 5102: { - uuid: 5102, - name: "雷霆重锤", - type: EquipType.WEAPON, - quality: QualitySet.BLUE, - path: EPath["雷霆重锤"], - info: "攻击力增加310%,暴击率25%,暴击伤害+45%", - special_attr: [], - build: [build_list.CRIT], - buff: [ - { type: BuffAttr.ATK, value: 310, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK_CD, value: -6.7, target: EquipAttrTarget.HERO }, // CD修正+6.7% - { type: BuffAttr.CRITICAL, value: 25, target: EquipAttrTarget.HERO }, // 暴击率25% - { type: BuffAttr.CRITICAL_DMG, value: 45, target: EquipAttrTarget.HERO }, // 暴击伤害+45% - ], - }, - 5103: { - uuid: 5103, - name: "龙鳞粉碎者", - type: EquipType.WEAPON, - quality: QualitySet.PURPLE, - path: EPath["龙鳞粉碎者"], - info: "攻击力增加360%,暴击率30%,暴击伤害+70%,击晕概率+15%", - special_attr: [], - build: [build_list.CRIT], - buff: [ - { type: BuffAttr.ATK, value: 360, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK_CD, value: -6.7, target: EquipAttrTarget.HERO }, // CD修正+6.7% - { type: BuffAttr.CRITICAL, value: 30, target: EquipAttrTarget.HERO }, // 暴击率30% - { type: BuffAttr.CRITICAL_DMG, value: 70, target: EquipAttrTarget.HERO }, // 暴击伤害+70% - { type: BuffAttr.STUN_RATIO, value: 15, target: EquipAttrTarget.HERO }, // 击晕概率+15% - ], - }, - 5104: { - uuid: 5104, - name: "泰坦粉碎者", - type: EquipType.WEAPON, - quality: QualitySet.PURPLE, - path: EPath["泰坦粉碎者"], - info: "攻击力增加360%,暴击率30%,击晕概率30%", - special_attr: [], - build: [build_list.CRIT], - buff: [ - { type: BuffAttr.ATK, value: 360, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK_CD, value: -6.7, target: EquipAttrTarget.HERO }, // CD修正+6.7% - { type: BuffAttr.CRITICAL, value: 30, target: EquipAttrTarget.HERO }, // 暴击率30% - { type: BuffAttr.STUN_RATIO, value: 30, target: EquipAttrTarget.HERO }, // 击晕概率30% - ], - }, - - // === 刀类武器配置 === - - - // 刀类武器 - 6101: { - uuid: 6101, - name: "影刃", - type: EquipType.WEAPON, - quality: QualitySet.GREEN, - path: EPath["影刃"], - info: "攻击力增加180%,攻击施加易伤(25%)", - special_attr: [], - build: [build_list.BURN], - buff: [ - { type: BuffAttr.ATK, value: 180, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK_CD, value: 26.7, target: EquipAttrTarget.HERO }, // CD修正-26.7% - { type: BuffAttr.BURN_VALUE, value: 25, target: EquipAttrTarget.HERO }, // 攻击施加易伤(25%) - ], - }, - 6102: { - uuid: 6102, - name: "寒月双刃", - type: EquipType.WEAPON, - quality: QualitySet.BLUE, - path: EPath["寒月双刃"], - info: "攻击力增加245%,攻击施加易伤(35%)", - special_attr: [], - build: [build_list.BURN], - buff: [ - { type: BuffAttr.ATK, value: 245, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK_CD, value: 26.7, target: EquipAttrTarget.HERO }, // CD修正-26.7% - { type: BuffAttr.BURN_VALUE, value: 35, target: EquipAttrTarget.HERO }, // 攻击施加易伤(35%) - ], - }, - 6103: { - uuid: 6103, - name: "龙鳞切割者", - type: EquipType.WEAPON, - quality: QualitySet.PURPLE, - path: EPath["龙鳞切割者"], - info: "攻击力增加300%,攻击施加易伤(45%),易伤持续次数+1", - special_attr: [], - build: [build_list.BURN], - buff: [ - { type: BuffAttr.ATK, value: 300, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK_CD, value: 26.7, target: EquipAttrTarget.HERO }, // CD修正-26.7% - { type: BuffAttr.BURN_VALUE, value: 45, target: EquipAttrTarget.HERO }, // 攻击施加易伤(45%) - { type: BuffAttr.BURN_COUNT, value: 1, target: EquipAttrTarget.HERO }, // 易伤持续次数+1 - ], - }, - 6104: { - uuid: 6104, - name: "冰霜切割者", - type: EquipType.WEAPON, - quality: QualitySet.PURPLE, - path: EPath["冰霜切割者"], - info: "攻击力增加300%,攻击施加易伤(45%),冰冻概率25%", - special_attr: [], - build: [build_list.BURN], - buff: [ - { type: BuffAttr.ATK, value: 300, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK_CD, value: 26.7, target: EquipAttrTarget.HERO }, // CD修正-26.7% - { type: BuffAttr.BURN_VALUE, value: 45, target: EquipAttrTarget.HERO }, // 攻击施加易伤(45%) - { type: BuffAttr.FROST_RATIO, value: 25, target: EquipAttrTarget.HERO }, // 冰冻概率25% - ], - }, - - // === 盾牌装备配置 === - - // === 闪避型盾牌 === - - - // 闪避型盾牌 - 4101: { - uuid: 4101, - name: "风影圆盾", - type: EquipType.ARMOR, - quality: QualitySet.GREEN, - path: EPath["风影圆盾"], - info: "生命值+40%,闪避40%", - special_attr: [], - buff: [ - { type: BuffAttr.HP, value: 40, target: EquipAttrTarget.HERO }, // HP+40% - { type: BuffAttr.DODGE, value: 40, target: EquipAttrTarget.HERO }, // 闪避40% - ], - }, - 4102: { - uuid: 4102, - name: "流光护盾", - type: EquipType.ARMOR, - quality: QualitySet.BLUE, - path: EPath["流光护盾"], - info: "生命值+45%,闪避40%,Debuff减免15%", - special_attr: [], - buff: [ - { type: BuffAttr.HP, value: 45, target: EquipAttrTarget.HERO }, // HP+45% - { type: BuffAttr.DODGE, value: 40, target: EquipAttrTarget.HERO }, // 闪避40% - { type: BuffAttr.DEBUFF_DOWN, value: 15, target: EquipAttrTarget.HERO }, // Debuff减免15% - ], - }, - 4103: { - uuid: 4103, - name: "量子闪避者", - type: EquipType.ARMOR, - quality: QualitySet.PURPLE, - path: EPath["量子闪避者"], - info: "生命值+50%,闪避45%,免伤15%", - special_attr: [], - buff: [ - { type: BuffAttr.HP, value: 50, target: EquipAttrTarget.HERO }, // HP+50% - { type: BuffAttr.DODGE, value: 45, target: EquipAttrTarget.HERO }, // 闪避45% - { type: BuffAttr.DEF, value: 15, target: EquipAttrTarget.HERO }, // 免伤15% - ], - }, - - // === 反伤型盾牌 === - - - // 反伤型盾牌 - 4111: { - uuid: 4111, - name: "荆棘木盾", - type: EquipType.ARMOR, - quality: QualitySet.GREEN, - path: EPath["荆棘木盾"], - info: "生命值+85%,反伤30%", - special_attr: [], - buff: [ - { type: BuffAttr.HP, value: 85, target: EquipAttrTarget.HERO }, // HP+85% - { type: BuffAttr.REFLECT, value: 30, target: EquipAttrTarget.HERO }, // 反伤30% - ], - }, - 4112: { - uuid: 4112, - name: "钢铁尖刺", - type: EquipType.ARMOR, - quality: QualitySet.BLUE, - path: EPath["钢铁尖刺"], - info: "生命值+90%,反伤30%,Debuff减免15%", - special_attr: [], - buff: [ - { type: BuffAttr.HP, value: 90, target: EquipAttrTarget.HERO }, // HP+90% - { type: BuffAttr.REFLECT, value: 30, target: EquipAttrTarget.HERO }, // 反伤30% - { type: BuffAttr.DEBUFF_DOWN, value: 15, target: EquipAttrTarget.HERO }, // Debuff减免15% - ], - }, - 4113: { - uuid: 4113, - name: "龙鳞反伤者", - type: EquipType.ARMOR, - quality: QualitySet.PURPLE, - path: EPath["龙鳞反伤者"], - info: "生命值+110%,反伤35%,免伤15%", - special_attr: [], - buff: [ - { type: BuffAttr.HP, value: 110, target: EquipAttrTarget.HERO }, // HP+110% - { type: BuffAttr.REFLECT, value: 35, target: EquipAttrTarget.HERO }, // 反伤35% - { type: BuffAttr.DEF, value: 15, target: EquipAttrTarget.HERO }, // 免伤15% - ], - }, - - // === 均衡型盾牌 === - - - - // 均衡型盾牌 - 4121: { - uuid: 4121, - name: "守护圆盾", - type: EquipType.ARMOR, - quality: QualitySet.GREEN, - path: EPath["守护圆盾"], - info: "生命值+65%,免伤20%", - special_attr: [], - buff: [ - { type: BuffAttr.HP, value: 65, target: EquipAttrTarget.HERO }, // HP+65% - { type: BuffAttr.DEF, value: 20, target: EquipAttrTarget.HERO }, // 免伤20% - ], - }, - 4122: { - uuid: 4122, - name: "圣光壁垒", - type: EquipType.ARMOR, - quality: QualitySet.BLUE, - path: EPath["圣光壁垒"], - info: "生命值+70%,免伤20%,Debuff减免15%", - special_attr: [], - buff: [ - { type: BuffAttr.HP, value: 70, target: EquipAttrTarget.HERO }, // HP+70% - { type: BuffAttr.DEF, value: 20, target: EquipAttrTarget.HERO }, // 免伤20% - { type: BuffAttr.DEBUFF_DOWN, value: 15, target: EquipAttrTarget.HERO }, // Debuff减免15% - ], - }, - 4123: { - uuid: 4123, - name: "永恒守护者", - type: EquipType.ARMOR, - quality: QualitySet.PURPLE, - path: EPath["永恒守护者"], - info: "生命值+75%,免伤25%,闪避15%", - special_attr: [], - buff: [ - { type: BuffAttr.HP, value: 75, target: EquipAttrTarget.HERO }, // HP+75% - { type: BuffAttr.DEF, value: 25, target: EquipAttrTarget.HERO }, // 免伤25% - { type: BuffAttr.DODGE, value: 15, target: EquipAttrTarget.HERO }, // 闪避15% - ], - }, - - // === 饰品装备配置 === - - // === 绿色品质饰品 === - - 7401: { - uuid: 7401, - name: "磐石戒指", - type: EquipType.ACCESSORY, - quality: QualitySet.GREEN, - path: EPath["磐石戒指"], - info: "生命值+60%", - special_attr: [], - buff: [ - { type: BuffAttr.HP, value: 60, target: EquipAttrTarget.HERO }, - ], - }, - - 7402: { - uuid: 7402, - name: "刚玉戒指", - type: EquipType.ACCESSORY, - quality: QualitySet.GREEN, - path: EPath["刚玉戒指"], - info: "免伤+25%", - special_attr: [], - buff: [ - { type: BuffAttr.DEF, value: 25, target: EquipAttrTarget.HERO }, - ], - }, - - - 7403: { - uuid: 7403, - name: "烈阳戒指", - type: EquipType.ACCESSORY, - quality: QualitySet.GREEN, - path: EPath["烈阳戒指"], - info: "攻击+55%", - special_attr: [], - buff: [ - { type: BuffAttr.ATK, value: 55, target: EquipAttrTarget.HERO }, - ], - }, - - 7404: { - uuid: 7404, - name: "雷暴耳饰", - type: EquipType.ACCESSORY, - quality: QualitySet.GREEN, - path: EPath["雷暴耳饰"], - info: "暴伤+40%", - special_attr: [], - buff: [ - { type: BuffAttr.CRITICAL_DMG, value: 40, target: EquipAttrTarget.HERO }, - ], - }, - - - 7405: { - uuid: 7405, - name: "迷雾耳饰", - type: EquipType.ACCESSORY, - quality: QualitySet.GREEN, - path: EPath["迷雾耳饰"], - info: "闪避+15%", - special_attr: [], - buff: [ - { type: BuffAttr.DODGE, value: 15, target: EquipAttrTarget.HERO }, - ], - }, - - 7406: { - uuid: 7406, - name: "荆棘耳饰", - type: EquipType.ACCESSORY, - quality: QualitySet.GREEN, - path: EPath["荆棘耳饰"], - info: "反伤+20%", - special_attr: [], - buff: [ - { type: BuffAttr.REFLECT, value: 20, target: EquipAttrTarget.HERO }, - ], - }, - - // === 蓝色品质饰品 === - - 7421: { - uuid: 7421, - name: "星辉耳饰", - type: EquipType.ACCESSORY, - quality: QualitySet.BLUE, - path: EPath["星辉耳饰"], - info: "生命值+40%,免伤+20%", - special_attr: [], - buff: [ - { type: BuffAttr.HP, value: 40, target: EquipAttrTarget.HERO }, - { type: BuffAttr.DEF, value: 20, target: EquipAttrTarget.HERO }, - ], - }, - - 7422: { - uuid: 7422, - name: "霜晶耳饰", - type: EquipType.ACCESSORY, - quality: QualitySet.BLUE, - path: EPath["霜晶耳饰"], - info: "攻击+40%,暴伤+30%", - special_attr: [], - buff: [ - { type: BuffAttr.ATK, value: 40, target: EquipAttrTarget.HERO }, - { type: BuffAttr.CRITICAL_DMG, value: 30, target: EquipAttrTarget.HERO }, - ], - }, - - 7423: { - uuid: 7423, - name: "流光吊坠", - type: EquipType.ACCESSORY, - quality: QualitySet.BLUE, - path: EPath["流光吊坠"], - info: "生命值+35%,闪避+15%", - special_attr: [], - buff: [ - { type: BuffAttr.HP, value: 35, target: EquipAttrTarget.HERO }, - { type: BuffAttr.DODGE, value: 15, target: EquipAttrTarget.HERO }, - ], - }, - - 7424: { - uuid: 7424, - name: "地脉指环", - type: EquipType.ACCESSORY, - quality: QualitySet.BLUE, - path: EPath["地脉指环"], - info: "免伤+20%,反伤+15%", - special_attr: [], - buff: [ - { type: BuffAttr.DEF, value: 20, target: EquipAttrTarget.HERO }, - { type: BuffAttr.REFLECT, value: 15, target: EquipAttrTarget.HERO }, - ], - }, - - 7425: { - uuid: 7425, - name: "炎阳戒指", - type: EquipType.ACCESSORY, - quality: QualitySet.BLUE, - path: EPath["炎阳戒指"], - info: "攻击+45%,闪避+10%", - special_attr: [], - buff: [ - { type: BuffAttr.ATK, value: 45, target: EquipAttrTarget.HERO }, - { type: BuffAttr.DODGE, value: 10, target: EquipAttrTarget.HERO }, - ], - }, - - - 7426: { - uuid: 7426, - name: "潮汐戒指", - type: EquipType.ACCESSORY, - quality: QualitySet.BLUE, - path: EPath["潮汐戒指"], - info: "暴伤+35%,反伤+15%", - special_attr: [], - buff: [ - { type: BuffAttr.CRITICAL_DMG, value: 35, target: EquipAttrTarget.HERO }, - { type: BuffAttr.REFLECT, value: 15, target: EquipAttrTarget.HERO }, - ], - }, - - // === 紫色品质饰品 === - - - 7441: { - uuid: 7441, - name: "天穹戒指", - type: EquipType.ACCESSORY, - quality: QualitySet.PURPLE, - path: EPath["天穹戒指"], - info: "生命值+45%,免伤+20%,攻击触发属性增加额外加值+2", - special_attr: [ - {special_attr: EquipSpecialAttr.ATK_ADD_VALUE, special_attr_value: 2}, - ], - buff: [ - { type: BuffAttr.HP, value: 45, target: EquipAttrTarget.HERO }, - { type: BuffAttr.DEF, value: 20, target: EquipAttrTarget.HERO }, - ], - }, - - - 7442: { - uuid: 7442, - name: "神木戒指", - type: EquipType.ACCESSORY, - quality: QualitySet.PURPLE, - path: EPath["神木戒指"], - info: "攻击+50%,暴伤+35%,暴击+10%", - special_attr: [], - buff: [ - { type: BuffAttr.ATK, value: 50, target: EquipAttrTarget.HERO }, - { type: BuffAttr.CRITICAL_DMG, value: 35, target: EquipAttrTarget.HERO }, - { type: BuffAttr.CRITICAL, value: 10, target: EquipAttrTarget.HERO }, - ], - }, - - 7443: { - uuid: 7443, - name: "日曜戒指", - type: EquipType.ACCESSORY, - quality: QualitySet.PURPLE, - path: EPath["日曜戒指"], - info: "生命值+40%,攻击+45%,攻击触发增加主将攻击力+2", - special_attr: [ - {special_attr: EquipSpecialAttr.ATK_ADD_MASTER_ATK, special_attr_value: 2}, - ], - buff: [ - { type: BuffAttr.HP, value: 40, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK, value: 45, target: EquipAttrTarget.HERO }, - ], - }, - - - 7444: { - uuid: 7444, - name: "月影项链", - type: EquipType.ACCESSORY, - quality: QualitySet.PURPLE, - path: EPath["月影项链"], - info: "免伤+20%,暴伤+35%,攻击触发增加主将生命值10", - special_attr: [ - {special_attr: EquipSpecialAttr.ATK_ADD_MASTER_HP, special_attr_value: 10}, - ], - buff: [ - { type: BuffAttr.DEF, value: 20, target: EquipAttrTarget.HERO }, - { type: BuffAttr.CRITICAL_DMG, value: 35, target: EquipAttrTarget.HERO }, - ], - }, - - 7445: { - uuid: 7445, - name: "星尘项链", - type: EquipType.ACCESSORY, - quality: QualitySet.PURPLE, - path: EPath["星尘项链"], - info: "闪避+15%,攻击+50%,技能冷却减少20%", - special_attr: [], - buff: [ - { type: BuffAttr.DODGE, value: 15, target: EquipAttrTarget.HERO }, - { type: BuffAttr.ATK, value: 50, target: EquipAttrTarget.HERO }, - { type: BuffAttr.SKILL_CD, value: 20, target: EquipAttrTarget.HERO }, - ], - }, - - 7446: { - uuid: 7446, - name: "深渊戒指", - type: EquipType.ACCESSORY, - quality: QualitySet.PURPLE, - path: EPath["深渊戒指"], - info: "反伤+15%,生命值+50%,穿刺+2", - special_attr: [], - buff: [ - { type: BuffAttr.REFLECT, value: 15, target: EquipAttrTarget.HERO }, - { type: BuffAttr.HP, value: 50, target: EquipAttrTarget.HERO }, - { type: BuffAttr.PUNCTURE, value: 2, target: EquipAttrTarget.HERO }, - ], - }, - - 7447: { - uuid: 7447, - name: "永夜戒指", - type: EquipType.ACCESSORY, - quality: QualitySet.PURPLE, - path: EPath["永夜戒指"], - info: "免伤+25%,暴伤+35%,双倍受击触发+2", - special_attr: [ - {special_attr: EquipSpecialAttr.DOUBLE_ATKED, special_attr_value: 2}, - ], - buff: [ - { type: BuffAttr.DEF, value: 25, target: EquipAttrTarget.HERO }, - { type: BuffAttr.CRITICAL_DMG, value: 35, target: EquipAttrTarget.HERO }, - ], - }, - -} - diff --git a/assets/script/game/common/config/Equips.ts.meta b/assets/script/game/common/config/Equips.ts.meta deleted file mode 100644 index 135c6143..00000000 --- a/assets/script/game/common/config/Equips.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "6f6a81bc-e767-4001-b181-2c18c896cfd0", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/common/config/Goods.ts b/assets/script/game/common/config/Goods.ts deleted file mode 100644 index 71ec8e4b..00000000 --- a/assets/script/game/common/config/Goods.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { Items } from "./Items"; - -export enum GType{ - ITEM=1, //物品 - GOLD=2, //金币 - DIAMOND=3, //钻石 - EXP=4, //经验 - MEAT=5, //能量 -} -export enum CType{ - GOLD=1, //金币 - DIAMOND=2, //钻石 - FREE=3, //免费 - AD=4, //广告 -} -export const getRandomGoods=()=>{ - let goods=[1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023] - // 随机打乱数组 - for (let i = goods.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - [goods[i], goods[j]] = [goods[j], goods[i]]; - } - return goods.slice(0, 8); -} -export const Goods={ - 1001:{i_uuid:Items[9001].uuid,num:10000,cast:0,type:GType.GOLD,c_type:CType.FREE}, - 1002:{i_uuid:Items[9002].uuid,num:100000,cast:0,type:GType.GOLD,c_type:CType.AD,}, - 1003:{i_uuid:Items[9003].uuid,num:500000,cast:100,type:GType.GOLD,c_type:CType.DIAMOND}, - 1004:{i_uuid:Items[9004].uuid,num:100,cast:0,type:GType.DIAMOND,c_type:CType.FREE}, - 1005:{i_uuid:Items[9005].uuid,num:200,cast:0,type:GType.DIAMOND,c_type:CType.FREE}, - 1006:{i_uuid:Items[9006].uuid,num:300,cast:0,type:GType.DIAMOND,c_type:CType.AD}, - 1007:{i_uuid:Items[9007].uuid,num:500,cast:0,type:GType.DIAMOND,c_type:CType.AD}, - 1008:{i_uuid:Items[1001].uuid,num:1,cast:1,type:GType.ITEM,c_type:CType.DIAMOND}, - 1009:{i_uuid:Items[1002].uuid,num:1,cast:1,type:GType.ITEM,c_type:CType.DIAMOND}, - 1010:{i_uuid:Items[1003].uuid,num:1,cast:1,type:GType.ITEM,c_type:CType.DIAMOND}, - 1011:{i_uuid:Items[1004].uuid,num:1,cast:1,type:GType.ITEM,c_type:CType.DIAMOND}, - 1012:{i_uuid:Items[1005].uuid,num:1,cast:1,type:GType.ITEM,c_type:CType.DIAMOND}, - 1013:{i_uuid:Items[1006].uuid,num:1,cast:1,type:GType.ITEM,c_type:CType.DIAMOND}, - 1014:{i_uuid:Items[1007].uuid,num:1,cast:1,type:GType.ITEM,c_type:CType.DIAMOND}, - 1015:{i_uuid:Items[1008].uuid,num:1,cast:1,type:GType.ITEM,c_type:CType.DIAMOND}, - 1016:{i_uuid:Items[1001].uuid,num:1,cast:10000,type:GType.ITEM,c_type:CType.GOLD}, - 1017:{i_uuid:Items[1002].uuid,num:1,cast:100000,type:GType.ITEM,c_type:CType.GOLD}, - 1018:{i_uuid:Items[1003].uuid,num:1,cast:500000,type:GType.ITEM,c_type:CType.GOLD}, - 1019:{i_uuid:Items[1004].uuid,num:1,cast:100,type:GType.ITEM,c_type:CType.GOLD}, - 1020:{i_uuid:Items[1005].uuid,num:1,cast:200,type:GType.ITEM,c_type:CType.GOLD}, - 1021:{i_uuid:Items[1006].uuid,num:1,cast:300,type:GType.ITEM,c_type:CType.GOLD}, - 1022:{i_uuid:Items[1007].uuid,num:1,cast:500,type:GType.ITEM,c_type:CType.GOLD}, - 1023:{i_uuid:Items[1008].uuid,num:1,cast:1000,type:GType.ITEM,c_type:CType.GOLD}, -} \ No newline at end of file diff --git a/assets/script/game/common/config/Goods.ts.meta b/assets/script/game/common/config/Goods.ts.meta deleted file mode 100644 index 7c5f7ac3..00000000 --- a/assets/script/game/common/config/Goods.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "0ca1e413-6bfd-4e8a-95cc-56fb3e54075a", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/common/config/LevelUp.ts b/assets/script/game/common/config/LevelUp.ts deleted file mode 100644 index c310c717..00000000 --- a/assets/script/game/common/config/LevelUp.ts +++ /dev/null @@ -1,218 +0,0 @@ -/* - * 肉鸽游戏玩家升级强化选项配置表 - * 提供玩家升级后的属性强化选择 - */ - -import { BuffAttr } from "./SkillSet" -import { QualitySet } from "./BoxSet"; - -// 强化类型枚举 -export const EnhancementType = { - ATTACK: 0, // 攻击力强化 - HEALTH: 1, // 生命值强化 - ATTACK_SPEED: 2, // 攻击速度强化 - DEF: 3, // 特殊效果强化 -} - -// 玩家强化等级追踪 -export interface PlayerEnhancementProgress { - [EnhancementType.ATTACK]: number; - [EnhancementType.HEALTH]: number; - [EnhancementType.ATTACK_SPEED]: number; - [EnhancementType.DEF]: number; -} - -// 默认强化进度(所有强化都从0级开始) -export const defaultEnhancementProgress: PlayerEnhancementProgress = { - [EnhancementType.ATTACK]: 0, - [EnhancementType.HEALTH]: 0, - [EnhancementType.ATTACK_SPEED]: 0, - [EnhancementType.DEF]: 0, -}; -export const defaultEnhancements=()=>{ - return { - [EnhancementType.ATTACK]: 0, - [EnhancementType.HEALTH]: 0, - [EnhancementType.ATTACK_SPEED]: 0, - [EnhancementType.DEF]: 0, - } -} -// 强化选项配置表(一维数组格式) -export const EnhancementOptions: EnhancementOption[] = [ - // 攻击力强化选项 - { uuid: 1001, type: EnhancementType.ATTACK, lv: 1, name: "力量训练 I", description: "攻击力 +5", buffType: BuffAttr.ATK, value: 5, icon: "3058", rarity: QualitySet.GREEN }, - { uuid: 1002, type: EnhancementType.ATTACK, lv: 2, name: "力量训练 II", description: "攻击力 +12", buffType: BuffAttr.ATK, value: 12, icon: "3058", rarity: QualitySet.GREEN }, - { uuid: 1003, type: EnhancementType.ATTACK, lv: 3, name: "力量训练 III", description: "攻击力 +20", buffType: BuffAttr.ATK, value: 20, icon: "3058", rarity: QualitySet.BLUE }, - { uuid: 1004, type: EnhancementType.ATTACK, lv: 4, name: "力量训练 IV", description: "攻击力 +35", buffType: BuffAttr.ATK, value: 35, icon: "3058", rarity: QualitySet.BLUE }, - { uuid: 1005, type: EnhancementType.ATTACK, lv: 5, name: "力量训练 V", description: "攻击力 +50", buffType: BuffAttr.ATK, value: 50, icon: "3058", rarity: QualitySet.PURPLE }, - // 生命值强化选项 - { uuid: 2001, type: EnhancementType.HEALTH, lv: 1, name: "体质增强 I", description: "生命值 +10", buffType: BuffAttr.HP, value: 10, icon: "3058", rarity: QualitySet.GREEN }, - { uuid: 2002, type: EnhancementType.HEALTH, lv: 2, name: "体质增强 II", description: "生命值 +25", buffType: BuffAttr.HP, value: 25, icon: "3058", rarity: QualitySet.GREEN }, - { uuid: 2003, type: EnhancementType.HEALTH, lv: 3, name: "体质增强 III", description: "生命值 +40", buffType: BuffAttr.HP, value: 40, icon: "3058", rarity: QualitySet.BLUE }, - { uuid: 2004, type: EnhancementType.HEALTH, lv: 4, name: "体质增强 IV", description: "生命值 +65", buffType: BuffAttr.HP, value: 65, icon: "3058", rarity: QualitySet.BLUE }, - { uuid: 2005, type: EnhancementType.HEALTH, lv: 5, name: "体质增强 V", description: "生命值 +100", buffType: BuffAttr.HP, value: 100, icon: "3058", rarity: QualitySet.PURPLE }, - { uuid: 3003, type: EnhancementType.ATTACK_SPEED, lv: 3, name: "快速出手 III", description: "攻击速度 +3%", buffType: BuffAttr.ATK_CD, value: 3, icon: "3058", rarity: QualitySet.BLUE }, - { uuid: 3004, type: EnhancementType.ATTACK_SPEED, lv: 4, name: "快速出手 IV", description: "攻击速度 +4%", buffType: BuffAttr.ATK_CD, value: 4, icon: "3058", rarity: QualitySet.BLUE }, - { uuid: 3005, type: EnhancementType.ATTACK_SPEED, lv: 5, name: "快速出手 V", description: "攻击速度 +5%", buffType: BuffAttr.ATK_CD, value: 5, icon: "3058", rarity: QualitySet.PURPLE }, - // 特殊效果强化选项 - { uuid: 4001, type: EnhancementType.DEF, lv: 1, name: "绝对防御 I", description: "免伤 +1%", buffType: BuffAttr.DEF, value: 1, icon: "3058", rarity: QualitySet.GREEN }, - { uuid: 4002, type: EnhancementType.DEF, lv: 2, name: "绝对防御 II", description: "免伤 +2%", buffType: BuffAttr.DEF, value: 2, icon: "3058", rarity: QualitySet.GREEN }, - { uuid: 4003, type: EnhancementType.DEF, lv: 3, name: "绝对防御 III", description: "免伤 +3%", buffType: BuffAttr.DEF, value: 3, icon: "3058", rarity: QualitySet.BLUE }, - { uuid: 4004, type: EnhancementType.DEF, lv: 4, name: "绝对防御 IV", description: "免伤 +4%", buffType: BuffAttr.DEF, value: 4, icon: "3058", rarity: QualitySet.BLUE }, - { uuid: 4005, type: EnhancementType.DEF, lv: 5, name: "绝对防御 V", description: "免伤 +5%", buffType: BuffAttr.DEF, value: 5, icon: "3058", rarity: QualitySet.PURPLE }, -]; - -// 强化选项接口定义 -export interface EnhancementOption { - uuid: number; // 强化选项唯一ID - type: number; // 强化类型 (EnhancementType) - lv: number; // 强化等级 - name: string; // 强化名称 - description: string; // 强化描述 - buffType: number; // 属性类型 (BuffAttr) - value: number; // 属性值 - icon: string; // 图标ID - rarity: number; // 稀有度 (Quality) -} - -// 获取随机强化选项(基于玩家当前强化进度) -export function getEnhancement(playerProgress: PlayerEnhancementProgress, count: number = 3): EnhancementOption[] { - const options: EnhancementOption[] = []; - const enhancementTypes = Object.values(EnhancementType); - - // 随机选择强化类型 - const selectedTypes = []; - const shuffledTypes = [...enhancementTypes]; - - // 随机打乱数组 - for (let i = shuffledTypes.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - [shuffledTypes[i], shuffledTypes[j]] = [shuffledTypes[j], shuffledTypes[i]]; - } - - // 选择指定数量的强化类型 - for (let i = 0; i < count && i < shuffledTypes.length; i++) { - selectedTypes.push(shuffledTypes[i]); - } - - // 为每个类型生成对应等级的选项 - selectedTypes.forEach(type => { - const currentLevel = playerProgress[type] || 0; - const nextLevel = Math.min(currentLevel + 1, 5); // 最大等级为5 - - const option = getEnhancementOptionByTypeAndLevel(type, nextLevel); - if (option) { - options.push(option); - } - }); - - return options; -} - -// 获取指定类型和等级的强化选项 -export function getEnhancementOptionByTypeAndLevel(type: number, level: number): EnhancementOption | null { - return EnhancementOptions.find(opt => opt.type === type && opt.lv === level) || null; -} - -// 获取所有可用的强化类型 -export function getAllEnhancementTypes(): number[] { - return Object.values(EnhancementType); -} - -// 获取指定等级的所有强化选项 -export function getEnhancementOptionsByLevel(level: number): EnhancementOption[] { - return EnhancementOptions.filter(opt => opt.lv === level); -} - -// 更新玩家强化进度 -export function updatePlayerEnhancementProgress( - progress: PlayerEnhancementProgress, - type: number, - levelIncrease: number = 1 -): PlayerEnhancementProgress { - const newProgress = { ...progress }; - const currentLevel = newProgress[type] || 0; - newProgress[type] = Math.min(currentLevel + levelIncrease, 5); // 最大等级为5 - return newProgress; -} - -// 检查某个强化类型是否还能继续升级 -export function canEnhancementUpgrade(progress: PlayerEnhancementProgress, type: number): boolean { - const currentLevel = progress[type] || 0; - return currentLevel < 5; // 最大等级为5 -} - -// 获取某个强化类型的下一级选项 -export function getNextLevelOption(progress: PlayerEnhancementProgress, type: number): EnhancementOption | null { - if (!canEnhancementUpgrade(progress, type)) { - return null; - } - - const currentLevel = progress[type] || 0; - const nextLevel = currentLevel + 1; - return getEnhancementOptionByTypeAndLevel(type, nextLevel); -} - -// 获取可升级的强化选项(排除已满级的) -export function getUpgradeableEnhancementOptions(progress: PlayerEnhancementProgress, count: number = 3): EnhancementOption[] { - const options: EnhancementOption[] = []; - const enhancementTypes = Object.values(EnhancementType); - - // 筛选出可以升级的强化类型 - const upgradeableTypes = enhancementTypes.filter(type => canEnhancementUpgrade(progress, type)); - - if (upgradeableTypes.length === 0) { - return options; // 没有可升级的选项 - } - - // 随机打乱可升级的类型 - const shuffledTypes = [...upgradeableTypes]; - for (let i = shuffledTypes.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - [shuffledTypes[i], shuffledTypes[j]] = [shuffledTypes[j], shuffledTypes[i]]; - } - - // 选择指定数量的强化类型 - const selectedTypes = shuffledTypes.slice(0, Math.min(count, shuffledTypes.length)); - - // 为每个类型生成下一级选项 - selectedTypes.forEach(type => { - const option = getNextLevelOption(progress, type); - if (option) { - options.push(option); - } - }); - - return options; -} - -// 获取玩家某个强化类型的当前等级 -export function getEnhancementLevel(progress: PlayerEnhancementProgress, type: number): number { - return progress[type] || 0; -} - -// 获取玩家所有强化的总等级 -export function getTotalEnhancementLevel(progress: PlayerEnhancementProgress): number { - return Object.values(progress).reduce((total, level) => total + level, 0); -} - -// 通过UUID获取强化选项 -export function getEnhancementOptionByUuid(uuid: number): EnhancementOption | null { - return EnhancementOptions.find(opt => opt.uuid === uuid) || null; -} - -// 获取指定类型的所有强化选项 -export function getEnhancementOptionsByType(type: number): EnhancementOption[] { - return EnhancementOptions.filter(opt => opt.type === type); -} - -// 获取指定UUID范围的强化选项 -export function getEnhancementOptionsByUuidRange(startUuid: number, endUuid: number): EnhancementOption[] { - const options: EnhancementOption[] = []; - EnhancementOptions.forEach(option => { - if (option.uuid >= startUuid && option.uuid <= endUuid) { - options.push(option); - } - }); - return options; -} \ No newline at end of file diff --git a/assets/script/game/common/config/LevelUp.ts.meta b/assets/script/game/common/config/LevelUp.ts.meta deleted file mode 100644 index 8e8ff46f..00000000 --- a/assets/script/game/common/config/LevelUp.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "bbef9ac6-154b-4e27-9c56-e964e27ef2d5", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/common/config/MissionEvent.ts b/assets/script/game/common/config/MissionEvent.ts deleted file mode 100644 index c0f99983..00000000 --- a/assets/script/game/common/config/MissionEvent.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* - * @Author: dgflash - * @Date: 2021-11-23 15:28:39 - * @LastEditors: dgflash - * @LastEditTime: 2022-01-26 16:42:00 - */ - -/** 游戏事件 */ -export enum MissionEvent { - CastHeroSkill = "CastHeroSkill", -} \ No newline at end of file diff --git a/assets/script/game/common/config/MissionEvent.ts.meta b/assets/script/game/common/config/MissionEvent.ts.meta deleted file mode 100644 index 22cff3a2..00000000 --- a/assets/script/game/common/config/MissionEvent.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "167eb23c-6d7e-4e30-96ca-06fec16eeaa8", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/common/config/RewardSet.ts b/assets/script/game/common/config/RewardSet.ts deleted file mode 100644 index 6382afb9..00000000 --- a/assets/script/game/common/config/RewardSet.ts +++ /dev/null @@ -1,304 +0,0 @@ -// 掉落物品接口 -export interface DropItem { - uuid: number; // 物品ID - num: number; // 数量 - type: number; // 类型 - quality?: number; // 品质 -} - -// 怪物类型 -export enum MonsterType { - Normal = 1, // 普通怪 - Elite = 2, // 精英怪 - Boss = 3, // Boss怪 -} - -// 掉落倍率配置 -export const DropRateConfig = { - [MonsterType.Normal]: 1, - [MonsterType.Elite]: 2, - [MonsterType.Boss]: 10, -} - -// Boss掉落示例(最多5个不同英雄的碎片) -// const bossDrops = getMonsterDrops(50, MonsterType.Boss, 1.2); - -// 精英怪掉落示例(最多2个不同英雄的碎片) -// const eliteDrops = getMonsterDrops(50, MonsterType.Elite, 1.2); - -// 普通怪掉落示例(最多1个英雄的碎片) -// const normalDrops = getMonsterDrops(50, MonsterType.Normal, 1.2); - -/** - * 获取怪物掉落 - * @param monsterLevel 怪物等级 - * @param monsterType 怪物类型 - * @param extraRate 额外倍率(比如玩家的幸运值加成) - * @returns 掉落物品数组 - */ -export function getMonsterDrops( - monsterLevel: number, - monsterType: MonsterType = MonsterType.Normal, - extraRate: number = 1 -): DropItem[] { - const drops: DropItem[] = []; - const baseMultiplier = getDropMultiplier(monsterLevel); - const monsterMultiplier = DropRateConfig[monsterType]; - const totalMultiplier = baseMultiplier * monsterMultiplier * extraRate; - - // 分离英雄碎片和道具配置 - const heroChipConfigs = DropConfigList.filter(config => config.type === dorptype.hero_chip); - const itemConfigs = DropConfigList.filter(config => config.type === dorptype.items); - - // 获取当前怪物类型可以掉落的英雄碎片数量 - const maxHeroChips = HeroChipDropCount[monsterType]; - - // 随机选择指定数量的英雄碎片 - const selectedHeroChips = shuffleArray(heroChipConfigs).slice(0, maxHeroChips); - - // 处理英雄碎片掉落 - for (const config of selectedHeroChips) { - if (monsterType === MonsterType.Normal) { - // 普通怪按概率掉落 - if (shouldDrop(config.dropRate * totalMultiplier)) { - const dropItem = calculateDrop(config, monsterLevel, monsterType); - if (dropItem) { - drops.push(dropItem); - } - } - } else { - // 精英怪和Boss必定掉落 - const dropItem = calculateDrop(config, monsterLevel, monsterType); - if (dropItem) { - drops.push(dropItem); - } - } - } - - // 处理道具掉落 - for (const config of itemConfigs) { - if (config.uuid === 9001) { - // 金币必定掉落 - const dropItem = calculateDrop(config, monsterLevel, monsterType); - if (dropItem) { - drops.push(dropItem); - } - } else { - // 其他道具按概率掉落 - if (shouldDrop(config.dropRate * totalMultiplier)) { - const dropItem = calculateDrop(config, monsterLevel, monsterType); - if (dropItem) { - drops.push(dropItem); - } - } - } - } - - return drops; -} - -/** - * 计算是否掉落 - * @param rate 掉落概率 - */ -function shouldDrop(rate: number): boolean { - return Math.random() * 100 <= Math.min(rate, 100); -} - -/** - * 计算单个物品掉落 - */ -function calculateDrop( - config: typeof DropConfigList[0], - monsterLevel: number, - monsterType: MonsterType -): DropItem | null { - // 计算掉落数量 - let num = Math.floor(Math.random() * config.num_max) + 1; - - // Boss额外保底 - if (monsterType === MonsterType.Boss && num < config.num_max * 0.3) { - num = Math.floor(config.num_max * 0.3); - } - - // 根据类型应用不同规则 - if (config.type === dorptype.hero_chip) { - // 英雄碎片特殊处理 - return { - uuid: config.uuid, - num: Math.min(num, 10), // 英雄碎片单次最多10个 - type: config.type, - quality: getHeroQuality(config.uuid) - }; - } else if (config.type === dorptype.items) { - // 普通道具处理 - return { - uuid: config.uuid, - num: num, - type: config.type - }; - } - - return null; -} - -/** - * 获取英雄品质(需要和heroSet配置关联) - */ -function getHeroQuality(heroId: number): number { - // 这里可以从heroSet中获取英雄品质 - return 1; // 默认品质 -} - -/** - * 获取掉落倍率 - * @param monsterLevel 怪物等级 - */ -export function getDropMultiplier(monsterLevel: number): number { - // 基础倍率 - let multiplier = Math.max(1, Math.floor(monsterLevel / 10)); - - // 等级档位加成 - if (monsterLevel >= 50) multiplier *= 1.5; - if (monsterLevel >= 100) multiplier *= 2; - - return multiplier; -} - -/** - * 批量生成掉落 - * @param times 掉落次数 - * @param params 掉落参数 - */ -export function batchGenerateDrops( - times: number, - monsterLevel: number, - monsterType: MonsterType = MonsterType.Normal, - extraRate: number = 1 -): DropItem[] { - const allDrops: DropItem[] = []; - - for (let i = 0; i < times; i++) { - const drops = getMonsterDrops(monsterLevel, monsterType, extraRate); - allDrops.push(...drops); - } - - // 合并相同物品 - return mergeDrops(allDrops); -} - -/** - * 合并相同物品的掉落 - */ -function mergeDrops(drops: DropItem[]): DropItem[] { - const mergedMap = new Map(); - - drops.forEach(drop => { - const key = `${drop.uuid}-${drop.type}`; - if (mergedMap.has(key)) { - const existing = mergedMap.get(key)!; - existing.num += drop.num; - } else { - mergedMap.set(key, {...drop}); - } - }); - - return Array.from(mergedMap.values()); -} - -/** - * 随机打乱数组 - */ -function shuffleArray(array: T[]): T[] { - const newArray = [...array]; - for (let i = newArray.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - [newArray[i], newArray[j]] = [newArray[j], newArray[i]]; - } - return newArray; -} - -export const BoxDrop={ - 1:[ - {uuid: 9001,dropRate: 10,num_max: 500000,type:0}, - {uuid: 9003,dropRate: 10,num_max: 500,type:0}, - ], - 2:[ - {uuid: 5001,dropRate: 5,num_max: 5,type:1}, // 圣盾战 quality 3 - {uuid: 5002,dropRate: 30,num_max: 5,type:1}, // 火女 quality 1 - {uuid: 5003,dropRate: 30,num_max: 5,type:1}, // 牧师 quality 1 - {uuid: 5004,dropRate: 15,num_max: 5,type:1}, // 自愈骑 quality 2 - {uuid: 5005,dropRate: 30,num_max: 5,type:1}, // quality 1 - {uuid: 5006,dropRate: 15,num_max: 5,type:1}, // quality 2 - {uuid: 5007,dropRate: 5,num_max: 5,type:1}, // 召唤师 quality 3 - {uuid: 5008,dropRate: 30,num_max: 5,type:1}, // quality 1 - {uuid: 5009,dropRate: 15,num_max: 5,type:1}, // quality 2 - {uuid: 5010,dropRate: 5,num_max: 5,type:1}, // quality 3 - {uuid: 5011,dropRate: 30,num_max: 5,type:1}, // quality 1 - ], - 3:[ - {uuid: 5001,dropRate: 5,num_max: 5,type:1}, // 圣盾战 quality 3 - {uuid: 5002,dropRate: 30,num_max: 5,type:1}, // 火女 quality 1 - {uuid: 5003,dropRate: 30,num_max: 5,type:1}, // 牧师 quality 1 - {uuid: 5004,dropRate: 15,num_max: 5,type:1}, // 自愈骑 quality 2 - {uuid: 5005,dropRate: 30,num_max: 5,type:1}, // quality 1 - {uuid: 5006,dropRate: 15,num_max: 5,type:1}, // quality 2 - {uuid: 5007,dropRate: 5,num_max: 5,type:1}, // 召唤师 quality 3 - {uuid: 5008,dropRate: 30,num_max: 5,type:1}, // quality 1 - {uuid: 5009,dropRate: 15,num_max: 5,type:1}, // quality 2 - {uuid: 5010,dropRate: 5,num_max: 5,type:1}, // quality 3 - {uuid: 5011,dropRate: 30,num_max: 5,type:1}, // quality 1 - ], -} -export const BoxDropCount={ - 1:3, - 2:3, - 3:3, -} -export const dorptype={ - hero_chip:1, - items:2, -} -export const HeroChipDropCount={ - 1:1, - 2:2, - 3:5, -} -//HeroChipList = [5001,5002,5003,5004,5005,5006,5007,5008,5009,5010,5011,5012,5013,5014,5015,5016,5017,5018,5019,5020,5021,5022,5023,5024,5025,5026,5027] -//ItemsList=[9001,1003] -//根据HeroChipList,ItemsList设置掉落概率 -//参考 heroSet.ts 中 HeroInfo对象数据的quality值来修改,DropConfigList中的dropRaten和um_max值,quality值越大,掉落概率越小,数量越少 -export const DropConfigList=[ - {uuid: 5001,dropRate: 5,num_max: 5,type:1}, // 圣盾战 quality 3 - {uuid: 5002,dropRate: 30,num_max: 5,type:1}, // 火女 quality 1 - {uuid: 5003,dropRate: 30,num_max: 5,type:1}, // 牧师 quality 1 - {uuid: 5004,dropRate: 15,num_max: 5,type:1}, // 自愈骑 quality 2 - {uuid: 5005,dropRate: 30,num_max: 5,type:1}, // quality 1 - {uuid: 5006,dropRate: 15,num_max: 5,type:1}, // quality 2 - {uuid: 5007,dropRate: 5,num_max: 5,type:1}, // 召唤师 quality 3 - {uuid: 5008,dropRate: 30,num_max: 5,type:1}, // quality 1 - {uuid: 5009,dropRate: 15,num_max: 5,type:1}, // quality 2 - {uuid: 5010,dropRate: 5,num_max: 5,type:1}, // quality 3 - {uuid: 5011,dropRate: 30,num_max: 5,type:1}, // quality 1 - {uuid: 9001,dropRate: 100,num_max: 5000,type:2}, - {uuid: 1003,dropRate: 20,num_max: 5,type:2}, -] -// 使用示例: -/* -// 单次掉落 -const drops = getMonsterDrops(50, MonsterType.Boss, 1.2); - -// 批量掉落(比如连续击杀多个怪物) -const batchDrops = batchGenerateDrops(5, 50, MonsterType.Elite, 1.2); - -// 处理掉落物品 -drops.forEach(item => { - if (item.type === dorptype.hero_chip) { - // 处理英雄碎片 - console.log(`获得英雄碎片: ${item.uuid} x${item.num}`); - } else if (item.type === dorptype.items) { - // 处理道具 - console.log(`获得道具: ${item.uuid} x${item.num}`); - } -}); -*/ diff --git a/assets/script/game/common/config/RewardSet.ts.meta b/assets/script/game/common/config/RewardSet.ts.meta deleted file mode 100644 index 54a8a492..00000000 --- a/assets/script/game/common/config/RewardSet.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "0388f0b8-c77d-4020-8b9a-dabf774f6502", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/common/config/SkillSet.ts b/assets/script/game/common/config/SkillSet.ts index f6f47399..98d6cb5f 100644 --- a/assets/script/game/common/config/SkillSet.ts +++ b/assets/script/game/common/config/SkillSet.ts @@ -240,7 +240,7 @@ export const geDebuffNum=()=>{ - in: 持续时间 - hit_num: 命中次数 - hit: 伤害倍数 - - hited: 伤害间隔 + - hitcd: 伤害间隔 - speed: 移动速度 - cost: 消耗值 @@ -267,19 +267,7 @@ export const geDebuffNum=()=>{ debuffs: [createDebuffConfig(DebuffAttr.STUN, 0, 1, 50)] */ export const HeroSkillList = [6001,6001,6001,6001,6001,6001] -export const getSkills=(quality:number)=>{ - const heroSkills: number[] = []; - - // 遍历所有技能,找出 for_hero 为 true 且品质匹配的技能 - Object.values(SkillSet).forEach(skill => { - // 检查技能是否有 for_hero 属性且为 true,同时品质匹配 - if (skill.for_hero === true && skill.quality === quality) { - heroSkills.push(skill.uuid); - } - }); - console.log("[SkillSet]:getSkills",heroSkills) - return heroSkills; -} + // Debuff配置接口 export interface DebuffConfig { debuff: DebuffAttr; // debuff类型 @@ -295,9 +283,8 @@ export interface BuffConfig { } // 技能配置接口 - 按照6001格式排列 export interface SkillConfig { - uuid:number,name:string,for_hero:boolean,sp_name:string,AtkedType:AtkedType,path:string,quality:QualitySet,TType:TType, - TGroup:TGroup,SType:SType,act:string,DTType:DTType,CdType:CdType,AType:AType,EType:EType, - ap:number,cd:number,in:number,hit_num:number,hit:number,hited:number,speed:number,cost:number,fname:string,flash:boolean,with:number,maxC:number, + uuid:number,name:string,sp_name:string,AtkedType:AtkedType,path:string,TGroup:TGroup,SType:SType,act:string,DTType:DTType, + ap:number,cd:number,in:number,hit_num:number,hit:number,hitcd:number,speed:number,cost:number,with:number, buffs:BuffConfig[],debuffs:DebuffConfig[],info:string,hero?:number } @@ -305,185 +292,158 @@ export interface SkillConfig { export const SkillSet: Record = { // ========== 基础攻击 ========== 6001-6099 6001: { - uuid:6001,name:"挥击",for_hero:false,sp_name:"atk_s1",AtkedType:AtkedType.atked,path:"3036",quality:QualitySet.GREEN,TType:TType.Frontline, - TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single,CdType:CdType.cd,AType:AType.fixedStart,EType:EType.animationEnd, - ap:100,cd:5,in:0.2,hit_num:1,hit:1,hited:0.2,speed:720,cost:10,fname:"max",flash:false,with:0,maxC:1, + uuid:6001,name:"挥击",sp_name:"atk_s1",AtkedType:AtkedType.atked,path:"3036",TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single, + ap:100,cd:5,in:0.2,hit_num:1,hit:1,hitcd:0.2,speed:720,cost:10,with:0, buffs:[],debuffs:[],info:"向最前方敌人扔出石斧,造成100%攻击的伤害" }, 6002: { - uuid:6002,name:"挥击",for_hero:false,sp_name:"atk2",AtkedType:AtkedType.atked,path:"3036",quality:QualitySet.GREEN,TType:TType.Frontline, - TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single,CdType:CdType.cd,AType:AType.fixedStart,EType:EType.animationEnd, - ap:100,cd:5,in:0,hit_num:1,hit:1,hited:0.2,speed:720,cost:10,fname:"max",flash:false,with:0,maxC:1, + uuid:6002,name:"挥击",sp_name:"atk2",AtkedType:AtkedType.atked,path:"3036",TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single, + ap:100,cd:5,in:0,hit_num:1,hit:1,hitcd:0.2,speed:720,cost:10,with:0, buffs:[],debuffs:[],info:"向最前方敌人扔出石斧,造成100%攻击的伤害" }, 6003: { - uuid:6003,name:"射击",for_hero:false,sp_name:"arrow",AtkedType:AtkedType.atked,path:"3037",quality:QualitySet.GREEN,TType:TType.Frontline, - TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single,CdType:CdType.cd,AType:AType.linear,EType:EType.collision, - ap:100,cd:5,in:0,hit_num:1,hit:1,hited:3,speed:720,cost:10,fname:"max",flash:false,with:0,maxC:1, + uuid:6003,name:"射击",sp_name:"arrow",AtkedType:AtkedType.atked,path:"3037",TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single, + ap:100,cd:5,in:0,hit_num:1,hit:1,hitcd:3,speed:720,cost:10,with:0, buffs:[],debuffs:[],info:"向最前方敌人释放箭矢,造成100%攻击的伤害" }, 6004: { - uuid:6004,name:"冰球",for_hero:false,sp_name:"am_ice",AtkedType:AtkedType.ice,path:"3034",quality:QualitySet.GREEN,TType:TType.Frontline, - TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single,CdType:CdType.cd,AType:AType.linear,EType:EType.collision, - ap:100,cd:5,in:0,hit_num:1,hit:1,hited:3,speed:720,cost:10,fname:"max",flash:false,with:0,maxC:1, + uuid:6004,name:"冰球",sp_name:"am_ice",AtkedType:AtkedType.ice,path:"3034",TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single, + ap:100,cd:5,in:0,hit_num:1,hit:1,hitcd:3,speed:720,cost:10,with:0, buffs:[],debuffs:[],info:"向最前方敌人释放寒冰弹,造成100%攻击的伤害" }, 6005: { - uuid:6005,name:"火球术",for_hero:true,sp_name:"atk_fires",AtkedType:AtkedType.fire,path:"3039",quality:QualitySet.BLUE,TType:TType.Frontline, - TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single,CdType:CdType.cd,AType:AType.linear,EType:EType.collision, - ap:100,cd:5,in:1,hit_num:1,hit:2,hited:0.3,speed:720,cost:10,fname:"max",flash:false,with:90,maxC:1, + uuid:6005,name:"火球术",sp_name:"atk_fires",AtkedType:AtkedType.fire,path:"3039",TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single, + ap:100,cd:5,in:1,hit_num:1,hit:2,hitcd:0.3,speed:720,cost:10,with:90, buffs:[],debuffs:[{debuff:DebuffAttr.STUN,dev:0,deC:1,deR:50}],info:"召唤大火球攻击前方所有敌人,造成300%攻击的伤害,有一定几率施加灼烧" }, 6006: { - uuid:6006,name:"能量波",for_hero:false,sp_name:"am_blue",AtkedType:AtkedType.ice,path:"3034",quality:QualitySet.GREEN,TType:TType.Frontline, - TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single,CdType:CdType.cd,AType:AType.linear,EType:EType.collision, - ap:100,cd:5,in:0,hit_num:1,hit:1,hited:3,speed:720,cost:10,fname:"max",flash:false,with:0,maxC:1, + uuid:6006,name:"能量波",sp_name:"am_blue",AtkedType:AtkedType.ice,path:"3034",TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single, + ap:100,cd:5,in:0,hit_num:1,hit:1,hitcd:3,speed:720,cost:10,with:0, buffs:[],debuffs:[],info:"向最前方敌人释放寒冰弹,造成100%攻击的伤害" }, 6007: { - uuid:6007,name:"圣光波",for_hero:true,sp_name:"am_yellow",AtkedType:AtkedType.fire,path:"3039",quality:QualitySet.BLUE,TType:TType.Frontline, - TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single,CdType:CdType.cd,AType:AType.linear,EType:EType.collision, - ap:100,cd:5,in:0,hit_num:1,hit:2,hited:0.3,speed:720,cost:10,fname:"max",flash:false,with:90,maxC:1, + uuid:6007,name:"圣光波",sp_name:"am_yellow",AtkedType:AtkedType.fire,path:"3039",TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single, + ap:100,cd:5,in:0,hit_num:1,hit:2,hitcd:0.3,speed:720,cost:10,with:90, buffs:[],debuffs:[{debuff:DebuffAttr.STUN,dev:0,deC:1,deR:50}],info:"召唤大火球攻击前方所有敌人,造成300%攻击的伤害,有一定几率施加灼烧" }, // ========== 大招 ========== 6100-6199 6101: { - uuid:6101,name:"护盾",for_hero:true,sp_name:"shield",AtkedType:AtkedType.atked,path:"3045",quality:QualitySet.PURPLE,TType:TType.Frontline, - TGroup:TGroup.Team,SType:SType.shield,act:"max",DTType:DTType.single,CdType:CdType.cd,AType:AType.fixedStart,EType:EType.animationEnd, - ap:0,cd:5,in:0,hit_num:1,hit:1,hited:3,speed:720,cost:10,fname:"max",flash:false,with:0,maxC:1, + uuid:6101,name:"护盾",sp_name:"shield",AtkedType:AtkedType.atked,path:"3045",TGroup:TGroup.Team,SType:SType.shield,act:"max",DTType:DTType.single, + ap:0,cd:5,in:0,hit_num:1,hit:1,hitcd:3,speed:720,cost:10,with:0, buffs:[{buff:BuffAttr.SHIELD,buV:2,buC:0,buR:100}],debuffs:[],info:"为最前排队友召唤一个可以抵御2次攻击的圣盾(最高叠加到6次)" }, 6102: { - uuid:6102,name:"寒冰箭",for_hero:true,sp_name:"arrow_blue",AtkedType:AtkedType.ice,path:"3060",quality:QualitySet.BLUE,TType:TType.Frontline, - TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single,CdType:CdType.cd,AType:AType.linear,EType:EType.collision, - ap:100,cd:1,in:0,hit_num:1,hit:1,hited:0.3,speed:720,cost:10,fname:"max",flash:false,with:90,maxC:1, + uuid:6102,name:"寒冰箭",sp_name:"arrow_blue",AtkedType:AtkedType.ice,path:"3060",TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single, + ap:100,cd:1,in:0,hit_num:1,hit:1,hitcd:0.3,speed:720,cost:10,with:90, buffs:[],debuffs:[{debuff:DebuffAttr.FROST,dev:1,deC:0,deR:100}],info:"召唤大火球攻击前方所有敌人,造成200%攻击的伤害,20%几率冰冻敌人" }, 6103: { - uuid:6103,name:"治疗",for_hero:true,sp_name:"heath_small",AtkedType:AtkedType.atked,path:"3056",quality:QualitySet.BLUE,TType:TType.Frontline, - TGroup:TGroup.Team,SType:SType.heal,act:"max",DTType:DTType.single,CdType:CdType.cd,AType:AType.StartEnd,EType:EType.timeEnd, - ap:0,cd:5,in:0,hit_num:1,hit:0,hited:0,speed:0,cost:10,fname:"max",flash:false,with:0,maxC:1, + uuid:6103,name:"治疗",sp_name:"heath_small",AtkedType:AtkedType.atked,path:"3056",TGroup:TGroup.Team,SType:SType.heal,act:"max",DTType:DTType.single, + ap:0,cd:5,in:0,hit_num:1,hit:0,hitcd:0,speed:0,cost:10,with:0, buffs:[{buff:BuffAttr.HP,buV:20,buC:0,buR:100}],debuffs:[],info:"回复最前排队友10%最大生命值的生命" }, 6104: { - uuid:6104,name:"烈焰斩击",for_hero:false,sp_name:"max_fireatk",AtkedType:AtkedType.fire,path:"3036",quality:QualitySet.GREEN,TType:TType.Frontline, - TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single,CdType:CdType.cd,AType:AType.fixedStart,EType:EType.animationEnd, - ap:100,cd:5,in:0,hit_num:1,hit:1,hited:0.2,speed:720,cost:10,fname:"max",flash:false,with:0,maxC:1, + uuid:6104,name:"烈焰斩击",sp_name:"max_fireatk",AtkedType:AtkedType.fire,path:"3036",TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single, + ap:100,cd:5,in:0,hit_num:1,hit:1,hitcd:0.2,speed:720,cost:10,with:0, buffs:[],debuffs:[],info:"向最前方敌人扔出石斧,造成100%攻击的伤害" }, 6105: { - uuid:6105,name:"烈火护盾",for_hero:true,sp_name:"max_firedun",AtkedType:AtkedType.atked,path:"3061",quality:QualitySet.PURPLE,TType:TType.Frontline, - TGroup:TGroup.Ally,SType:SType.damage,act:"atk",DTType:DTType.range,CdType:CdType.power,AType:AType.fixedStart,EType:EType.timeEnd, - ap:100,cd:5,in:0,hit_num:1,hit:1,hited:1,speed:80,cost:10,fname:"max",flash:false,with:90,maxC:1, + uuid:6105,name:"烈火护盾",sp_name:"max_firedun",AtkedType:AtkedType.atked,path:"3061",TGroup:TGroup.Ally,SType:SType.damage,act:"atk",DTType:DTType.range, + ap:100,cd:5,in:0,hit_num:1,hit:1,hitcd:1,speed:80,cost:10,with:90, buffs:[],debuffs:[],info:"召唤烈焰保护英雄,持续10秒,每秒对范围内的敌人造成100%伤害" }, 6106: { - uuid:6106,name:"龙卷风",for_hero:true,sp_name:"bwind",AtkedType:AtkedType.wind,path:"3065",quality:QualitySet.BLUE,TType:TType.Frontline, - TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single,CdType:CdType.power,AType:AType.linear,EType:EType.collision, - ap:100,cd:5,in:0,hit_num:1,hit:1,hited:1,speed:360,cost:10,fname:"max",flash:false,with:90,maxC:1, + uuid:6106,name:"龙卷风",sp_name:"bwind",AtkedType:AtkedType.wind,path:"3065",TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single, + ap:100,cd:5,in:0,hit_num:1,hit:1,hitcd:1,speed:360,cost:10,with:90, buffs:[],debuffs:[{debuff:DebuffAttr.BACK,dev:0,deC:0,deR:100}],info:"召唤大火球攻击前方所有敌人,造成200%攻击的伤害,50%几率击退敌人" }, 6107: { - uuid:6107,name:"烈焰射击",for_hero:false,sp_name:"arrow_yellow",AtkedType:AtkedType.fire,path:"3014",quality:QualitySet.BLUE,TType:TType.Frontline, - TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single,CdType:CdType.power,AType:AType.linear,EType:EType.collision, - ap:100,cd:5,in:0,hit_num:1,hit:1,hited:0.3,speed:720,cost:10,fname:"max",flash:false,with:90,maxC:1, + uuid:6107,name:"烈焰射击",sp_name:"arrow_yellow",AtkedType:AtkedType.fire,path:"3014",TGroup:TGroup.Enemy,SType:SType.damage,act:"atk",DTType:DTType.single, + ap:100,cd:5,in:0,hit_num:1,hit:1,hitcd:0.3,speed:720,cost:10,with:90, buffs:[],debuffs:[{debuff:DebuffAttr.STUN,dev:0.5,deC:0,deR:50}],info:"召唤大火球攻击前方所有敌人,造成200%攻击的伤害,20%几率眩晕敌人" }, 6108: { - uuid:6108,name:"火墙",for_hero:true,sp_name:"max_fwall",AtkedType:AtkedType.atked,path:"3040",quality:QualitySet.PURPLE,TType:TType.Frontline, - TGroup:TGroup.Ally,SType:SType.damage,act:"max",DTType:DTType.range,CdType:CdType.cd,AType:AType.fixedEnd,EType:EType.timeEnd, - ap:50,cd:5,in:0,hit_num:1,hit:1,hited:1,speed:720,cost:10,fname:"max",flash:false,with:90,maxC:1, + uuid:6108,name:"火墙",sp_name:"max_fwall",AtkedType:AtkedType.atked,path:"3040",TGroup:TGroup.Ally,SType:SType.damage,act:"max",DTType:DTType.range, + ap:50,cd:5,in:0,hit_num:1,hit:1,hitcd:1,speed:720,cost:10,with:90, buffs:[],debuffs:[],info:"在最前方敌人位置,召唤一堵火墙,持续10秒,每秒造成50%攻击伤害" }, 6109: { - uuid:6109,name:"冰刺",for_hero:true,sp_name:"icez",AtkedType:AtkedType.atked,path:"3049",quality:QualitySet.PURPLE,TType:TType.Frontline, - TGroup:TGroup.Ally,SType:SType.damage,act:"max",DTType:DTType.range,CdType:CdType.power,AType:AType.fixedEnd,EType:EType.animationEnd, - ap:300,cd:5,in:0,hit_num:1,hit:1,hited:0.3,speed:720,cost:10,fname:"max",flash:false,with:90,maxC:1, + uuid:6109,name:"冰刺",sp_name:"icez",AtkedType:AtkedType.atked,path:"3049",TGroup:TGroup.Ally,SType:SType.damage,act:"max",DTType:DTType.range, + ap:300,cd:5,in:0,hit_num:1,hit:1,hitcd:0.3,speed:720,cost:10,with:90, buffs:[],debuffs:[{debuff:DebuffAttr.FROST,dev:0,deC:0,deR:100}],info:"在最前方敌人位置,召唤冰刺攻击敌人,造成200%攻击的伤害,20%几率冰冻敌人" }, 6110: { - uuid:6110,name:"潮汐",for_hero:true,sp_name:"watert",AtkedType:AtkedType.atked,path:"3070",quality:QualitySet.PURPLE,TType:TType.Frontline, - TGroup:TGroup.Ally,SType:SType.damage,act:"max",DTType:DTType.range,CdType:CdType.power,AType:AType.fixedEnd,EType:EType.animationEnd, - ap:100,cd:5,in:0,hit_num:1,hit:1,hited:0.3,speed:720,cost:10,fname:"max",flash:false,with:90,maxC:1, + uuid:6110,name:"潮汐",sp_name:"watert",AtkedType:AtkedType.atked,path:"3070",TGroup:TGroup.Ally,SType:SType.damage,act:"max",DTType:DTType.range, + ap:100,cd:5,in:0,hit_num:1,hit:1,hitcd:0.3,speed:720,cost:10,with:90, buffs:[],debuffs:[{debuff:DebuffAttr.BACK,dev:0,deC:0,deR:100}],info:"在最前方敌人位置,召唤水柱攻击敌人,每秒造成100%攻击的伤害,50%几率击退敌人" }, 6111: { - uuid:6111,name:"陨石术",for_hero:true,sp_name:"max_yunshi",AtkedType:AtkedType.fire,path:"3123",quality:QualitySet.PURPLE,TType:TType.Frontline, - TGroup:TGroup.Ally,SType:SType.damage,act:"max",DTType:DTType.range,CdType:CdType.power,AType:AType.fixedEnd,EType:EType.animationEnd, - ap:500,cd:5,in:0,hit_num:0,hit:1,hited:0.3,speed:720,cost:10,fname:"max",flash:false,with:90,maxC:1, + uuid:6111,name:"陨石术",sp_name:"max_yunshi",AtkedType:AtkedType.fire,path:"3123",TGroup:TGroup.Ally,SType:SType.damage,act:"max",DTType:DTType.range, + ap:500,cd:5,in:0,hit_num:0,hit:1,hitcd:0.3,speed:720,cost:10,with:90, buffs:[],debuffs:[],info:"在最前方敌人位置,召唤陨石攻击敌人,造成500%攻击的伤害" }, 6112: { - uuid:6112,name:"冰墙",for_hero:false,sp_name:"icet",AtkedType:AtkedType.atked,path:"3050",quality:QualitySet.BLUE,TType:TType.Frontline, - TGroup:TGroup.Enemy,SType:SType.damage,act:"max",DTType:DTType.range,CdType:CdType.cd,AType:AType.linear,EType:EType.animationEnd, - ap:400,cd:5,in:0,hit_num:1,hit:1,hited:0.3,speed:720,cost:10,fname:"max",flash:false,with:90,maxC:1, + uuid:6112,name:"冰墙",sp_name:"icet",AtkedType:AtkedType.atked,path:"3050",TGroup:TGroup.Enemy,SType:SType.damage,act:"max",DTType:DTType.range, + ap:400,cd:5,in:0,hit_num:1,hit:1,hitcd:0.3,speed:720,cost:10,with:90, buffs:[],debuffs:[{debuff:DebuffAttr.BACK,dev:0,deC:0,deR:100}],info:"在最前方敌人位置,召唤冰墙攻击敌人,造成200%攻击的伤害,50%几率击退敌人" }, 6113: { - uuid:6113,name:"剑雨",for_hero:true,sp_name:"max_jianyu",AtkedType:AtkedType.fire,path:"3123",quality:QualitySet.PURPLE,TType:TType.Frontline, - TGroup:TGroup.Ally,SType:SType.damage,act:"max",DTType:DTType.range,CdType:CdType.power,AType:AType.fixedEnd,EType:EType.animationEnd, - ap:500,cd:5,in:0,hit_num:0,hit:1,hited:0.3,speed:720,cost:10,fname:"max",flash:false,with:90,maxC:1, + uuid:6113,name:"剑雨",sp_name:"max_jianyu",AtkedType:AtkedType.fire,path:"3123",TGroup:TGroup.Ally,SType:SType.damage,act:"max",DTType:DTType.range, + ap:500,cd:5,in:0,hit_num:0,hit:1,hitcd:0.3,speed:720,cost:10,with:90, buffs:[],debuffs:[],info:"在最前方敌人位置,召唤陨石攻击敌人,造成500%攻击的伤害" }, //召唤取消 - // 6031:{uuid:6031,name:"召唤骷髅",for_hero:true,sp_name:"zhaohuan",AtkedType:AtkedType.atked,path:"3018",quality:QualitySet.BLUE, TType:TType.Frontline,maxC:1, - // TGroup:TGroup.Self,SType:SType.zhaohuan,act:"max",DTType:DTType.single,CdType:CdType.power,AType:AType.fixedStart,EType:EType.animationEnd,fname:"max_blue",flash:true,with:90, - // debuff:0,deV:0,deC:0,deR:100,in:0.8,ap:70,cd:60,in:0,hit_num:1,hit:1,hited:1,speed:720,hero:5221,cost:10,info:"召唤一个骷髅战士为我方而战"}, + // 6031:{uuid:6031,name:"召唤骷髅",sp_name:"zhaohuan",AtkedType:AtkedType.atked,path:"3018", + // TGroup:TGroup.Self,SType:SType.zhaohuan,act:"max",DTType:DTType.single,fname:"max_blue",flash:true,with:90, + // debuff:0,deV:0,deC:0,deR:100,in:0.8,ap:70,cd:60,in:0,hit_num:1,hit:1,hitcd:1,speed:720,hero:5221,cost:10,info:"召唤一个骷髅战士为我方而战"}, // ========== 超必杀 ========== 6200-6299 6201: { - uuid:6201,name:"满天火雨",for_hero:true,sp_name:"atk_fires",AtkedType:AtkedType.atked,path:"3101",quality:QualitySet.ORANGE,TType:TType.Frontline, - TGroup:TGroup.Ally,SType:SType.damage,act:"atk",DTType:DTType.range,CdType:CdType.power,AType:AType.fixedEnd,EType:EType.animationEnd, - ap:100,cd:5,in:2,hit_num:1,hit:5,hited:0.3,speed:720,cost:10,fname:"max",flash:false,with:90,maxC:5, + uuid:6201,name:"满天火雨",sp_name:"atk_fires",AtkedType:AtkedType.atked,path:"3101",TGroup:TGroup.Ally,SType:SType.damage,act:"atk",DTType:DTType.range, + ap:100,cd:5,in:2,hit_num:1,hit:5,hitcd:0.3,speed:720,cost:10,with:90, buffs:[],debuffs:[],info:"在最前方敌人位置,召唤陨石攻击敌人,造成500%攻击的伤害" }, 6202: { - uuid:6202,name:"龙卷风爆",for_hero:true,sp_name:"bwind",AtkedType:AtkedType.atked,path:"3069",quality:QualitySet.ORANGE,TType:TType.Frontline, - TGroup:TGroup.Ally,SType:SType.damage,act:"atk",DTType:DTType.range,CdType:CdType.power,AType:AType.linear,EType:EType.collision, - ap:100,cd:5,in:0,hit_num:1,hit:1,hited:1,speed:360,cost:10,fname:"max",flash:false,with:90,maxC:5, + uuid:6202,name:"龙卷风爆",sp_name:"bwind",AtkedType:AtkedType.atked,path:"3069",TGroup:TGroup.Ally,SType:SType.damage,act:"atk",DTType:DTType.range, + ap:100,cd:5,in:0,hit_num:1,hit:1,hitcd:1,speed:360,cost:10,with:90, buffs:[],debuffs:[{debuff:DebuffAttr.BACK,dev:0,deC:0,deR:50}],info:"召唤大火球攻击前方所有敌人,造成200%攻击的伤害,50%几率击退敌人" }, 6203: { - uuid:6203,name:"大潮汐",for_hero:true,sp_name:"watert",AtkedType:AtkedType.atked,path:"3070",quality:QualitySet.ORANGE,TType:TType.Frontline, - TGroup:TGroup.Ally,SType:SType.damage,act:"atk",DTType:DTType.range,CdType:CdType.power,AType:AType.fixedEnd,EType:EType.animationEnd, - ap:100,cd:5,in:0,hit_num:1,hit:1,hited:0.3,speed:720,cost:10,fname:"max",flash:false,with:90,maxC:5, + uuid:6203,name:"大潮汐",sp_name:"watert",AtkedType:AtkedType.atked,path:"3070",TGroup:TGroup.Ally,SType:SType.damage,act:"atk",DTType:DTType.range, + ap:100,cd:5,in:0,hit_num:1,hit:1,hitcd:0.3,speed:720,cost:10,with:90, buffs:[],debuffs:[{debuff:DebuffAttr.BACK,dev:0,deC:0,deR:50}],info:"召唤水柱攻击敌人,每秒造成100%攻击的伤害,50%几率击退敌人" }, // ==========增强型技能,被动技能,========== 6300-6399 6301: { - uuid:6301,name:"攻击生命强化Ⅰ",for_hero:true,sp_name:"max_ap",AtkedType:AtkedType.atked,path:"3065",quality:QualitySet.ORANGE,TType:TType.Frontline, - TGroup:TGroup.Ally,SType:SType.buff,act:"atk",DTType:DTType.single,CdType:CdType.cd,AType:AType.fixedEnd,EType:EType.animationEnd, - ap:100,cd:5,in:0,hit_num:1,hit:1,hited:0.3,speed:720,cost:10,fname:"max",flash:false,with:90,maxC:1, + uuid:6301,name:"攻击生命强化Ⅰ",sp_name:"max_ap",AtkedType:AtkedType.atked,path:"3065",TGroup:TGroup.Ally,SType:SType.buff,act:"atk",DTType:DTType.single, + ap:100,cd:5,in:0,hit_num:1,hit:1,hitcd:0.3,speed:720,cost:10,with:90, buffs:[{buff:BuffAttr.AP,buV:20,buC:0,buR:100},{buff:BuffAttr.HP,buV:20,buC:0,buR:100}],debuffs:[],info:"增加20%攻击力和生命值" }, 6302: { - uuid:6302,name:"攻击生命强化Ⅱ",for_hero:true,sp_name:"max_ap",AtkedType:AtkedType.atked,path:"3093",quality:QualitySet.ORANGE,TType:TType.Frontline, - TGroup:TGroup.Ally,SType:SType.buff,act:"atk",DTType:DTType.single,CdType:CdType.cd,AType:AType.fixedEnd,EType:EType.animationEnd, - ap:100,cd:5,in:0,hit_num:1,hit:1,hited:0.3,speed:720,cost:10,fname:"max",flash:false,with:90,maxC:1, + uuid:6302,name:"攻击生命强化Ⅱ",sp_name:"max_ap",AtkedType:AtkedType.atked,path:"3093",TGroup:TGroup.Ally,SType:SType.buff,act:"atk",DTType:DTType.single, + ap:100,cd:5,in:0,hit_num:1,hit:1,hitcd:0.3,speed:720,cost:10,with:90, buffs:[{buff:BuffAttr.AP,buV:40,buC:0,buR:100},{buff:BuffAttr.HP,buV:40,buC:0,buR:100}],debuffs:[],info:"增加40%攻击力和生命值" }, 6303: { - uuid:6303,name:"攻击生命强化Ⅲ",for_hero:true,sp_name:"max_ap",AtkedType:AtkedType.atked,path:"3065",quality:QualitySet.ORANGE,TType:TType.Frontline, - TGroup:TGroup.Ally,SType:SType.buff,act:"atk",DTType:DTType.single,CdType:CdType.cd,AType:AType.fixedEnd,EType:EType.animationEnd, - ap:100,cd:5,in:0,hit_num:1,hit:1,hited:0.3,speed:720,cost:10,fname:"max",flash:false,with:90,maxC:1, + uuid:6303,name:"攻击生命强化Ⅲ",sp_name:"max_ap",AtkedType:AtkedType.atked,path:"3065",TGroup:TGroup.Ally,SType:SType.buff,act:"atk",DTType:DTType.single, + ap:100,cd:5,in:0,hit_num:1,hit:1,hitcd:0.3,speed:720,cost:10,with:90, buffs:[{buff:BuffAttr.AP,buV:60,buC:0,buR:100},{buff:BuffAttr.HP,buV:60,buC:0,buR:100}],debuffs:[],info:"增加60%攻击力和生命值" }, 6304: { - uuid:6304,name:"攻击生命强化Ⅳ",for_hero:true,sp_name:"max_ap",AtkedType:AtkedType.atked,path:"3065",quality:QualitySet.ORANGE,TType:TType.Frontline, - TGroup:TGroup.Ally,SType:SType.buff,act:"atk",DTType:DTType.single,CdType:CdType.cd,AType:AType.fixedEnd,EType:EType.animationEnd, - ap:100,cd:5,in:0,hit_num:1,hit:1,hited:0.3,speed:720,cost:10,fname:"max",flash:false,with:90,maxC:1, + uuid:6304,name:"攻击生命强化Ⅳ",sp_name:"max_ap",AtkedType:AtkedType.atked,path:"3065",TGroup:TGroup.Ally,SType:SType.buff,act:"atk",DTType:DTType.single, + ap:100,cd:5,in:0,hit_num:1,hit:1,hitcd:0.3,speed:720,cost:10,with:90, buffs:[{buff:BuffAttr.AP,buV:80,buC:0,buR:100},{buff:BuffAttr.HP,buV:80,buC:0,buR:100}],debuffs:[],info:"增加80%攻击力和生命值" }, diff --git a/assets/script/game/hero/HeroConComp.ts b/assets/script/game/hero/HeroConComp.ts index b8fa3067..c317cae5 100644 --- a/assets/script/game/hero/HeroConComp.ts +++ b/assets/script/game/hero/HeroConComp.ts @@ -2,12 +2,8 @@ import { _decorator } from "cc"; import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp"; import { GameEvent } from "../common/config/GameEvent"; -import { EquipAttrTarget, EquipInfo } from "../common/config/Equips"; import { HeroViewComp } from "./HeroViewComp"; import { BuffAttr } from "../common/config/SkillSet"; -import { EnhancementType } from "../common/config/LevelUp"; -import { TalentList } from "../common/config/TalentSet"; -import { SuperCardsType } from "../common/config/CardSet"; const { ccclass, property } = _decorator; diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index 929bea80..0292fce8 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -9,13 +9,10 @@ import { BuffAttr, DebuffAttr, geDebuffNum, getBuffNum, SkillSet, TGroup, TType import { BuffComp } from "./BuffComp"; import { oops } from "db://oops-framework/core/Oops"; import { GameEvent } from "../common/config/GameEvent"; -import { EquipSpecialAttr } from "../common/config/Equips"; import { FightSet, getExpDrops, getStoneDrops, TooltipTypes } from "../common/config/Mission"; import { RandomManager } from "db://oops-framework/core/common/random/RandomManager"; -import { EnhancementType } from "../common/config/LevelUp"; import { Items, MonsterDropManager } from "../common/config/Items"; import { HeroInfo } from "../common/config/heroSet"; -import { finishCurrGuide, GuideConfig, startGuide } from "../common/config/Guide"; const { ccclass, property } = _decorator; @@ -578,7 +575,6 @@ export class HeroViewComp extends CCComp { switch(skill.act){ case "max": this.as.max() - this.BUFFCOMP.max_show(skill.fname) this.BUFFCOMP.tooltip(TooltipTypes.skill,skill.name,skill_id) break case "atk": diff --git a/assets/script/game/hero/SkillConComp.ts b/assets/script/game/hero/SkillConComp.ts index 91bff23c..f809ff55 100644 --- a/assets/script/game/hero/SkillConComp.ts +++ b/assets/script/game/hero/SkillConComp.ts @@ -1,6 +1,6 @@ import { _decorator, Component, Node, ProgressBar, v3, Vec3 } from 'cc'; import { HeroViewComp } from './HeroViewComp'; -import { BuffAttr, CdType, DTType, SKILL_CONST, SkillSet, SType, TGroup, TType } from '../common/config/SkillSet'; +import { BuffAttr,SKILL_CONST, SkillSet, SType, TGroup, } from '../common/config/SkillSet'; import { Skill } from '../skills/Skill'; import { ecs } from 'db://oops-framework/libs/ecs/ECS'; import { oops } from 'db://oops-framework/core/Oops'; @@ -41,15 +41,14 @@ export class SkillConComp extends CCComp { if(this.HeroView.DEBUFF_STUN <= 0&&this.HeroView.DEBUFF_FROST <= 0) { let skills=this.HeroView.skills for(let i=0;i (i==0?this.HeroView.Attrs[BuffAttr.ATK_CD]:skills[i].cd_max)){ - if(SkillSet[skills[i].uuid].SType==SType.damage&&this.HeroView.is_atking){ - this.castSkill(SkillSet[skills[i].uuid]) - this.HeroView.skills[i].cd = 0 - } - } + skills[i].cd += dt; + if(skills[i].cd > (i==0?this.HeroView.Attrs[BuffAttr.ATK_CD]:skills[i].cd_max)){ + if(SkillSet[skills[i].uuid].SType==SType.damage&&this.HeroView.is_atking){ + this.castSkill(SkillSet[skills[i].uuid]) + this.HeroView.skills[i].cd = 0 + } } + } if(skills[1]){ if(this.HeroView.fac==FacSet.HERO) { diff --git a/assets/script/game/map/GoodsComp.ts b/assets/script/game/map/GoodsComp.ts deleted file mode 100644 index 69f74d59..00000000 --- a/assets/script/game/map/GoodsComp.ts +++ /dev/null @@ -1,168 +0,0 @@ -import { _decorator, Component, Node, Label, Sprite, SpriteFrame, resources } from 'cc'; -import { Goods, GType, CType } from '../common/config/Goods'; -import { Items } from '../common/config/Items'; -import { NumberFormatter } from '../common/config/BoxSet'; -import { smc } from '../common/SingletonModuleComp'; -import { oops } from 'db://oops-framework/core/Oops'; -const { ccclass, property } = _decorator; - -@ccclass('GoodsComp') -export class GoodsComp extends Component { - // 数据(仅用于更新显示) - private goodsData: any = null; - private itemData: any = null; - private currentUuid: number = 0; - goods_count_key:number=-1 - - /** - * 更新物品数据 - * @param uuid 物品UUID - */ - update_data(uuid: number,key:number) { - this.goods_count_key=key - this.currentUuid = uuid; - this.goodsData = Goods[uuid]; - - if (!this.goodsData) { - console.error(`Goods data not found for uuid: ${uuid}`); - return; - } - - this.itemData = Items[this.goodsData.i_uuid]; - if (!this.itemData) { - console.error(`Item data not found for i_uuid: ${this.goodsData.i_uuid}`); - return; - } - - this.updateIcon(); - this.updateTexts(); - this.update_btn() - this.update_max_num() - } - private update_btn( ){ - if(smc.shop.goods_count[this.goods_count_key]<=0){ - this.node.getChildByName("btn").getChildByName("ad").active=false - this.node.getChildByName("btn").getChildByName("free").active=false - this.node.getChildByName("btn").getChildByName("diamond").active=false - this.node.getChildByName("btn").getChildByName("gold").active=false - this.node.getChildByName("btn").getChildByName("nothing").active=true - this.node.getChildByName("btn").getComponent(Sprite).grayscale=true - return - } - this.node.getChildByName("btn").getChildByName("nothing").active=false - this.node.getChildByName("btn").getComponent(Sprite).grayscale=false - this.node.getChildByName("btn").getChildByName("ad").active=this.goodsData.c_type==CType.AD - this.node.getChildByName("btn").getChildByName("free").active=this.goodsData.c_type==CType.FREE - this.node.getChildByName("btn").getChildByName("diamond").getChildByName("num").getComponent(Label).string=NumberFormatter.formatNumber(this.goodsData.cast) - this.node.getChildByName("btn").getChildByName("gold").getChildByName("num").getComponent(Label).string=NumberFormatter.formatNumber(this.goodsData.cast) - this.node.getChildByName("btn").getChildByName("diamond").active=this.goodsData.c_type==CType.DIAMOND - this.node.getChildByName("btn").getChildByName("gold").active=this.goodsData.c_type==CType.GOLD - - } - /** - * 更新图标 - */ - private update_max_num(){ - this.node.getChildByName("max").getComponent(Label).string=NumberFormatter.formatNumber(smc.shop.goods_count[this.goods_count_key]) - - } - private updateIcon() { - const iconSprite = this.node.getChildByName("icon")?.getComponent(Sprite); - if (!iconSprite) return; - const path = `gui/items/${this.itemData.path}`; - resources.load(path, SpriteFrame, (err, spriteFrame) => { - if (err) { - console.warn(`icon load failed: ${path}`, err); - return; - } - iconSprite.spriteFrame = spriteFrame; - }); - } - - /** 仅更新文字(名称与数量) */ - private updateTexts() { - // 名称 - const nameLabel = this.node.getChildByName("name")?.getComponent(Label); - if (nameLabel) nameLabel.string = this.itemData.name; - // 数量(根节点下的 num) - const mainNumLabel = this.node.getChildByName("num")?.getComponent(Label); - if (mainNumLabel) mainNumLabel.string = NumberFormatter.formatNumber(this.goodsData.num); - } - to_buy(){ - if(smc.shop.goods_count[this.goods_count_key]<=0){ - oops.gui.toast("商品已售罄") - return - } - if(this.goodsData.c_type==CType.AD){ - this.do_ad() - }else if(this.goodsData.c_type==CType.FREE){ - this.do_free() - }else if(this.goodsData.c_type==CType.DIAMOND){ - if(smc.data.diamond { - if (err) { - console.error("[ItemComp]: Failed to load item icon", iconPath, err); - return; - } - // console.log("[ItemComp]: setItemIcon", iconPath, spriteFrame); - this.node.getChildByName("icon").getComponent(Sprite)!.spriteFrame = spriteFrame; - }); - } - - /** - * 设置品质边框 - * @param quality 品质类型 - */ - private setQualityFrame(quality: QualitySet) { - // 隐藏所有品质边框 - this.hideAllQualityFrames(); - - // 根据品质显示对应边框 - switch (quality) { - case QualitySet.GREEN: - this.node.getChildByName("q1").active = true; - break; - case QualitySet.BLUE: - this.node.getChildByName("q2").active = true; - break; - case QualitySet.PURPLE: - this.node.getChildByName("q3").active = true; - break; - case QualitySet.ORANGE: - this.node.getChildByName("q4").active = true; - break; - default: - // 默认使用绿色边框 - this.node.getChildByName("q").active = true; - break; - } - } - - /** - * 隐藏所有品质边框 - */ - private hideAllQualityFrames() { - this.node.getChildByName("q").active = false; - this.node.getChildByName("q1").active = false; - this.node.getChildByName("q2").active = false; - this.node.getChildByName("q3").active = false; - this.node.getChildByName("q4").active = false; - this.node.getChildByName("focus").active = false; - } - - /** - * 设置物品数量 - * @param count 数量 - */ - private setItemCount(count: number) { - this.node.getChildByName("num").getComponent(Label)!.string = count.toString(); - } - - /** - * 设置选中状态 - * @param selected 是否选中 - */ - private setSelected(selected: boolean) { - this.node.getChildByName("focus").active = selected; - } - - /** - * 物品点击事件 - */ - do_click() { - // console.log("[ItemComp]: Item clicked", this.item_uuid, this.item_count); - - // 根据类型处理不同逻辑 - switch (this.type) { - case 1: // 普通点击 - this.onItemClick(); - break; - case 2: // 选择物品 - this.onItemSelect(); - break; - case 3: // 使用物品 - this.onItemUse(); - break; - default: - this.onItemClick(); - break; - } - } - - /** - * 普通物品点击 - */ - private onItemClick() { - // 显示物品信息或执行其他逻辑 - // console.log("[ItemComp]: Show item info", this.item_uuid); - } - - /** - * 选择物品 - */ - private onItemSelect() { - // 处理物品选择逻辑 - // console.log("[ItemComp]: Item selected", this.item_uuid); - } - - /** - * 使用物品 - */ - private onItemUse() { - // 处理物品使用逻辑 - // console.log("[ItemComp]: Use item", this.item_uuid); - } - show_item_info(){ - if(this.no_show){ - return - } - oops.gui.open(UIID.ItemInfo, { item_uuid: this.item_uuid ,count:this.item_count}); - } - /** - * 获取物品UUID - */ - getItemUUID(): number { - return this.item_uuid; - } - - /** - * 获取物品数量 - */ - getItemCount(): number { - return this.item_count; - } - addItemCount(count:number){ - this.item_count+=count - this.setItemCount(this.item_count) - } - /** - * 设置物品类型 - */ - setItemType(type: number) { - this.type = type; - } - - /** - * 设置物品槽位 - */ - setItemSlot(slot: number) { - this.slot = slot; - } -} - - diff --git a/assets/script/game/map/ItemComp.ts.meta b/assets/script/game/map/ItemComp.ts.meta deleted file mode 100644 index c4672131..00000000 --- a/assets/script/game/map/ItemComp.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "691f8376-3937-42db-ae4b-771d4cc67b25", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/map/LuckCardComp.ts b/assets/script/game/map/LuckCardComp.ts deleted file mode 100644 index 0ff9cce9..00000000 --- a/assets/script/game/map/LuckCardComp.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { _decorator, Animation, Component, Label, Node, resources, Sprite, SpriteAtlas, tween, v3 } from 'cc'; -import { SuperCards, SuperCardsType } from '../common/config/CardSet'; -import { SkillSet } from '../common/config/SkillSet'; -const { ccclass, property } = _decorator; - -@ccclass('LuckCardComp') -export class LuckCardComp extends Component { - timer:number=3; - start() { - this.timer=2 - // console.log("[LuckCardComp]:start") - } - - update(deltaTime: number) { - this.timer-=deltaTime - if(this.timer<=0){ - let anim=this.node.getComponent(Animation) - if(anim) anim.play("luckcardend") - this.do_destroy() - this.timer=2 - } - } - show_card(card:any){ - var icon_path = "game/heros/cards" - resources.load(icon_path, SpriteAtlas, (err: any, atlas) => { - const sprite = this.node.getChildByName("icon").getComponent(Sprite); - sprite.spriteFrame = atlas.getSpriteFrame(SuperCards[card.uuid].path); - }); - this.node.getChildByName("name").getComponent(Label).string=SuperCards[card.uuid].name - switch(SuperCards[card.uuid].type){ - case SuperCardsType.BUFF: - this.node.getChildByName("val").getComponent(Label).string="+"+SuperCards[card.uuid].value2 - break - case SuperCardsType.AOE: - this.node.getChildByName("val").getComponent(Label).string=SkillSet[SuperCards[card.uuid].value1].name+"X"+SuperCards[card.uuid].value2 - break - } - } - do_destroy(){ - tween(this.node) - .to(0.2, { - scale: v3(2,2,0), - }, {onComplete:()=>{ - this.node.destroy() - }}) - .start(); - } -} - - diff --git a/assets/script/game/map/LuckCardComp.ts.meta b/assets/script/game/map/LuckCardComp.ts.meta deleted file mode 100644 index 05edd80c..00000000 --- a/assets/script/game/map/LuckCardComp.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "598155fc-f31b-4496-b1e4-82219435f425", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/map/MSkillComp.ts b/assets/script/game/map/MSkillComp.ts deleted file mode 100644 index 9a50e7cb..00000000 --- a/assets/script/game/map/MSkillComp.ts +++ /dev/null @@ -1,131 +0,0 @@ -import { _decorator, resources, Sprite, SpriteAtlas ,Node, ProgressBar, tween, v3, Label, Animation, CCString, CCInteger} from "cc"; -import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; -import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp"; -import { GameEvent } from "../common/config/GameEvent"; -import { CdType, SkillSet } from "../common/config/SkillSet"; -import { smc } from "../common/SingletonModuleComp"; -import { oops } from "db://oops-framework/core/Oops"; -import { MissionEvent } from "../common/config/MissionEvent"; -import { HeroInfo } from "../common/config/heroSet"; - -const { ccclass, property } = _decorator; - -/** 视图层对象 */ -@ccclass('MSkillComp') -@ecs.register('MSkill', false) -export class MSkillComp extends CCComp { - @property(CCString) - skill_slot:string="skill1" - @property(CCInteger) - skill_slot_index:number=1 - skill:any=null - skill_cd_bar_progress:any=null - max_show:boolean=false - /** 视图层逻辑代码分离演示 */ - onLoad() { - this.on(GameEvent.UseSkillCard, this.get_skill, this); - this.on(GameEvent.FightReady,this.fight_ready,this) - this.on(GameEvent.MasterCalled,this.master_called,this) - // this.node.getChildByName("icon").getChildByName("cd").active=false - } - start(){ - this.fight_ready() - } - private master_called(e:any,data:any){ - // console.log("[EquipSkillComp]: master_called",data) - let hero=HeroInfo[data.uuid] - if(hero.skills.length>0){ - this.get_skill(null,{slot:this.skill_slot,uuid:hero.skills[this.skill_slot_index]}) - } - } - - fight_ready(){ - // console.log("[MSkillComp]: fight_ready",this.node) - this.node.getChildByName("icon").active=false - this.hide_skill_get(null,"skill1") - this.skill={ - uuid:0, - name:"skill1", - type:0, //1 被动 0 主动 - level:0, - quality:0, - cd:0, - cd_time:0, - active:false, - } - - } - update(dt: number): void { - if(!smc.mission.play||smc.mission.pause) return - - } - show_max(){ - this.node.getChildByName("light").active=true - this.node.getComponent(Animation).play() - } - hide_max(){ - this.max_show=false - this.node.getChildByName("light").active=false - this.node.setScale(1,1,1) - this.node.getComponent(Animation).stop() - } - spell_skill(){ - // console.log("spell_skill") - this.skill.cd_time=0 - tween(this.node).to(0.1, {scale:v3(1.2,1.2,1)},{onComplete:()=>{ - tween(this.node).to(0.2, {scale:v3(1,1,1)}).start() - }}).start() - this.do_skill(this.skill.uuid) - this.hide_max() - } - - do_skill(uuid:number){ - oops.message.dispatchEvent(GameEvent.CastHeroSkill,uuid) - } - - get_skill(e:GameEvent,data:any){ - // console.log("[MSkillComp]: get_skill",data) - if(data.slot==this.skill_slot||this.skill_slot_index==data.slot){ - this.skill.uuid=data.uuid - this.skill.skill_name=SkillSet[data.uuid].name - this.skill.type=1 - this.skill.cd=SkillSet[data.uuid].cd - this.skill.cd_time=SkillSet[data.uuid].cd - let icon1 = this.node.getChildByName("icon") - icon1.active=true - // if(SkillSet[data.uuid].CdType!=CdType.cd){ - // icon1.getChildByName("cd").active=false - // } - var icon_path = "game/heros/cards" - resources.load(icon_path, SpriteAtlas, (err: any, atlas) => { - const sprite = icon1.getChildByName("skill").getComponent(Sprite); - sprite.spriteFrame = atlas.getSpriteFrame(SkillSet[data.uuid].path); - }); - } - } - - call_skill_card(e:any,data:any){ - oops.message.dispatchEvent(GameEvent.HeroSkillSelect,{slot:data}) - } - - - show_info(e:any,data:any){ - // console.log("[MSkillComp]: show_info",this.skill) - - } - - private hide_skill_get(e:any,data:string){ - this.node.getChildByName("get").active =false - this.node.getChildByName("tip").active =false - this.node.getChildByName("light").active=false - - } - - - - - /** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */ - reset() { - this.node.destroy(); - } -} \ No newline at end of file diff --git a/assets/script/game/map/MSkillComp.ts.meta b/assets/script/game/map/MSkillComp.ts.meta deleted file mode 100644 index e529a8d6..00000000 --- a/assets/script/game/map/MSkillComp.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "e0acc008-a00f-4682-ba4f-c47506bddf26", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/map/ShopPageComp.ts b/assets/script/game/map/ShopPageComp.ts deleted file mode 100644 index 949c3d51..00000000 --- a/assets/script/game/map/ShopPageComp.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { _decorator, Component, Node } from 'cc'; -import { GoodsComp } from './GoodsComp'; -import { smc } from '../common/SingletonModuleComp'; -import { getRandomGoods } from '../common/config/Goods'; -const { ccclass, property } = _decorator; - -@ccclass('ShopPageComp') -export class ShopPageComp extends Component { - daily:any[]=[] - weekly:any[]=[] - monthly:any[]=[] - special:any[]=[] - start() { - this.update_daily() - this.update_weekly() - } - update_daily(){ - let items=this.node.getChildByName("daily").getChildByName("items").children - for(let i=0;i { -// base.is_destroy=true -// }, -// }).start(); -// } - -// update(deltaTime: number) { -// if(smc.mission.pause) return -// } - -// public static bezierTo(target: any, duration: number, c1: Vec3, c2: Vec3, to: Vec3, opts: any) { -// opts = opts || Object.create(null); -// /* -// * @desc 二阶贝塞尔 -// * @param {number} t 当前百分比 -// * @param {} p1 起点坐标 -// * @param {} cp 控制点 -// * @param {} p2 终点坐标 -// * @returns {any} -// */ -// let twoBezier = (t:number, p1: Vec3, cp: Vec3, p2: Vec3) => { -// let x = (1 - t) * (1 - t) * p1.x + 2 * t * (1 - t) * cp.x + t * t * p2.x; -// let y = (1 - t) * (1 - t) * p1.y + 2 * t * (1 - t) * cp.y + t * t * p2.y; -// return v3(x, y, 0); -// }; -// opts.onUpdate = (arg: Vec3, ratio: number) => { -// target.position = twoBezier(ratio, c1, c2, to); -// }; -// return tween(target).to(duration, {}, opts); -// } -// } - - diff --git a/assets/script/game/skills/BezCom.ts.meta b/assets/script/game/skills/BezCom.ts.meta deleted file mode 100644 index 236642b9..00000000 --- a/assets/script/game/skills/BezCom.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.24", - "importer": "typescript", - "imported": true, - "uuid": "5ebc6679-2a71-424f-bacf-48f20949fbd3", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/settings/v2/packages/information.json b/settings/v2/packages/information.json index 94848dec..e681eba5 100644 --- a/settings/v2/packages/information.json +++ b/settings/v2/packages/information.json @@ -4,19 +4,19 @@ "customSplash": { "id": "customSplash", "label": "customSplash", - "enable": false, + "enable": true, "customSplash": { - "complete": false, - "form": "https://creator-api.cocos.com/api/form/show?" + "complete": true, + "form": "https://creator-api.cocos.com/api/form/show?sid=5867a11f63bd65515866589488c9bca0" } }, "removeSplash": { "id": "removeSplash", "label": "removeSplash", - "enable": false, + "enable": true, "removeSplash": { - "complete": false, - "form": "https://creator-api.cocos.com/api/form/show?" + "complete": true, + "form": "https://creator-api.cocos.com/api/form/show?sid=5867a11f63bd65515866589488c9bca0" } } }