• v1.6.0 e0e223eed8

    Stable

    LunarTides released this 2023-08-05 17:35:08 +00:00 | 1217 commits to main since this release

    Version 1.6 is here!

    Here are the changes:

    Player changes

    None

    Creator changes

    BREAKING CHANGE: Removed update parameter from all functions #230

    BC Prompt: None, sorry

    Removed the update parameter from all functions that had it.
    Instead function docstrings show what events they can broadcast.
    Then you need to add this piece of code:

    game.suppressedEvents.push("[Event]");
    // Run the function that had the remove parameter
    game.suppressedEvents.pop();
    

    This might become easier to do in the future.

    BREAKING CHANGE: Rewrote game.functions.createWall.

    BC Prompt: \.createWall

    Previously, walls were created like this:

    let [wall, finishWall] = functions.createWall("-");
    
    wall.push(someArray);
    
    let finishedWall = finishWall();
    

    Now, walls are created like this:

    let finishedWall = functions.createWall(someArray, "-");
    

    Discover now filters class cards by default #221

    game.interact.discover now filters by game.functions.validateClass by default. The third parameter toggles it.

    Added ticks and tick hooks

    Alt version of passives with certain advantages and disadvantages.

    Added better documentation #218

    Added better documentation to nearly all functions / fields.

    Small changes

    Seperated the custom card creator into its own file #226

    The custom card creator and the card creator library are now in two different files.

    Added the version command

    This shows some information about the game. It also shows a todo-list.

    Removed the events debug command

    This command is now entirely useless because of the history command

    Massively improved the history command

    The history command now shows A LOT more information.

    Merged the two log files #214

    Merged the normal log file and the ai log file into 1 file.

    Made renathal actually work with the deck creator #212

    Renathal now works again. However there is still a bug where if you add renathal to your deck, then remove him, the deck will still require 40 cards. This bug is only on the card creator side, and the resulting deck will be rejected when trying to use it in a game. The only way to fix the bug currently is to restart the deck creator.

    Look up vanilla cards using their dbfId #172

    You can now look up vanilla cards using their dbfId. Find a card's dbfId by searching it up on the Hearthstone Wiki then CTRL+F on the webpage and type dbfId. For example, the dbfId of Brann Bronzebeard is 2949

    Added a regex toggle prompt to the breaking change script #198

    You can now choose if you want to use regex or not when using the breaking change script. Speaking of the breaking change script, for any changes here labelled BREAKING CHANGE, the thing under it that says BC Prompt: is a prompt which you can enter into the breaking change script to search for that breaking change and fix any of your cards that are affected.

    Fixed a class creator bug #229

    Bugged when any answer starts with b, it would think you wrote back if the answer to ANY of the class creator's question started with b

    When minions with reborn die, and their reborn effect kicks in, still grant 1 corpse, and add move the original minion to the graveyard (spoilers, when a minion with reborn dies, a new minion gets summoned in it's place)

    Removed game.dirname #199

    game.dirname was added since i once wrote __dirname__ instead of __dirname in a file, and thought you could only use __dirname in certain files.

    Began work on future updates

    Began work on things that couldn't fit into this update.

    A lot of small things that didn't make it on this list

    There is a list of things to cover to see a list of commits, go to #195.

    Fixed bugs

    Fixed a lot of bugs

    Changelog

    Full Changelog: https://github.com/LunarTides/Hearthstone.js/compare/v1.5.1...v1.6.0

    Downloads