地图配置表
parent
77f08cd750
commit
80dc8b3fee
|
|
@ -1,12 +1,11 @@
|
||||||
Id Info Size MoveConfused EnergyConfused OpenRule
|
Id Info Size MoveConfused EnergyConfused OpenRule
|
||||||
int string mut,int#int,1 int int string
|
int string mut,int#int,1 int int string
|
||||||
101 战乱荒林 20#10 1 10 null
|
101 战乱荒林 20#10 1 10
|
||||||
102 林渊深处 20#10 2 10 null
|
102 林渊深处 20#10 2 10
|
||||||
103 三途津 20#15 2 20 null
|
103 三途津 20#15 2 20
|
||||||
104 青龙门 15#20 2 20 null
|
104 青龙门 15#20 2 20
|
||||||
105 风见原野 20#20 2 20 null
|
105 风见原野 20#20 2 20
|
||||||
106 荒芜丘陵 20#10 2 20 null
|
106 荒芜丘陵 20#10 2 20
|
||||||
107 观澜港 20#15 2 20 null
|
107 观澜港 20#15 2 20
|
||||||
108 白叶渡 20#20 2 20 null
|
108 白叶渡 20#20 2 20
|
||||||
109 荆棘流域 30#30 2 20 null
|
109 荆棘流域 30#30 2 20
|
||||||
110 中心枢纽 20#10 2 20 null
|
|
||||||
|
|
|
||||||
|
|
@ -1,28 +1,147 @@
|
||||||
Id Style Refresh TriggerRules IsSchedule ExploreValues
|
Id Style Refresh TriggerRules IsSchedule ExploreValues
|
||||||
int int int int bool int
|
int int int int bool int
|
||||||
101001 1 2 1 0 0
|
101001 1 2 1 true 0
|
||||||
101002 2 2 1 0 0
|
101002 1 2 1 true 0
|
||||||
101003 4 2 1 0 0
|
101003 1 2 1 true 0
|
||||||
101004 1 2 1 0 0
|
101004 2 3 1 true 0
|
||||||
101005 1 2 1 0 0
|
101005 3 2 1 true 0
|
||||||
101006 5 3 1 0 0
|
101006 4 2 1 true 0
|
||||||
101007 5 4 1 0 0
|
101007 5 3 1 true 0
|
||||||
101008 5 2 1 0 0
|
101008 5 4 1 true 0
|
||||||
101009 5 3 1 0 0
|
101009 5 3 1 true 0
|
||||||
101010 5 2 1 0 0
|
101010 5 3 1 true 0
|
||||||
101011 5 2 1 0 0
|
101011 5 3 1 true 0
|
||||||
101012 3 2 1 0 0
|
101012 5 3 1 true 0
|
||||||
102001 1 2 1 0 0
|
101013 8 2 1 true 0
|
||||||
102002 1 2 1 0 0
|
102001 1 2 1 true 0
|
||||||
102003 1 2 1 0 0
|
102002 1 2 1 true 0
|
||||||
102004 1 2 1 0 0
|
102003 1 2 1 true 0
|
||||||
102005 5 3 1 0 0
|
102004 1 2 1 true 0
|
||||||
102006 5 3 1 0 0
|
102005 2 2 1 true 0
|
||||||
102007 5 3 1 0 0
|
102006 2 2 1 true 0
|
||||||
102008 5 3 1 0 0
|
102007 2 1 1 true 0
|
||||||
102009 5 3 1 0 0
|
102008 2 2 1 true 0
|
||||||
102010 2 1 1 0 0
|
102009 2 1 1 true 0
|
||||||
102011 2 2 1 0 0
|
102010 3 2 1 true 0
|
||||||
102012 2 2 1 0 0
|
102011 5 3 1 true 0
|
||||||
102013 2 1 1 0 0
|
102012 5 3 1 true 0
|
||||||
102014 2 2 1 0 0
|
102013 5 3 1 true 0
|
||||||
|
102014 5 3 1 true 0
|
||||||
|
102015 5 3 1 true 0
|
||||||
|
103001 1 2 1 true 0
|
||||||
|
103002 1 2 1 true 0
|
||||||
|
103003 1 2 1 true 0
|
||||||
|
103004 2 2 1 true 0
|
||||||
|
103005 2 1 1 true 0
|
||||||
|
103006 2 2 1 true 0
|
||||||
|
103007 2 1 1 true 0
|
||||||
|
103008 2 1 1 true 0
|
||||||
|
103009 2 2 1 true 0
|
||||||
|
103010 3 2 1 true 0
|
||||||
|
103011 4 2 1 true 0
|
||||||
|
103012 5 3 1 true 0
|
||||||
|
103013 5 3 1 true 0
|
||||||
|
103014 5 3 1 true 0
|
||||||
|
103015 5 3 1 true 0
|
||||||
|
103016 5 3 1 true 0
|
||||||
|
103017 5 3 1 true 0
|
||||||
|
103018 5 3 1 true 0
|
||||||
|
103019 5 3 1 true 0
|
||||||
|
103020 5 3 1 true 0
|
||||||
|
103021 5 3 1 true 0
|
||||||
|
103022 5 3 1 true 0
|
||||||
|
103023 8 2 1 true 0
|
||||||
|
104001 1 2 1 true 0
|
||||||
|
104002 1 2 1 true 0
|
||||||
|
104003 1 2 1 true 0
|
||||||
|
104004 2 2 1 true 0
|
||||||
|
104005 2 1 1 true 0
|
||||||
|
104006 2 2 1 true 0
|
||||||
|
104007 2 1 1 true 0
|
||||||
|
104008 2 1 1 true 0
|
||||||
|
104009 2 2 1 true 0
|
||||||
|
104010 2 2 1 true 0
|
||||||
|
104011 2 2 1 true 0
|
||||||
|
104012 3 2 1 true 0
|
||||||
|
104013 5 3 1 true 0
|
||||||
|
104014 5 3 1 true 0
|
||||||
|
104015 5 3 1 true 0
|
||||||
|
104016 5 3 1 true 0
|
||||||
|
104017 5 3 1 true 0
|
||||||
|
104018 5 3 1 true 0
|
||||||
|
104019 8 2 1 true 0
|
||||||
|
105001 1 2 1 true 0
|
||||||
|
105002 1 2 1 true 0
|
||||||
|
105003 1 2 1 true 0
|
||||||
|
105004 2 2 1 true 0
|
||||||
|
105005 2 1 1 true 0
|
||||||
|
105006 2 2 1 true 0
|
||||||
|
105007 2 1 1 true 0
|
||||||
|
105008 2 1 1 true 0
|
||||||
|
105009 2 2 1 true 0
|
||||||
|
105010 2 2 1 true 0
|
||||||
|
105011 2 2 1 true 0
|
||||||
|
105012 2 1 1 true 0
|
||||||
|
105013 3 2 1 true 0
|
||||||
|
105014 5 3 1 true 0
|
||||||
|
105015 5 3 1 true 0
|
||||||
|
105016 5 3 1 true 0
|
||||||
|
105017 5 3 1 true 0
|
||||||
|
105018 5 3 1 true 0
|
||||||
|
105019 5 3 1 true 0
|
||||||
|
105020 5 3 1 true 0
|
||||||
|
105021 4 2 1 true 0
|
||||||
|
105022 8 2 1 true 0
|
||||||
|
106001 1 2 1 true 0
|
||||||
|
106002 1 2 1 true 0
|
||||||
|
106003 2 2 1 true 0
|
||||||
|
106004 2 1 1 true 0
|
||||||
|
106005 2 2 1 true 0
|
||||||
|
106006 3 2 1 true 0
|
||||||
|
106007 5 3 1 true 0
|
||||||
|
106008 5 3 1 true 0
|
||||||
|
106009 5 3 1 true 0
|
||||||
|
106010 5 3 1 true 0
|
||||||
|
106011 5 3 1 true 0
|
||||||
|
106012 5 3 1 true 0
|
||||||
|
106013 8 2 1 true 0
|
||||||
|
107001 1 2 1 true 0
|
||||||
|
107002 1 2 1 true 0
|
||||||
|
107003 2 2 1 true 0
|
||||||
|
107004 2 1 1 true 0
|
||||||
|
107005 2 2 1 true 0
|
||||||
|
107006 2 2 1 true 0
|
||||||
|
107007 2 1 1 true 0
|
||||||
|
107008 2 2 1 true 0
|
||||||
|
107009 3 2 1 true 0
|
||||||
|
107010 5 3 1 true 0
|
||||||
|
107011 5 3 1 true 0
|
||||||
|
107012 5 3 1 true 0
|
||||||
|
107013 5 3 1 true 0
|
||||||
|
107014 5 3 1 true 0
|
||||||
|
107015 5 3 1 true 0
|
||||||
|
107016 5 3 1 true 0
|
||||||
|
107017 5 3 1 true 0
|
||||||
|
107018 5 3 1 true 0
|
||||||
|
107019 5 3 1 true 0
|
||||||
|
107020 5 3 1 true 0
|
||||||
|
107021 5 3 1 true 0
|
||||||
|
107022 5 3 1 true 0
|
||||||
|
107023 8 2 1 true 0
|
||||||
|
108001 1 2 1 true 0
|
||||||
|
108002 1 2 1 true 0
|
||||||
|
108003 1 2 1 true 0
|
||||||
|
108004 2 2 1 true 0
|
||||||
|
108005 2 1 1 true 0
|
||||||
|
108006 2 2 1 true 0
|
||||||
|
108007 2 2 1 true 0
|
||||||
|
108008 2 1 1 true 0
|
||||||
|
108009 2 2 1 true 0
|
||||||
|
108010 2 2 1 true 0
|
||||||
|
108011 3 2 1 true 0
|
||||||
|
108012 4 2 1 true 0
|
||||||
|
108013 5 3 1 true 0
|
||||||
|
108014 5 3 1 true 0
|
||||||
|
108015 5 3 1 true 0
|
||||||
|
108016 5 3 1 true 0
|
||||||
|
108017 5 3 1 true 0
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,63 @@
|
||||||
|
Id EventsId Order Contents Reward Jump OpenRules
|
||||||
|
int int int mut,int#int,2 mut,int#int,2 mut,int#int,2 mut,int#int,2
|
||||||
|
1 101001 1 1#10101 1 null null
|
||||||
|
2 101002 1 1#10102 1 null null
|
||||||
|
3 101003 1 1#10103 1 null null
|
||||||
|
4 101004 1 3#1200#1|6#100 2#0 null null
|
||||||
|
5 101005 1 11#0|6#1 null null null
|
||||||
|
6 101006 1 11#102|6#1 null null null
|
||||||
|
7 101007 0 3#2#0|6#100 null 1#1 null
|
||||||
|
8 101007 1 3#2#0|6#100 null 1#2 null
|
||||||
|
9 101007 2 3#2#0|6#100 null 1#3 null
|
||||||
|
10 101007 3 null null 1#4 null
|
||||||
|
11 101007 4 null null 1#5 null
|
||||||
|
12 101007 5 3#2#0|6#100 null 1#6 null
|
||||||
|
13 101007 6 null null 1#7 null
|
||||||
|
14 101007 7 null null 1#8 null
|
||||||
|
15 101007 8 null null 1#9 null
|
||||||
|
16 101007 9 null null 1#10 null
|
||||||
|
17 101007 10 null null 1#11 null
|
||||||
|
18 101007 11 null null 1#12 null
|
||||||
|
19 101007 12 null null 1#13 null
|
||||||
|
20 101007 13 null null 1#14 null
|
||||||
|
21 101007 14 null null 1#15 null
|
||||||
|
22 101007 15 null null 1#16 null
|
||||||
|
23 101007 16 null null 1#17 null
|
||||||
|
24 101007 17 null null 1#18 null
|
||||||
|
25 101007 18 null null 1#19 null
|
||||||
|
26 101007 19 null null null null
|
||||||
|
27 101008 0 null null 1#1 null
|
||||||
|
28 101008 1 null null 1#2 null
|
||||||
|
29 101008 2 null null 1#3 null
|
||||||
|
30 101008 3 null null 1#4 null
|
||||||
|
31 101008 4 null null 1#5 null
|
||||||
|
32 101008 5 null null 1#6 null
|
||||||
|
33 101008 6 null null 1#7 null
|
||||||
|
34 101008 7 null null 1#8 null
|
||||||
|
35 101008 8 null null 1#9 null
|
||||||
|
36 101008 9 null null 1#10 null
|
||||||
|
37 101008 10 null null 1#11 null
|
||||||
|
38 101008 11 null null 1#12 null
|
||||||
|
39 101008 12 null null 1#13 null
|
||||||
|
40 101008 13 null null 1#14 null
|
||||||
|
41 101008 14 null null 1#15 null
|
||||||
|
42 101008 15 null null 1#16 null
|
||||||
|
43 101008 16 null null 1#17 null
|
||||||
|
44 101008 17 null null 1#18 null
|
||||||
|
45 101008 18 null null 1#19 null
|
||||||
|
46 101008 19 null null 1#20 null
|
||||||
|
47 101008 20 null null 1#21 null
|
||||||
|
48 101008 21 null null 1#22 null
|
||||||
|
49 101008 22 null null 1#23 null
|
||||||
|
50 101008 23 null null 1#24 null
|
||||||
|
51 101008 24 null null 1#25 null
|
||||||
|
52 101008 25 null null 1#26 null
|
||||||
|
53 101008 26 null null 1#27 null
|
||||||
|
54 101008 27 null null 1#28 null
|
||||||
|
55 101008 28 null null 1#29 null
|
||||||
|
56 101008 29 null null 1#30 null
|
||||||
|
57 101008 30 null null 1#31 null
|
||||||
|
58 101008 31 null null 1#32 null
|
||||||
|
59 101008 32 null null null null
|
||||||
|
60 101009 1 null null null null
|
||||||
|
61 101010 1 null null null null
|
||||||
|
|
@ -25,31 +25,31 @@ public class SCMapEventsItemConfig implements BaseConfig{
|
||||||
/**
|
/**
|
||||||
* 事件内容
|
* 事件内容
|
||||||
*/
|
*/
|
||||||
private String contents;
|
private int[][] contents;
|
||||||
/**
|
/**
|
||||||
* 奖励
|
* 奖励
|
||||||
*/
|
*/
|
||||||
private String reward;
|
private int[][] reward;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 结果跳转
|
* 结果跳转
|
||||||
*/
|
*/
|
||||||
private String jump;
|
private int[][] jump;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 开启条件
|
* 开启条件
|
||||||
*/
|
*/
|
||||||
private String openRules;
|
private int[][] openRules;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void init() throws Exception {
|
public void init() throws Exception {
|
||||||
scMapEventsItemConfigMap = STableManager.getConfig(SCMapEventsItemConfig.class);
|
scMapEventsItemConfigMap = STableManager.getConfig(SCMapEventsItemConfig.class);
|
||||||
scMapEventsItemConfigs = new HashMap<>(scMapEventsItemConfigMap.size());
|
scMapEventsItemConfigs = new HashMap<>(scMapEventsItemConfigMap.size());
|
||||||
for (SCMapEventsItemConfig eventsItemConfigEntry : scMapEventsItemConfigMap.values()){
|
for (SCMapEventsItemConfig eventsItemConfigEntry : scMapEventsItemConfigMap.values()){
|
||||||
if (!scMapEventsItemConfigs.containsKey(eventsItemConfigEntry.getEventId())) {
|
if (!scMapEventsItemConfigs.containsKey(eventsItemConfigEntry.getEventsId())) {
|
||||||
scMapEventsItemConfigs.put(eventsItemConfigEntry.getEventId(), new HashMap<>());
|
scMapEventsItemConfigs.put(eventsItemConfigEntry.getEventsId(), new HashMap<>());
|
||||||
}
|
}
|
||||||
scMapEventsItemConfigs.get(eventsItemConfigEntry.getEventId()).put(eventsItemConfigEntry.getOrder(), eventsItemConfigEntry);
|
scMapEventsItemConfigs.get(eventsItemConfigEntry.getEventsId()).put(eventsItemConfigEntry.getOrder(), eventsItemConfigEntry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -57,18 +57,6 @@ public class SCMapEventsItemConfig implements BaseConfig{
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getEventId() {
|
|
||||||
return eventsId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getContents() {
|
|
||||||
return contents;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getReward() {
|
|
||||||
return reward;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getEventsId() {
|
public int getEventsId() {
|
||||||
return eventsId;
|
return eventsId;
|
||||||
}
|
}
|
||||||
|
|
@ -77,11 +65,19 @@ public class SCMapEventsItemConfig implements BaseConfig{
|
||||||
return order;
|
return order;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getJump() {
|
public int[][] getContents() {
|
||||||
|
return contents;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int[][] getReward() {
|
||||||
|
return reward;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int[][] getJump() {
|
||||||
return jump;
|
return jump;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getOpenRules() {
|
public int[][] getOpenRules() {
|
||||||
return openRules;
|
return openRules;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,85 @@
|
||||||
|
package com.ljsd.jieling.config;
|
||||||
|
|
||||||
|
import com.ljsd.jieling.logic.STableManager;
|
||||||
|
import com.ljsd.jieling.logic.Table;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Table(name ="MapEventsItemConfig")
|
||||||
|
public class SMapEventsItemConfig implements BaseConfig {
|
||||||
|
|
||||||
|
private int id;
|
||||||
|
|
||||||
|
private int eventsId;
|
||||||
|
|
||||||
|
private int order;
|
||||||
|
|
||||||
|
private int sort;
|
||||||
|
|
||||||
|
private int[][] contents;
|
||||||
|
|
||||||
|
private int[][] reward;
|
||||||
|
|
||||||
|
private int[][] jump;
|
||||||
|
|
||||||
|
private int[][] openRules;
|
||||||
|
|
||||||
|
private String unfinishInfo;
|
||||||
|
|
||||||
|
private String unfinishOption;
|
||||||
|
|
||||||
|
private int[][] unfinishContents;
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void init() throws Exception {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public int getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getEventsId() {
|
||||||
|
return eventsId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getOrder() {
|
||||||
|
return order;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getSort() {
|
||||||
|
return sort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int[][] getContents() {
|
||||||
|
return contents;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int[][] getReward() {
|
||||||
|
return reward;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int[][] getJump() {
|
||||||
|
return jump;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int[][] getOpenRules() {
|
||||||
|
return openRules;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUnfinishInfo() {
|
||||||
|
return unfinishInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUnfinishOption() {
|
||||||
|
return unfinishOption;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int[][] getUnfinishContents() {
|
||||||
|
return unfinishContents;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -199,13 +199,13 @@ public class MapLogic {
|
||||||
LOGGER.info("no scMapEventsItemConfig bigEventId=>{} smallEventId=>{}", bigEventId, schedule);
|
LOGGER.info("no scMapEventsItemConfig bigEventId=>{} smallEventId=>{}", bigEventId, schedule);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
String[] contents = scMapEventsItemConfig.getContents().split("\\|");
|
int[][] contents = scMapEventsItemConfig.getContents();
|
||||||
if (choice < contents.length - 1 || contents.length - 1 < choice) {
|
if (choice < contents.length - 1 || contents.length - 1 < choice) {
|
||||||
LOGGER.info("no this choice =>{} scMapEventsItemConfig.getContents()=>{}", choice, scMapEventsItemConfig.getContents());
|
LOGGER.info("no this choice =>{} scMapEventsItemConfig.getContents()=>{}", choice, scMapEventsItemConfig.getContents());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
String[] eventArr = contents[choice].split("#");
|
int[] eventArr = contents[choice];
|
||||||
switch (Integer.parseInt(eventArr[0])) {
|
switch (eventArr[0]) {
|
||||||
case EventType.fight: {
|
case EventType.fight: {
|
||||||
fightStart(uid, bigEventId);
|
fightStart(uid, bigEventId);
|
||||||
break;
|
break;
|
||||||
|
|
@ -218,7 +218,7 @@ public class MapLogic {
|
||||||
case EventType.useItem:
|
case EventType.useItem:
|
||||||
case EventType.scout: {
|
case EventType.scout: {
|
||||||
Map<Integer, Integer> useItems = new HashMap<>();
|
Map<Integer, Integer> useItems = new HashMap<>();
|
||||||
useItems.put(Integer.parseInt(eventArr[1]), Integer.parseInt(eventArr[2]));
|
useItems.put(eventArr[1], eventArr[2]);
|
||||||
ItemUtil.useItem(user, useItems);
|
ItemUtil.useItem(user, useItems);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -238,20 +238,20 @@ public class MapLogic {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (scMapEventsItemConfig.getJump() == null || scMapEventsItemConfig.getJump().isEmpty()) {
|
if (scMapEventsItemConfig.getJump() == null || scMapEventsItemConfig.getJump().length == 0) {
|
||||||
cell.getEventIds().put(bigEventId, schedule + 1);
|
cell.getEventIds().put(bigEventId, schedule + 1);
|
||||||
} else {
|
} else {
|
||||||
String[] jumps = scMapEventsItemConfig.getJump().split("\\|");
|
int[][] jumps = scMapEventsItemConfig.getJump();
|
||||||
for (int i = 0; i < jumps.length; i++) {
|
for (int i = 0; i < jumps.length; i++) {
|
||||||
String[] jump = jumps[i].split("#");
|
int[] jump = jumps[i];
|
||||||
if (Integer.parseInt(jump[0]) == choice - 1) {
|
if (jump[0] == choice - 1) {
|
||||||
cell.getEventIds().put(bigEventId, Integer.parseInt(jump[1]));
|
cell.getEventIds().put(bigEventId, jump[1]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String reward = scMapEventsItemConfig.getReward();
|
int[][] reward = scMapEventsItemConfig.getReward();
|
||||||
if (reward != null && !reward.isEmpty()) {
|
if (reward != null && reward.length > 0) {
|
||||||
Map<Integer, Integer> itemMap = new HashMap<>();
|
Map<Integer, Integer> itemMap = new HashMap<>();
|
||||||
// ItemUtil.addItem(user, itemMap);
|
// ItemUtil.addItem(user, itemMap);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue