英雄展示页面++

This commit is contained in:
2025-08-14 17:10:36 +08:00
parent 6adff46fd1
commit 7203a4ab07
8 changed files with 644 additions and 1760 deletions

View File

@@ -37,9 +37,9 @@ export class SingletonModuleComp extends ecs.Comp {
4:0,
}
heros:any = {
5001:{lv:1},
5005:{lv:1},
5007:{lv:1},
5001:{uuid:5001,lv:1,slv:0},
5005:{uuid:5005,lv:1,slv:0},
5007:{uuid:5007,lv:1,slv:0},
};
monsters:any = [];
@@ -312,7 +312,9 @@ export class SingletonModuleComp extends ecs.Comp {
this.setHeroProperty(heroId, "lv", newLevel, autoSave);
console.log(`[SMC]: 英雄${heroId}升级: ${currentLevel} -> ${newLevel}`);
}
getHasHeroUUID() {
return Object.keys(this.heros).map(Number)
}
/**
* 获取英雄等级
* @param heroId 英雄ID