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
  • selectStrikeModeModifier

Function selectStrikeModeModifier

  • selectStrikeModeModifier(
        sm: sohl.entity.strikemode.StrikeModeBase,
        testKind: string,
    ): sohl.entity.modifier.CombatModifier | undefined
  • Return the CombatModifier that corresponds to a data-test-kind attribute on a Being-sheet strike-mode cell.

    • "attack" → sm.attack (all strike modes)
    • "block" → sm.defense.block (melee only)
    • "counterstrike" → sm.defense.counterstrike (melee only)

    Returns undefined for an unrecognised kind or when a defense kind is requested but the mode is not a MeleeStrikeMode.

    Parameters

    • sm: sohl.entity.strikemode.StrikeModeBase

      The strike mode to read the modifier from.

    • testKind: string

      The data-test-kind string: "attack", "block", or "counterstrike".

    Returns sohl.entity.modifier.CombatModifier | undefined

    The matching CombatModifier, or undefined.

    • Defined in src/document/actor/logic/being-sheet-view.ts:985

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