feat(英雄系统): 添加友方英雄标识并调整经验获取

初始化任务卡片事件队列
修改英雄经验获取为20倍
在Hero类中添加is_friend参数标识友方英雄
调整MissionHeroComp中召唤英雄逻辑以支持友方标识
This commit is contained in:
walkpan
2026-01-05 22:00:11 +08:00
parent 6dbf031768
commit 526293cbbd
4 changed files with 8 additions and 6 deletions

View File

@@ -143,7 +143,7 @@ export class SingletonModuleComp extends ecs.Comp {
updateHeroExp(exp: number) {
if (!this.vmdata.hero) return;
this.vmdata.hero.exp += exp;
this.vmdata.hero.exp += exp*20;
// console.log('[smc] 英雄升级 经验:' + this.vmdata.hero.exp + ' 等级:' + this.vmdata.hero.lv + ' 上限:' + this.vmdata.hero.exp_max);
// 确保 exp_max 初始化
if (this.vmdata.hero.exp_max <= 0) {