-
v1.2.0 Stable
released this
2023-05-14 13:21:27 +00:00 | 1446 commits to main since this releaseVersion 1.2 is here!
After a week of work, update 1.2 is finished.
Here are the changes:Player changes
Ai attack models #34
You can now switch between ai attack models by changing
AIAttackModelin the ai config. Setting this value to1will make the ai use the old attacking code, before3ff32b7. Setting this to any other values makes the ai use the default one.Creator changes
BREAKING CHANGE: Renamed game passives to events #39
All functions work the same, just with different names.
game.functions.addPassivehas been renamed togame.functions.addEventListenergame.GameStatshas been renamed togame.EventManager.
game.passiveshas been renamed togame.eventListeners
game.statshas been renamed togame.events
game.stats.updatehas been renamed togame.events.broadcast
game.updatePassiveshas been renamed togame.triggerEventListeners
All event names have been changed. Look atevents.txt.BREAKING CHANGE:
functions.getCardsnow returns a list instead of an object #16This now returns a list of blueprints, instead of an object like it used to. This is because I was always just doing
Object.values(functions.getCards())regardless. If you want the keys of the old version, you can just dofunctions.getCards().map(c => c.name).Improved backups #33
The card class now has the
createBackupandrestoreBackupfunctions. This will allow you to create and restore infinite amounts of backups of cards. Why? ...Added functions to copy cards #50
The card class now has the
perfectCopyandimperfectCopyfunctions.perfectCopywill make a perfect copy of the card, this is rarely useful.imperfectCopywill make an imperfect copy of the card, this happens when, for example, shuffling a card into the player's deck.Added a way to run the vanilla card creator through the runner #48
You can now add vanilla cards through the runner, instead of having to open up the folder and running it from there.
Added breaking change script #54
Added a breaking change script. You can type in a regular expression to search for, and it will show every card that matches the search. You can then run a command for each of them, like
vim. This will make it a lot easier to make breaking changes, but there are a lot of other uses this has.Added missing docstrings #12
All functions in the source code now have docstrings!
Small changes
Made the tester handle crashes #41
The tester (
test.js) will now show more information when the game crashes, it will show the ai's history, and the general history.Made the card creator more readable #53
The card creator code has always been a mess, even before the rewrite (
19d2384). The card creator code should now be more readable, except for thedoCodefunction. I'm not brave enough yet. <-- #81 for 1.3Fixed a bug in the deck creator #47
The deck creator got confused when you added cards that began with
p,a, orr, without typing a command before it, and thought you were trying to do other commands. I'm surprised it took me this long to notice that.Made the ai trade #66
Before this, the ai would never trade.
Changelog:
- Allowed user to switch between ai attack models by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/35
- Improved backups by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/37
- Added missing docstrings by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/42
- Updated old name in code by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/43
- Made tester handle crashes by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/44
- Updated a deck by @LunarTides in https://github.com/LunarTides/Hearthstone.js/pull/52
- Made the card creator more readable by @LunarTides in https://github.com/LunarTides/Hearthstone.js/pull/53
- Fixed a bug in the deck creator. by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/57
- Unified viewing cards by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/58
- Added a way to run the vanilla card creator through the runner by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/61
- Added breaking change script by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/62
- Made getCards return a list by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/63
- Added
perfectCopyandimperfectCopyto cards by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/64 - Renamed game passives to events by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/65
- Made the ai trade better by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/66
- Small tweaks to card functions by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/67
- Resolved todo's by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/68
- Prevented more infinite loops by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/69
Full Changelog: https://github.com/LunarTides/Hearthstone.js/compare/v0.1.0...v1.2.0
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads