修行,未完成提交
parent
9457e48c5c
commit
1d8fea9f96
|
@ -22,7 +22,9 @@ public class HeroManager extends MongoBase {
|
|||
|
||||
private Map<Integer,Integer> mustRandomCount= new HashMap<>();
|
||||
|
||||
private Map<Integer,Integer> randomPoolInfo = new HashMap<>();//每个池子抽了多少次的信息
|
||||
//每个池子抽了多少次的信息
|
||||
private Map<Integer,Integer> randomPoolInfo = new HashMap<>();
|
||||
|
||||
private Map<Integer,Integer> heroHandBook = new HashMap<>();
|
||||
private Set<Integer> heroHandBookEnabled = new HashSet<>();
|
||||
|
||||
|
@ -51,6 +53,16 @@ public class HeroManager extends MongoBase {
|
|||
// 鸿蒙碑最大等级,添加限制,
|
||||
private Set<Integer> hongmengMaxLevel = new HashSet<>();
|
||||
|
||||
// 修行境界等级
|
||||
private int practiceLevel;
|
||||
/**
|
||||
* 装备得紫府神印
|
||||
* key: 神印id
|
||||
* value: 0 通用
|
||||
* -1 未添加英雄
|
||||
*/
|
||||
private Map<Integer,String> purpleMansionSeal = new HashMap<>();
|
||||
|
||||
public void updateRandCount(int type,int count){
|
||||
updateString("totalCount." + type, count);
|
||||
totalCount.put(type,count);
|
||||
|
@ -262,5 +274,29 @@ public class HeroManager extends MongoBase {
|
|||
randomPoolInfo.put(poolId,randomPoolInfo.getOrDefault(poolId,0)+1);
|
||||
updateString("randomPoolInfo", randomPoolInfo);
|
||||
}
|
||||
|
||||
|
||||
public int getPracticeLevel() {
|
||||
return practiceLevel;
|
||||
}
|
||||
|
||||
public void setPracticeLevel(int practiceLevel) {
|
||||
this.practiceLevel = practiceLevel;
|
||||
updateString("practiceLevel", practiceLevel);
|
||||
}
|
||||
|
||||
public void addPracticeLevel() {
|
||||
this.practiceLevel+=1;
|
||||
updateString("practiceLevel", practiceLevel);
|
||||
}
|
||||
|
||||
public Map<Integer, String> getPurpleMansionSeal() {
|
||||
return purpleMansionSeal;
|
||||
}
|
||||
|
||||
public void setPurpleMansionSeal(Map<Integer, String> purpleMansionSeal) {
|
||||
this.purpleMansionSeal = purpleMansionSeal;
|
||||
updateString("purpleMansionSeal", purpleMansionSeal);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -186,9 +186,10 @@ public class HeroLogic{
|
|||
if(type==4){
|
||||
Map<String, PropertyItem> equipMap = user.getEquipManager().getEquipMap();
|
||||
for(PropertyItem equipInfo: equipMap.values()){
|
||||
if(equipInfo instanceof Jewel)
|
||||
if(equipInfo instanceof Jewel) {
|
||||
equipList.add(CBean2Proto.getEquipProto(equipInfo));
|
||||
}
|
||||
}
|
||||
}else {
|
||||
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue