Battles: Support overriding line sections
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled

Really this should probably be handled with `|` rather than with
a complicated system for guessing where to break messages... but
it's easier not to change these old systems.
This commit is contained in:
Guangcong Luo 2025-03-16 08:36:19 +00:00
parent dd5f8eb9c9
commit 5bfa08b1bd

View File

@ -385,6 +385,10 @@ export class BattleTextParser {
}
lineSection(args: Args, kwArgs: KWArgs) {
if (kwArgs.premajor) return 'preMajor';
if (kwArgs.postmajor) return 'postMajor';
if (kwArgs.major) return 'major';
const cmd = args[0];
switch (cmd) {
case 'done' : case 'turn':