选择跳转bug
parent
73ae2a9bf4
commit
774828dcc9
|
@ -480,6 +480,8 @@ public class MapLogic {
|
||||||
}
|
}
|
||||||
if (flags.size() > 0 && flags.size() >= rand) {
|
if (flags.size() > 0 && flags.size() >= rand) {
|
||||||
nextEventId = jumpTypeValues[0][0];
|
nextEventId = jumpTypeValues[0][0];
|
||||||
|
} else {
|
||||||
|
nextEventId = jumpTypeValues[0][1];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Set<Integer> flags = new HashSet<>();
|
Set<Integer> flags = new HashSet<>();
|
||||||
|
@ -497,6 +499,8 @@ public class MapLogic {
|
||||||
}
|
}
|
||||||
if (flags.size() > 0) {
|
if (flags.size() > 0) {
|
||||||
nextEventId = jumpTypeValues[0][0];
|
nextEventId = jumpTypeValues[0][0];
|
||||||
|
} else {
|
||||||
|
nextEventId = jumpTypeValues[0][1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -511,6 +515,8 @@ public class MapLogic {
|
||||||
boolean b = ItemUtil.checkCost(user, itemMap);
|
boolean b = ItemUtil.checkCost(user, itemMap);
|
||||||
if (b) {
|
if (b) {
|
||||||
nextEventId = jumpTypeValues[0][0];
|
nextEventId = jumpTypeValues[0][0];
|
||||||
|
} else {
|
||||||
|
nextEventId = jumpTypeValues[0][1];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue