holy 37type update
parent
0173bd1fa0
commit
d4e5a2b6a4
|
@ -24,6 +24,7 @@ public class ExpetionSpecialProcessor implements SpecialBuildProcessor{
|
||||||
private final int DAMAGE_INCREASE = 17;
|
private final int DAMAGE_INCREASE = 17;
|
||||||
private final int HOLY_INCREASE = 35;
|
private final int HOLY_INCREASE = 35;
|
||||||
private final int JUDGE_INCREASE = 43;
|
private final int JUDGE_INCREASE = 43;
|
||||||
|
private final int HOLY_QUALITY = 37;
|
||||||
@Override
|
@Override
|
||||||
public String getSpecialParm(User user) {
|
public String getSpecialParm(User user) {
|
||||||
Map<Integer, SExpeditionHolyConfig> config = STableManager.getConfig(SExpeditionHolyConfig.class);
|
Map<Integer, SExpeditionHolyConfig> config = STableManager.getConfig(SExpeditionHolyConfig.class);
|
||||||
|
@ -32,6 +33,11 @@ public class ExpetionSpecialProcessor implements SpecialBuildProcessor{
|
||||||
ExpeditionManager expeditionManager = user.getExpeditionManager();
|
ExpeditionManager expeditionManager = user.getExpeditionManager();
|
||||||
Set<ExpeditionItem> propertyItems = user.getExpeditionManager().getPropertyItems();
|
Set<ExpeditionItem> propertyItems = user.getExpeditionManager().getPropertyItems();
|
||||||
propertyItems.forEach(e->{
|
propertyItems.forEach(e->{
|
||||||
|
int type = config.get(e.getEquipId()).gettype();
|
||||||
|
//掉落战利品
|
||||||
|
if(type==2||type==3){
|
||||||
|
cache.put(type,cache.getOrDefault(type,0)+1);
|
||||||
|
}
|
||||||
//夜明珠
|
//夜明珠
|
||||||
if(e.getEquipId() == HOLY_INCREASE){
|
if(e.getEquipId() == HOLY_INCREASE){
|
||||||
cache.put(e.getEquipId(),cache.getOrDefault(e.getEquipId(),0) + 1);
|
cache.put(e.getEquipId(),cache.getOrDefault(e.getEquipId(),0) + 1);
|
||||||
|
@ -64,7 +70,6 @@ public class ExpetionSpecialProcessor implements SpecialBuildProcessor{
|
||||||
result.append(item==null?0:item.getCountVictory());
|
result.append(item==null?0:item.getCountVictory());
|
||||||
}
|
}
|
||||||
//每使用一次判官笔
|
//每使用一次判官笔
|
||||||
expeditionManager.getEffectItems().get(JUDGE_INCREASE);
|
|
||||||
SExpeditionHolyConfig con43 = expeditionManager.getEffectItems().get(JUDGE_INCREASE);
|
SExpeditionHolyConfig con43 = expeditionManager.getEffectItems().get(JUDGE_INCREASE);
|
||||||
if(con43 != null){
|
if(con43 != null){
|
||||||
if(result.length()>0){
|
if(result.length()>0){
|
||||||
|
@ -74,6 +79,16 @@ public class ExpetionSpecialProcessor implements SpecialBuildProcessor{
|
||||||
ExpeditionItem item = expeditionManager.getExpeditionItem(con43.getId());
|
ExpeditionItem item = expeditionManager.getExpeditionItem(con43.getId());
|
||||||
result.append(item==null?0:item.getJudgePen());
|
result.append(item==null?0:item.getJudgePen());
|
||||||
}
|
}
|
||||||
|
SExpeditionHolyConfig con37 = expeditionManager.getEffectItems().get(HOLY_QUALITY);
|
||||||
|
if(con37 != null){
|
||||||
|
if(result.length()>0){
|
||||||
|
result.append("|");
|
||||||
|
}
|
||||||
|
result.append(con37.getPassiveSkillId()+"#");
|
||||||
|
int num = cache.getOrDefault(2,0);
|
||||||
|
num += cache.getOrDefault(3,0);
|
||||||
|
result.append(num);
|
||||||
|
}
|
||||||
return result.toString();
|
return result.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue