forked from MagicBane/Server
Load Powers.cfg at world boot
PowerParser loads Powers.cfg into PowerTemplate._powers. The 22 header fields are named after the client loader's error messages (0x56E410); ACTION= lines keep trains, duration, curve and stack fields; prereqs, curves, flags, messages and CONDITION blocks are kept. Keys compare case-insensitively, as in the client. Four keys the client ignores (APPLYDAMAGESELF=, APPLYEFFECTCASTER=, APPLYEFFECTTARGET= and a POWEREND= typo) are skipped; any other unknown key fails the load. Numbers are read like the client's atoi/atof with a warning when a token isn't clean: PRL-033 init time "2.9.0" -> 2.9 and SGE-001 precision "10.0" -> 10, which matches the DB. Ten EQPREREQ lines end without a required flag, which the client reads as 0. Needs the fixed Powers.cfg (SRDX-DB header had "SPELL 15 Unknown" pasted twice; fixed in MBDATA, findings section 6). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
623f7c4ae6
commit
bd145b1e55
5 files changed
+497
-3
No files matched your search
@@ -208,7 +208,7 @@ public class EffectParser {
|
||||
mod.curve = WpakParserUtil.curveToken(line, 3);
|
||||
}
|
||||
|
||||
private static EffectTemplate.ConditionEntry parseCondition(WpakLine line) {
|
||||
static EffectTemplate.ConditionEntry parseCondition(WpakLine line) {
|
||||
|
||||
EffectTemplate.ConditionEntry condition = new EffectTemplate.ConditionEntry();
|
||||
|
||||
|
||||
Reference in new issue
Block a user