From 3ed0a2ebac77934de1f30c64002b319df4904ca7 Mon Sep 17 00:00:00 2001 From: walkpan Date: Sat, 3 Jan 2026 23:23:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B8=B8=E6=88=8F=E7=BB=9F=E8=AE=A1):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=87=BB=E6=9D=80=E7=BB=9F=E8=AE=A1=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=88=B0=E6=B8=B8=E6=88=8F=E5=88=86=E6=95=B0=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在GameScoreStats接口和SingletonModuleComp类中添加近战怪、远程怪、精英怪和Boss的击杀数量统计字段,用于追踪玩家对不同类型敌人的击杀情况 --- assets/script/game/common/SingletonModuleComp.ts | 6 ++++++ assets/script/game/common/config/HeroAttrs.ts | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/assets/script/game/common/SingletonModuleComp.ts b/assets/script/game/common/SingletonModuleComp.ts index d16c17ad..ce7cf2de 100644 --- a/assets/script/game/common/SingletonModuleComp.ts +++ b/assets/script/game/common/SingletonModuleComp.ts @@ -91,6 +91,12 @@ export class SingletonModuleComp extends ecs.Comp { // 资源统计 exp_total: 0, // 经验总数 gold_total: 0, // 金币总数 + + // 击杀统计 + melee_kill_count: 0, // 近战怪击杀数量 + remote_kill_count: 0, // 远程怪击杀数量 + elite_kill_count: 0, // 精英怪击杀数量 + boss_kill_count: 0, // Boss击杀数 } as GameScoreStats, hero:{ name:'', diff --git a/assets/script/game/common/config/HeroAttrs.ts b/assets/script/game/common/config/HeroAttrs.ts index cbd6f0cd..ca98eef1 100644 --- a/assets/script/game/common/config/HeroAttrs.ts +++ b/assets/script/game/common/config/HeroAttrs.ts @@ -239,6 +239,12 @@ export interface GameScoreStats { // 资源统计 exp_total: number; // 经验总数 gold_total: number; // 金币总数 + + // 击杀统计 + melee_kill_count: number; // 近战怪击杀数量 + remote_kill_count: number; // 远程怪击杀数量 + elite_kill_count: number; // 精英怪击杀数量 + boss_kill_count: number; // Boss击杀数 }