|
|
|
@ -13,6 +13,7 @@ import engine.mbEnums;
@@ -13,6 +13,7 @@ import engine.mbEnums;
|
|
|
|
|
import engine.wpak.data.EffectDescription; |
|
|
|
|
import engine.wpak.data.PowerActionEntry; |
|
|
|
|
import engine.wpak.data.StatTransfer; |
|
|
|
|
import engine.wpak.data.TrackEntry; |
|
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
@ -59,6 +60,7 @@ public class PowerActionParser {
@@ -59,6 +60,7 @@ public class PowerActionParser {
|
|
|
|
|
PowerActionEntry powerActionEntry = new PowerActionEntry(); |
|
|
|
|
EffectDescription effectDescription; |
|
|
|
|
StatTransfer statTransfer; |
|
|
|
|
TrackEntry trackEntry; |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
// Remove all lines that contain a # and leading/trailing blank lines
|
|
|
|
@ -158,6 +160,15 @@ public class PowerActionParser {
@@ -158,6 +160,15 @@ public class PowerActionParser {
|
|
|
|
|
case "SetItemFlag": |
|
|
|
|
powerActionEntry.itemFlag = mbEnums.ItemFlags.valueOf(headerIterator.next()); |
|
|
|
|
break; |
|
|
|
|
case "Track": |
|
|
|
|
trackEntry = new TrackEntry(); |
|
|
|
|
trackEntry.action_id = headerIterator.next(); |
|
|
|
|
trackEntry.unknown1 = Boolean.parseBoolean(headerIterator.next()); |
|
|
|
|
trackEntry.unknown2 = Boolean.parseBoolean(headerIterator.next()); |
|
|
|
|
trackEntry.type = headerIterator.next(); |
|
|
|
|
trackEntry.min = Integer.parseInt(headerIterator.next()); |
|
|
|
|
trackEntry.max = Integer.parseInt(headerIterator.next()); |
|
|
|
|
break; |
|
|
|
|
case "Recall": // No arguments for these tags or not parsed
|
|
|
|
|
case "Teleport": |
|
|
|
|
case "TreeChoke": |
|
|
|
|