英雄展示页面++

This commit is contained in:
panw
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

View File

@@ -71,7 +71,7 @@ export const MonSet = {
export const HeroInfo = {
//主将
5001:{uuid:5001,name:"火焰骑士",path:"hk1", fac:FacSet.HERO, quality:HQuality.BLUE,lv:1,kind:1,
5001:{uuid:5001,name:"火焰骑士",path:"hk1", fac:FacSet.HERO, quality:HQuality.GREEN,lv:1,kind:1,
type:HType.warrior,hp:100,ap:15,dis:100,cd:1,speed:150,skills:[6011,6020],
buff:[],info:"剑类专精,穿刺伤害额外+10%"},
@@ -92,7 +92,7 @@ export const HeroInfo = {
buff:[],info:"说明"},
5007:{uuid:5007,name:"mh1",path:"hmh1", fac:FacSet.HERO, quality:HQuality.BLUE,lv:1,kind:2,
5007:{uuid:5007,name:"mh1",path:"hmh1", fac:FacSet.HERO, quality:HQuality.PURPLE,lv:1,kind:2,
type:HType.mage,hp:100,ap:15,dis:400,cd:1,speed:100,skills:[6002,6002],
buff:[],info:"说明"},