跳转类型修改

back_recharge
jiahuiwen 2019-01-30 18:11:39 +08:00
parent 50d827edfb
commit 409e11e308
1 changed files with 7 additions and 7 deletions

View File

@ -329,12 +329,15 @@ public class MapLogic {
// 1 无条件跳转,对应事件点
// 6 无条件跳转地图id
case 1:
case 5:
case 6:{
nextPoint = jumpTypeValues[0][0];
break;
}
// 2 权重跳转1001#1002|0.2#0.8
case 2:{
case 2:
case 7:
case 9:{
int ranom = MathUtils.randomInt(100) + 1;
if (ranom >= jumpTypeValues[1][0]) {
nextPoint = jumpTypeValues[0][0];
@ -344,7 +347,9 @@ public class MapLogic {
break;
}
// 3 条件跳转 1001#1002|00或1为和#条件id#条件id
case 3:{
case 3:
case 8:
case 10:{
SOptionAddCondition sOptionAddConditions = SOptionAddCondition.sOptionAddConditionMap.get(jumpTypeValues[1][1]);
if (sOptionAddConditions == null) {
LOGGER.info("sOptionAddConditions == null jumpTypeValues[1][1]=>{}", jumpTypeValues[1][1]);
@ -379,11 +384,6 @@ public class MapLogic {
nextPoint = cell.getEventId();
break;
}
// 5 不跳转,销毁地图点 -1
case 5:{
nextPoint = -1;
break;
}
default:{
break;
}