列表中初始属性
This commit is contained in:
parent
cf5ce2712c
commit
c1b506f25e
@ -81,12 +81,10 @@ func (this *Hero) UpdateEquipment(hero *pb.DBHero, equip []*pb.DB_Equipment) (co
|
|||||||
|
|
||||||
//英雄列表
|
//英雄列表
|
||||||
func (this *Hero) GetHeroList(uid string) []*pb.DBHero {
|
func (this *Hero) GetHeroList(uid string) []*pb.DBHero {
|
||||||
// data := []*pb.DBHero{}
|
|
||||||
heroes := this.modelHero.getHeroList(uid)
|
heroes := this.modelHero.getHeroList(uid)
|
||||||
// for _, h := range heroes {
|
for _, h := range heroes {
|
||||||
// h.Property = this.modelHero.PropertyCompute(uid, h.Id)
|
h.Property = this.modelHero.PropertyCompute(uid, h.Id)
|
||||||
// data = append(data, h)
|
}
|
||||||
// }
|
|
||||||
return heroes
|
return heroes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user