holy 37type update

back_recharge
mengchengzhen 2021-03-11 17:02:35 +08:00
parent 0173bd1fa0
commit d4e5a2b6a4
1 changed files with 16 additions and 1 deletions

View File

@ -24,6 +24,7 @@ public class ExpetionSpecialProcessor implements SpecialBuildProcessor{
private final int DAMAGE_INCREASE = 17;
private final int HOLY_INCREASE = 35;
private final int JUDGE_INCREASE = 43;
private final int HOLY_QUALITY = 37;
@Override
public String getSpecialParm(User user) {
Map<Integer, SExpeditionHolyConfig> config = STableManager.getConfig(SExpeditionHolyConfig.class);
@ -32,6 +33,11 @@ public class ExpetionSpecialProcessor implements SpecialBuildProcessor{
ExpeditionManager expeditionManager = user.getExpeditionManager();
Set<ExpeditionItem> propertyItems = user.getExpeditionManager().getPropertyItems();
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){
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());
}
//每使用一次判官笔
expeditionManager.getEffectItems().get(JUDGE_INCREASE);
SExpeditionHolyConfig con43 = expeditionManager.getEffectItems().get(JUDGE_INCREASE);
if(con43 != null){
if(result.length()>0){
@ -74,6 +79,16 @@ public class ExpetionSpecialProcessor implements SpecialBuildProcessor{
ExpeditionItem item = expeditionManager.getExpeditionItem(con43.getId());
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();
}
}