Add ability for packs to add keywords, card types, etc... #466

Open
opened 2026-01-30 07:55:08 +00:00 by LunarTides · 0 comments
LunarTides commented 2026-01-30 07:55:08 +00:00 (Migrated from github.com)

This seems tricky to implement. I guess the types should be in their own files? Like:

// src/types/card/keywords.ts
// This file can be edited automatically.
// If you're planning to edit this file, please keep the structure of the file the same.

export enum Keyword {
    // ...
}

Then these files can be edited easier?

Packs can then specify stuff they want to add (replaces requires)
These can be called wants. E.g.

// pack.jsonc
{
    "name": "Example",
    // ...
    "wants": {
        "keywords": ["Discombobulate"],
        "types": [], // List of card types.
        "cards": [], // List of ids.
    },
}
This seems tricky to implement. I guess the types should be in their own files? Like: ```ts // src/types/card/keywords.ts // This file can be edited automatically. // If you're planning to edit this file, please keep the structure of the file the same. export enum Keyword { // ... } ``` Then these files can be edited easier? Packs can then specify stuff they want to add (replaces `requires`) These can be called `wants`. E.g. ```jsonc // pack.jsonc { "name": "Example", // ... "wants": { "keywords": ["Discombobulate"], "types": [], // List of card types. "cards": [], // List of ids. }, } ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
LunarTides/Hearthstone.js#466
No description provided.