试炼精气值
parent
404ea07089
commit
54ad281831
|
@ -1304,7 +1304,20 @@ public class MapLogic {
|
||||||
if(SChallengeConfig.sChallengeConfigs.get(mapManager.getCurMapId()).getType()==4) {
|
if(SChallengeConfig.sChallengeConfigs.get(mapManager.getCurMapId()).getType()==4) {
|
||||||
endlessRefreshMonster(session,destoryXY);
|
endlessRefreshMonster(session,destoryXY);
|
||||||
}
|
}
|
||||||
|
//删点之前进行查找
|
||||||
|
if (sChallengeConfig.getType() == 2) {
|
||||||
|
STrialConfig sTrialConfig = STrialConfig.sTrialConfigMap.get(mapManager.getTower());
|
||||||
|
int[][] randomMonsterType = sTrialConfig.getRandomMonsterType();
|
||||||
|
if(cell.getCellId()!=mapManager.getBossXY()){
|
||||||
|
if(mapManager.getEssenceValue()!=-1){
|
||||||
|
if (randomMonsterType[0][1] == cell.getPointId()) {
|
||||||
|
mapManager.setEssenceValue(mapManager.getEssenceValue() + sTrialConfig.getNormalEnergy());
|
||||||
|
} else {
|
||||||
|
mapManager.setEssenceValue(mapManager.getEssenceValue() + sTrialConfig.getEliteEnergy());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
BehaviorUtil.destoryApointXY(user, destoryXY);
|
BehaviorUtil.destoryApointXY(user, destoryXY);
|
||||||
SMonsterGroup sMonsterGroup = SMonsterGroup.getsMonsterGroupMap().get(groupId);
|
SMonsterGroup sMonsterGroup = SMonsterGroup.getsMonsterGroupMap().get(groupId);
|
||||||
CommonProto.Drop.Builder drop = ItemUtil.drop(user, sMonsterGroup.getRewardgroup(), 1, 1, BIReason.MAP_FAST_FIGHT_REWARD);
|
CommonProto.Drop.Builder drop = ItemUtil.drop(user, sMonsterGroup.getRewardgroup(), 1, 1, BIReason.MAP_FAST_FIGHT_REWARD);
|
||||||
|
@ -1319,19 +1332,7 @@ public class MapLogic {
|
||||||
fastFightResponse.addAllRemainHpList(remainHp);
|
fastFightResponse.addAllRemainHpList(remainHp);
|
||||||
fastFightResponse.setEssenceValue(mapManager.getEssenceValue());
|
fastFightResponse.setEssenceValue(mapManager.getEssenceValue());
|
||||||
fastFightResponse.build();
|
fastFightResponse.build();
|
||||||
if (sChallengeConfig.getType() == 2) {
|
|
||||||
STrialConfig sTrialConfig = STrialConfig.sTrialConfigMap.get(mapManager.getTower());
|
|
||||||
int[][] randomMonsterType = sTrialConfig.getRandomMonsterType();
|
|
||||||
if(cell.getCellId()!=mapManager.getBossXY()){
|
|
||||||
if(mapManager.getEssenceValue()!=-1){
|
|
||||||
if (randomMonsterType[0][1] == cell.getPointId()) {
|
|
||||||
mapManager.setEssenceValue(mapManager.getEssenceValue() + sTrialConfig.getNormalEnergy());
|
|
||||||
} else {
|
|
||||||
mapManager.setEssenceValue(mapManager.getEssenceValue() + sTrialConfig.getEliteEnergy());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fastFightResponse.setEssenceValue(mapManager.getEssenceValue());
|
fastFightResponse.setEssenceValue(mapManager.getEssenceValue());
|
||||||
// LOGGER.info("endFight() uid=>{},nextEventId=>{}", uid, nextEventId);
|
// LOGGER.info("endFight() uid=>{},nextEventId=>{}", uid, nextEventId);
|
||||||
|
|
Loading…
Reference in New Issue