• v2.0.0-beta.0 e278d0fb7f

    v2.0.0-beta.0 Pre-release

    LunarTides released this 2023-09-19 19:31:24 +00:00 | 1018 commits to main since this release

    Moved language to TypeScript.

    Breaking Changes (non exhaustive)

    1. Card blueprints now look completely different
    2. Replaced tag format from &xExample&y to <foo>Example</foo>
    3. Renamed the class field to classes and made it an array.
    4. Renamed spellClass to spellSchool.
    5. Renamed frozen_turn to turnFrozen in cards.
    6. Removed corrupted field from cards.
    7. The spellSchool field is now required for spells. (enforced by the new Blueprint Validator)
    8. The hpCost field is now required for heroes.
    9. Renamed mana to cost.
    10. Every card now gets an id, no matter if it is collectible or not.
    11. The card creator library no longer has setDebug, setType functions and instead has parameters for those in the create function.
    12. Removed tests
    13. Switched color library
    14. Disabled use of console.log, you now have to use the game.log wrapper which supports tags natively
    15. Rewrote the game.functions.addEventListener function.
    16. Location card blueprints no longer supports stats. Use the new durability instead.
    17. Renamed card.settings to card.deckSettings.
    18. card.randomizeUUID no longer has a return value.
    19. A lot more.

    ^ At this point, just forget everything you have learned.

    Features

    1. Added game.ts:createGame since creating a game is a pretty common thing to do.
    2. Added the cmd debug command
    3. Added the undo debug command
    4. The reload command now targets graveyard too
    5. Added updateIds script. Use with caution.
    6. Added tick and handtick abilities. This ability triggers when the game ticks.
    7. Added create ability. This ability triggers when the card is created.
    8. Added support for import { ... } from "@Game/types.ts instead of import { ... } from "../../../../src/types.ts".
    9. Removed export and reworked undo commands in deck creator
    10. Changed config file format to toml.
    11. Added another DIY card
    12. A script to upgrade pre 2.0 cards. (Should fix most problems)
    13. Made the tag system ~10x more powerful.
    14. Added support for tags in placeholders
    15. Rewrote printAll (The code that shows you the game state)
    16. The game now cleanly exits when running the exit command in the runner.
    17. Rewrote the deck creator command system.
    18. A LOT of bugfixes.
    19. A lot more features.

    What's Changed

    Full Changelog: https://github.com/LunarTides/Hearthstone.js/compare/v1.6.2...v2.0.0-beta.0

    Downloads