feat(cli): add --simple-monster-death option to kill monsters at hp <= 0
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user