|
|
@ -9,6 +9,7 @@ |
|
|
|
package engine.wpak; |
|
|
|
package engine.wpak; |
|
|
|
|
|
|
|
|
|
|
|
import engine.gameManager.ConfigManager; |
|
|
|
import engine.gameManager.ConfigManager; |
|
|
|
|
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
|
import java.nio.file.Files; |
|
|
|
import java.nio.file.Files; |
|
|
@ -43,7 +44,11 @@ public class PowersParser { |
|
|
|
|
|
|
|
|
|
|
|
private static PowerEntry parsePowerEntry(String powerData) { |
|
|
|
private static PowerEntry parsePowerEntry(String powerData) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PowerEntry powerEntry = new PowerEntry(); |
|
|
|
PowerEntry powerEntry = new PowerEntry(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
String[] powerEntries = powerData.trim().split("\n"); |
|
|
|
String[] powerEntries = powerData.trim().split("\n"); |
|
|
|
ArrayList<String> powerHeader = new ArrayList<>(); |
|
|
|
ArrayList<String> powerHeader = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
@ -80,11 +85,16 @@ public class PowersParser { |
|
|
|
powerEntry.unknown05 = Integer.parseInt(powerHeader.get(20)); |
|
|
|
powerEntry.unknown05 = Integer.parseInt(powerHeader.get(20)); |
|
|
|
powerEntry.targetRequirement = powerHeader.get(21); |
|
|
|
powerEntry.targetRequirement = powerHeader.get(21); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int x = 2; x < powerEntries.length; x++) { |
|
|
|
for (int x = 2; x < powerEntries.length; x++) { |
|
|
|
// Parse key/pair values
|
|
|
|
// Parse key/pair values
|
|
|
|
// via switch
|
|
|
|
// via switch
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
Logger.error(powerEntry.power_id); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return powerEntry; |
|
|
|
return powerEntry; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|