Skip to content

Conversation

@Chr1Z93
Copy link
Collaborator

@Chr1Z93 Chr1Z93 commented Aug 16, 2024

Fixed the order of some manually added fields in the GM notes.

For clarity, this is the applied order:

# order of keys for top-level structure
key_order = [
    "id",
    "alternate_ids",
    "type",
    "slot",
    "class",
    "cost",
    "level",
    "traits",
    "startsInHand",
    "startsInPlay",
    "permanent",
    "weakness",
    "basicWeaknessCount",
    "classRestriction",
    "modeRestriction",
    "hidden",
    "willpowerIcons",
    "intellectIcons",
    "combatIcons",
    "agilityIcons",
    "wildIcons",
    "dynamicIcons",
    "negativeIcons",
    "bonded",
    "uses",
    "victory",
    "doomThreshold",
    "customizations",
    "cycle",
    "extraToken",
    "signatures",
    "locationFront",
    "locationBack",
    "TtsZoopGuid",
]

# order of keys specifically for subtables (nested dictionaries)
subTableKeyOrder = [
    "victory",
    "vengeance",
    "icons",
    "connections",
    "uses",
    "count",
    "countPerInvestigator",
    "maxCount",
    "id",
    "replenish",
    "type",
    "token",
    "name",
    "xp",
    "text",
]

@Chr1Z93 Chr1Z93 added the optimization Improving something existing label Aug 16, 2024
@dscarpac dscarpac merged commit a0fa9d0 into main Aug 16, 2024
@dscarpac dscarpac deleted the gm-note-formatting branch August 16, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

optimization Improving something existing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants