跳转类型修改
parent
50d827edfb
commit
409e11e308
|
|
@ -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|0(0或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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue