forked from MagicBane/Server
PowerActionEntry parsing work.
This commit is contained in:
@@ -61,7 +61,7 @@ public class PowerActionParser {
|
|||||||
|
|
||||||
powerActionData = powerActionData.replaceAll("(?m)^(\\s*#.*|\\s*)\r?\n?", "").trim();
|
powerActionData = powerActionData.replaceAll("(?m)^(\\s*#.*|\\s*)\r?\n?", "").trim();
|
||||||
|
|
||||||
String[] lineData = powerActionData.trim().split("\n");
|
String[] lineData = powerActionData.split("\n");
|
||||||
|
|
||||||
// Parse effect entry header
|
// Parse effect entry header
|
||||||
|
|
||||||
@@ -86,6 +86,8 @@ public class PowerActionParser {
|
|||||||
effectDescription.level = Integer.parseInt(headerIterator.next());
|
effectDescription.level = Integer.parseInt(headerIterator.next());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Process key value pairs after header
|
||||||
|
|
||||||
return powerActionEntry;
|
return powerActionEntry;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user