森罗修改
parent
5f9b70ea80
commit
fbb03e44f8
|
@ -804,7 +804,7 @@ public class MapLogic {
|
|||
MapMissionManager.updateMapMission(user, EventType.updatePonintEvent, pointId, pointId);
|
||||
CommonProto.Drop.Builder dropBuilder = null;
|
||||
if (sOptionConfig.getReward().length > 0) {
|
||||
dropBuilder = ItemUtil.drop(user, sOptionConfig.getReward(), 1, 1, BIReason.MAP_EVENET_REWARD);
|
||||
dropBuilder = ItemUtil.drop(user, sOptionConfig.getReward(), 1, 0, BIReason.MAP_EVENET_REWARD);
|
||||
}
|
||||
List<CommonProto.EventBehaviorValues> eventBehaviorValuesList = new ArrayList<>();
|
||||
for (int i = 0; i < sOptionConfig.getBehaviorTypeValues().length; i++) {
|
||||
|
|
|
@ -62,6 +62,7 @@ public class FourtyTwoBehavior extends BaseBehavior {
|
|||
mapManager.setTrialFloor(floor + 1);
|
||||
mapManager.setTrialEnergy(0);
|
||||
mapManager.setMapIntoFlag(2);
|
||||
mapManager.setCurMapType(0);
|
||||
mapManager.updateTrialMapInfo(new HashMap<>());
|
||||
//换层清除数据
|
||||
mapManager.updateMapMonsterHp(new HashMap<>());
|
||||
|
|
|
@ -76,14 +76,18 @@ public class TowerMap extends AbstractMap {
|
|||
TrialInfo trialInfo = mapManager.getTrialInfo();
|
||||
if(mapManager.getCurMapType()!=0&&mapManager.getCurMapType()!=type){
|
||||
MapLogic.getInstance().getMap(user).autoExitMap(user);
|
||||
}
|
||||
if(!trialInfo.getMapInfo().isEmpty()){
|
||||
mapManager.setMapInfo(trialInfo.getMapInfo());
|
||||
mapManager.setCurMapId(trialInfo.getQuitMapId());
|
||||
mapManager.setCurXY(trialInfo.getCurXY());
|
||||
}else{
|
||||
//进新图
|
||||
if(!trialInfo.getMapInfo().isEmpty()){
|
||||
mapManager.setMapInfo(trialInfo.getMapInfo());
|
||||
mapManager.setCurMapId(trialInfo.getQuitMapId());
|
||||
mapManager.setCurXY(trialInfo.getCurXY());
|
||||
}else{
|
||||
//进新图
|
||||
// super.enterMap(uid,mapEnterResponse);
|
||||
initMap(mapManager,user);
|
||||
}
|
||||
}
|
||||
if(mapManager.getCurMapType()==0){
|
||||
//换层
|
||||
initMap(mapManager,user);
|
||||
}
|
||||
Map<String, TrailHero> heroInfo = trialInfo.getHeroInfo();
|
||||
|
@ -441,7 +445,7 @@ public class TowerMap extends AbstractMap {
|
|||
//------------
|
||||
|
||||
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, 0, BIReason.MAP_FAST_FIGHT_REWARD);
|
||||
|
||||
// mapManager.
|
||||
if (mapManager.getMonsterId() > 0) {
|
||||
|
|
|
@ -1776,7 +1776,7 @@ public class HeroLogic{
|
|||
Integer propertyId = item.getKey();
|
||||
float propertyValue = item.getValue();
|
||||
if(propertyId == HeroAttributeEnum.EquipForce.getPropertyId()){
|
||||
LOGGER.info("the equipScore={}",propertyValue);
|
||||
// LOGGER.info("the equipScore={}",propertyValue);
|
||||
continue;
|
||||
}
|
||||
SPropertyConfig sPropertyConfig = SPropertyConfig.getsPropertyConfigByPID(propertyId);
|
||||
|
@ -1786,9 +1786,9 @@ public class HeroLogic{
|
|||
float score = sPropertyConfig.getScore();
|
||||
|
||||
result += propertyValue*score;
|
||||
LOGGER.info("the propertyId={} the value is ={},propertyValue={},score={},result ={},the value={}",propertyId,propertyValue*score,propertyValue,score,result,propertyValue*score);
|
||||
// LOGGER.info("the propertyId={} the value is ={},propertyValue={},score={},result ={},the value={}",propertyId,propertyValue*score,propertyValue,score,result,propertyValue*score);
|
||||
}
|
||||
System.out.println(result);
|
||||
// System.out.println(result);
|
||||
return (int)result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue