feat(cli): add --simple-monster-death option to kill monsters at hp <= 0

This commit is contained in:
2026-09-11 12:48:43 +02:00
parent b7c80babfd
commit d6c8f88f77
5 changed files with 365 additions and 4 deletions
+9
View File
@@ -105,6 +105,14 @@ def main(argv: list[str] | None = None) -> int:
action="store_true",
help="print the turn-by-turn log of the first battle before the report",
)
parser.add_argument(
"--simple-monster-death",
action="store_true",
help=(
"monsters die at hp <= 0 instead of the PF1e hp <= -CON rule "
"(player characters are never affected)"
),
)
args = parser.parse_args(argv)
if not args.side:
parser.error("at least one --side is required")
@@ -124,6 +132,7 @@ def main(argv: list[str] | None = None) -> int:
seed=args.seed,
spell_registry=registry,
capture_first_transcript=args.transcript,
monsters_die_at_zero=args.simple_monster_death,
)
except ValueError as exc:
print(f"pf1e-sim: {exc}", file=sys.stderr)