This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import argparse | |
import os | |
from collections import defaultdict | |
def parse_cyclonedx_bom(bom_file_path): | |
""" | |
Parses a CycloneDX JSON BOM file to extract all component names and their versions. | |
Args: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const createTestAbilityOutcomeWithDr = async ({ actor, ability, dr }) => | |
game.pirateborg.api.utils.asyncPipe( | |
game.pirateborg.api.outcomes.testOutcome({ | |
type: `test-${ability}`, | |
formula: `1d20+@abilities.${ability}.value`, | |
formulaLabel: `1d20 + ${game.i18n.localize(CONFIG.PB.abilityKey[ability])}`, | |
data: actor.getData(), | |
dr: dr | |
}) | |
)(); |