1111
This commit is contained in:
parent
1a792cf446
commit
1d93fa53cd
|
|
@ -641,7 +641,8 @@ public class PlayerStats implements Serializable {
|
|||
if (!first_login) {
|
||||
int currentDsbbh = dsbbh.incrementAndGet(); // 原子自增并获取最新值
|
||||
for (AotuNpc npc : Start.aotuNpcs) {
|
||||
Start.executor.schedule(() -> dsnpcfw(chra, npc, currentDsbbh), npc.getTime(), TimeUnit.MILLISECONDS);
|
||||
// Start.executor.schedule(() -> dsnpcfw(chra, npc, currentDsbbh), npc.getTime(), TimeUnit.MILLISECONDS);
|
||||
dsnpcfw(chra, npc, currentDsbbh);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ public class AotuNpc {
|
|||
|
||||
int lv;
|
||||
|
||||
String mapId;
|
||||
String mapId="";
|
||||
|
||||
String noMapId;
|
||||
String noMapId="";
|
||||
|
||||
|
||||
int itemId;
|
||||
|
|
@ -107,22 +107,30 @@ public class AotuNpc {
|
|||
if (mapIdList ==null ){
|
||||
mapIdList =new ArrayList<>();
|
||||
nomapIdList =new ArrayList<>();
|
||||
String[] split = this.mapId.split(",");
|
||||
for (String s : split) {
|
||||
mapIdList.add(Integer.parseInt(s));
|
||||
|
||||
if (!this.mapId.isEmpty()) {
|
||||
String[] split = this.mapId.split(",");
|
||||
for (String s : split) {
|
||||
mapIdList.add(Integer.parseInt(s));
|
||||
}
|
||||
}
|
||||
String[] split1 = this.noMapId.split(",");
|
||||
for (String s : split1) {
|
||||
nomapIdList.add(Integer.parseInt(s));
|
||||
|
||||
if (!this.noMapId.isEmpty()) {
|
||||
String[] split = this.noMapId.split(",");
|
||||
for (String s : split) {
|
||||
nomapIdList.add(Integer.parseInt(s));
|
||||
}
|
||||
}
|
||||
}
|
||||
for (Integer i : mapIdList) {
|
||||
if (i == mapId){
|
||||
|
||||
for (Integer i : nomapIdList) {
|
||||
if (i == mapId ){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
for (Integer i : nomapIdList) {
|
||||
if (i == mapId){
|
||||
|
||||
for (Integer i : mapIdList) {
|
||||
if (i == mapId|| i == 0){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue