战力单位显示

This commit is contained in:
雪风 2025-03-16 12:31:53 +08:00
parent 19dc4a2b0f
commit 1a888af6c5
1 changed files with 5 additions and 0 deletions

View File

@ -1051,6 +1051,10 @@ public class 特殊控制台 extends JFrame {
JSONArray zl = jsonObject2.getJSONArray("zl");
Start.zlConfigs = zl .toJavaList(ZLConfig.class).stream().sorted(Comparator.comparing(ZLConfig::getNum)).collect(Collectors.toList());
Start.zlkg = jsonObject2.getInteger("zlkg");
JSONArray shxs1 = Start.ConfigValuesJson.getJSONArray("shxs");
Start.shxs =shxs1.toArray(new String[0]);
}catch (Exception e){
e.printStackTrace();
}
@ -1058,6 +1062,7 @@ public class 特殊控制台 extends JFrame {
public static void setTwConfig() {
Start.ConfigValuesJson.put("shxs", Start.shxs);
String string = Start.ConfigValuesJson.toString();
String property = System.getProperty("user.dir");
FileWriter fileWriter = new FileWriter(new File(property + "\\配置文件\\伤害控制.ini"));