• v1.3.0 a87dfaa279

    Stable

    LunarTides released this 2023-05-14 13:20:11 +00:00 | 1388 commits to main since this release

    Version 1.3 is here!

    After another week of work, update 1.3 is finished.
    Here are the changes:

    Player changes

    Made mulligan show more information #79

    Now when mulligan-ing you will be able to see the entire game like you can when playing a card, instead of just the name of the cards in your hand.

    Creator changes

    BREAKING CHANGE Removed add_to_hand and clone parameters from interact.discover

    game.interact.discover no longer has the add_to_hand and clone parameters. You will have to manually clone and add the card to your hand. The example in the wiki has been updated, so check that out.

    Added a condition system #59

    You can now get a card to automatically say if it's condition is cleared. Check out cards/Tests/condition.js and cards/Tests/condition2.js

    Added a placeholder system #88

    You can now put a placeholder in the card's description like this: Draw cards equal to how many cards you have played while this was in your hand. (Currently: {amount}). You can then replace the {amount} with anything, and it will automatically keep updating it. Check out cards/Tests/placeholder.js.

    Added back type to card blueprints #49

    Card blueprints now have the type variable. Set this to Minion, Spell, Weapon, etc...

    Small changes

    Added support for vanilla deckcodes #56

    The game now supports vanilla Hearthstone deckcodes.
    Just put in a vanilla deckcode and it should work if every card in the deckcode is implemented in Hearthstone.js
    The good thing about this is that if the card isn't implemented, the game can just look up all of the information of that card and run it through the vanilla card creator to immediately create that card. The only thing you need to do is program the logic of the card.

    Made a crash log system #105

    Now when the game crashes, a file will be created in the new logs folder called crashlog-XX.XX.XX-XX.XX.XX.txt (The X's is the date it crashed at. Example: crashlog-04.05.23-23.59.59.txt).
    Drag this file into the Logs section when making a bug report.

    Made a log system #106

    This is the same as the crash log system, but it generates a log-XX.XX-----(etc...) instead.
    Drag this file into the Logs section when making a bug report where the game doesn't crash.

    Renamed card generator to vanilla card creator #55

    This just helps with clarity.

    Fixed an infuse bug #90

    Fixed a bug with the infuse keyword. I forgot to update a part of the code in 1.2.

    Made cast on draw spells also trigger when played #89

    This is vanilla functionality that i didn't know existed. Cast on Draw is now a keyword instead of a function.

    Made the test deck (30 Sheep) only work in debug mode #78

    The test deck is a pseudo-valid deck and so shouldn't exist outside of debug mode. Now if you don't enter a deckcode, it will show an error message.
    Debug mode is not a requirement if you're on the develop branch.

    Put the debug cards (inf mana, 10 mana) in cards/Debug #75

    I want to support these cards, but none of the other cards in cards/Tests, so i just moved these to another folder.

    Made the card creator even more readable #81

    Made the doCode function more readable (or at least better then what it was). Also renamed the function to createCard

    Version numbers now end with -stable or -dev #107

    This way, when you're on the develop branch, it won't say V1.2.0 or V1.3.0 when the stable branch is on V1.2.0, because that's a bit confusing.

    Changelog:

    Full Changelog: https://github.com/LunarTides/Hearthstone.js/compare/v1.2.0...v1.3.0

    Downloads