修行: 附身神印展示使用中全部

back_recharge
duhui 2021-05-25 11:09:25 +08:00
parent b404814382
commit 3030bb501f
1 changed files with 6 additions and 22 deletions

View File

@ -828,28 +828,12 @@ public class CBean2Proto {
values.forEach(v->{
// 使用中的神印
if (v.getState() == 1){
CommonProto.PurpleSealShowInfo builder;
// 通用神印
if (v.getType() == 0){
builder = CommonProto.PurpleSealShowInfo.newBuilder()
.setId(v.getSealId())
.setType(v.getType())
.setHeroTId(0)
.build();
list.add(builder);
}
// 附身神印需要
else if (v.getType() == 1) {
if (heroIds.contains(v.getSubId()) && !"".equals(v.getSubId()) && v.getSubId() != null){
Hero hero = user.getHeroManager().getHero(v.getSubId());
builder = CommonProto.PurpleSealShowInfo.newBuilder()
.setId(v.getSealId())
.setType(v.getType())
.setHeroTId(hero.getTemplateId())
.build();
list.add(builder);
}
}
CommonProto.PurpleSealShowInfo builder = CommonProto.PurpleSealShowInfo.newBuilder()
.setId(v.getSealId())
.setType(v.getType())
.setHeroTId(0)
.build();
list.add(builder);
}
});
return list;