[GH-ISSUE #6622] [Feature]: Game Mode: let a Game Master's invented opponent be a sheet, held to its class and tier #3709

Closed
opened 2026-10-21 06:06:25 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Sep 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6622

Originally assigned to: @kolacheee on GitHub.

What problem does this solve?

https://github.com/Pasta-Devs/Marinara-Engine/pull/6613 lets a bestiary creature carry a sheet in the ruleset's own terms. A creature the Game Master invents for one fight still has to be written as plain numbers, so an invented mage has no spell slots and no spells: no Fireball, no Thunderwave, nothing it pays for out of a pool.

Giving inventions a sheet raises three more questions, all ruled on in the #6613 review:

  1. An invented enemy has to follow the ruleset's own class resources. A Sorcerer should not have the whole spell list.
  2. The spells it was not given should be filled in without another request to the model, by probability from the competence and temperament system: a protective enemy leans to supportive spells, a highly competent one is likelier to carry reactions and counters, and so on.
  3. A boss is the exception. The Game Master writes it in full, since it may differ from the rest of the bestiary.

Proposed solution

  • A proposed opponent may carry a sheet. It is read leniently: names the ruleset does not have are dropped and said in the log, values are fitted to their field or column, numbers written beside the sheet are ignored, and a row that names a catalog entry ("Fireball", in any case) becomes that entry.
  • Unless it is a boss, an invented enemy keeps only the entries its ruleset opens to its sheet. A catalog filter with startFrom already names the sheet field its entries are organised by (the 5e spell list by class), so no format change is needed.
  • Unless it is a boss, the choices it left open in any list a creature chooses from (an ability source with onlyWhen) are filled by its competence and temperament. The fill is drawn from the fight seed, and only uses entries it can pay for from its own pools. The route assigns the enemy its tactics before the fight is built, so the creature fills and fights with one temperament.
  • Every invention is still held to its threat tier:
    • health is moved into the tier's band through the one field the health pool reads;
    • defense, to-hit and save difficulties are capped;
    • the best round is scaled down, counting the biggest slot it can afford.
  • The blueprint prompt shows the Game Master the ruleset's sheet ids, what each may hold, the lists a fight reads, the field that opens each list, and the names its catalogs offer.

Found while building it, and part of the same work:

  • A ruleset layer that removes an enum value should not make a creature using that value invalid. Otherwise the layer is silently skipped, or a packaged bestiary file is refused.
  • Strikes bought with one spend can go to any striking row, so a round has to be measured that way.
  • The 5e example's Toll Sergeant is filed under the tier its numbers actually match.

Alternatives considered

  • Keeping inventions as plain numbers. Rejected in review: casters need slots and spells.
  • A second model call to fill in spells. Rejected in review: it costs a request for something the competence and temperament system can decide.
  • Holding slot counts to a class table. No ruleset declares one today (5e types slots into fields), so the tier hold is what bounds the power they buy.

Additional context

Follow-up to https://github.com/Pasta-Devs/Marinara-Engine/issues/6610 and https://github.com/Pasta-Devs/Marinara-Engine/pull/6613. The work is built and validated locally, and will be opened as its own PR.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Sep 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6622 Originally assigned to: @kolacheee on GitHub. ## What problem does this solve? https://github.com/Pasta-Devs/Marinara-Engine/pull/6613 lets a bestiary creature carry a sheet in the ruleset's own terms. A creature the Game Master invents for one fight still has to be written as plain numbers, so an invented mage has no spell slots and no spells: no Fireball, no Thunderwave, nothing it pays for out of a pool. Giving inventions a sheet raises three more questions, all ruled on in the #6613 review: 1. An invented enemy has to follow the ruleset's own class resources. A Sorcerer should not have the whole spell list. 2. The spells it was not given should be filled in without another request to the model, by probability from the competence and temperament system: a protective enemy leans to supportive spells, a highly competent one is likelier to carry reactions and counters, and so on. 3. A boss is the exception. The Game Master writes it in full, since it may differ from the rest of the bestiary. ## Proposed solution - A proposed opponent may carry a `sheet`. It is read leniently: names the ruleset does not have are dropped and said in the log, values are fitted to their field or column, numbers written beside the sheet are ignored, and a row that names a catalog entry ("Fireball", in any case) becomes that entry. - Unless it is a boss, an invented enemy keeps only the entries its ruleset opens to its sheet. A catalog filter with `startFrom` already names the sheet field its entries are organised by (the 5e spell list by `class`), so no format change is needed. - Unless it is a boss, the choices it left open in any list a creature chooses from (an ability source with `onlyWhen`) are filled by its competence and temperament. The fill is drawn from the fight seed, and only uses entries it can pay for from its own pools. The route assigns the enemy its tactics before the fight is built, so the creature fills and fights with one temperament. - Every invention is still held to its threat tier: - health is moved into the tier's band through the one field the health pool reads; - defense, to-hit and save difficulties are capped; - the best round is scaled down, counting the biggest slot it can afford. - The blueprint prompt shows the Game Master the ruleset's sheet ids, what each may hold, the lists a fight reads, the field that opens each list, and the names its catalogs offer. Found while building it, and part of the same work: - A ruleset layer that removes an enum value should not make a creature using that value invalid. Otherwise the layer is silently skipped, or a packaged bestiary file is refused. - Strikes bought with one spend can go to any striking row, so a round has to be measured that way. - The 5e example's Toll Sergeant is filed under the tier its numbers actually match. ## Alternatives considered - Keeping inventions as plain numbers. Rejected in review: casters need slots and spells. - A second model call to fill in spells. Rejected in review: it costs a request for something the competence and temperament system can decide. - Holding slot counts to a class table. No ruleset declares one today (5e types slots into fields), so the tier hold is what bounds the power they buy. ## Additional context Follow-up to https://github.com/Pasta-Devs/Marinara-Engine/issues/6610 and https://github.com/Pasta-Devs/Marinara-Engine/pull/6613. The work is built and validated locally, and will be opened as its own PR. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3709
No description provided.