Skip to content

Add name and description parsing to rolltables - #1090

Merged
jendave merged 1 commit into
ben:mainfrom
jendave:rolltable-result-parsing
Jul 28, 2026
Merged

Add name and description parsing to rolltables#1090
jendave merged 1 commit into
ben:mainfrom
jendave:rolltable-result-parsing

Conversation

@jendave

@jendave jendave commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Datasworn oracle rows may carry secondary and tertiary text fragments (text2, text3) alongside the primary text. Populate the table result's name and description from them instead of collapsing everything into a single text value.

name renders as plain text, so when the primary text contains a compendium or oracle-category link, all fragments are combined into the enriched text field instead — each wrapped in its own paragraph so they render on separate lines.

Also re-import the affected oracle packs from datasworn-community data.

Oracles sometimes contain two or even three results. We can use both Result Name and Result Description fields in v13 and v14 to display the various results. Datasworn puts the results into text, text2 and text3. One issue is that any hyperlinks must be placed in the Result Description field. Currently, foundry-ironsworn puts the single text entry into the Result Description field.

Logic

  • If text is literal text and is the only entry, put it into Result Description. (current behavior)
  • If text is literal text and text2 and/or text3 exist, then put text into Result Name and text2 and text3 into Result Description
  • If text is a hyperlink, put all text* entries into Result Description

Oracles for Testing

  • Location Themes - Theme Type
  • Faction Types
  • Faction Influence
  • Starship Types
  • Starship Fleet
  • Delve - Site Starters

Datasworn oracle rows may carry secondary and tertiary text fragments
(`text2`, `text3`) alongside the primary `text`. Populate the table
result's `name` and `description` from them instead of collapsing
everything into a single `text` value.

`name` renders as plain text, so when the primary text contains a
compendium or oracle-category link, all fragments are combined into the
enriched `text` field instead — each wrapped in its own paragraph so
they render on separate lines.

Also re-import the affected oracle packs from datasworn-community data.
@jendave
jendave merged commit 2f38fb5 into ben:main Jul 28, 2026
2 checks passed
@jendave
jendave deleted the rolltable-result-parsing branch July 29, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants