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