Heroic Lands Heroic Lands
Home Thalorna Blog
Projects
Song of Heroic Lands HârnMaster 3 Modules API Documentation KnowledgeBase
License
  • Preparing search index...
  • The search index is not available
Song of Heroic Lands API - v0.8.2
  • Song of Heroic Lands API
  • sohl
  • document
  • actor
  • logic
  • readContagionTestForm

Function readContagionTestForm

  • readContagionTestForm(
        formData: Record<string, unknown>,
        afflictions: AfflictionChoice[],
    ): ContagionTestChoice | null
  • Parse the Contagion Test dialog form into a ContagionTestChoice. Pure and Foundry-free so it can be unit-tested.

    Parameters

    • formData: Record<string, unknown>

      The parsed dialog form data.

    • afflictions: AfflictionChoice[]

      The candidate afflictions; the <select> option values are their shortcodes.

    Returns ContagionTestChoice | null

    The parsed choice, or null when the selected shortcode is unknown.

    • Defined in src/document/actor/logic/affliction-contract.ts:78

Settings

Member Visibility
Song of Heroic Lands API - v0.8.2
  • Loading...

Generated using TypeDoc with typedoc-github-theme

© 2020–2026 Tom Rodriguez. Content under The World of Thalorna and Song of Heroic Lands is licensed under CC BY-SA 4.0; all other content is © Tom Rodriguez, all rights reserved. See License.

CC BY-SA 4.0 Discord