-
v2.0.0-beta.0 Pre-release
released this
2023-09-19 19:31:24 +00:00 | 1018 commits to main since this releaseMoved language to TypeScript.
Breaking Changes (non exhaustive)
- Card blueprints now look completely different
- Replaced tag format from
&xExample&yto<foo>Example</foo> - Renamed the
classfield toclassesand made it an array. - Renamed
spellClasstospellSchool. - Renamed
frozen_turntoturnFrozenin cards. - Removed
corruptedfield from cards. - The
spellSchoolfield is now required for spells. (enforced by the newBlueprint Validator) - The
hpCostfield is now required for heroes. - Renamed
manatocost. - Every card now gets an id, no matter if it is collectible or not.
- The card creator library no longer has
setDebug,setTypefunctions and instead has parameters for those in thecreatefunction. - Removed tests
- Switched color library
- Disabled use of
console.log, you now have to use thegame.logwrapper which supports tags natively - Rewrote the
game.functions.addEventListenerfunction. - Location card blueprints no longer supports
stats. Use the newdurabilityinstead. - Renamed
card.settingstocard.deckSettings. card.randomizeUUIDno longer has a return value.- A lot more.
^ At this point, just forget everything you have learned.
Features
- Added
game.ts:createGamesince creating a game is a pretty common thing to do. - Added the
cmddebug command - Added the
undodebug command - The
reloadcommand now targets graveyard too - Added
updateIdsscript. Use with caution. - Added
tickandhandtickabilities. This ability triggers when the game ticks. - Added
createability. This ability triggers when the card is created. - Added support for
import { ... } from "@Game/types.tsinstead ofimport { ... } from "../../../../src/types.ts". - Removed export and reworked undo commands in deck creator
- Changed config file format to toml.
- Added another DIY card
- A script to upgrade pre 2.0 cards. (Should fix most problems)
- Made the tag system ~10x more powerful.
- Added support for tags in placeholders
- Rewrote
printAll(The code that shows you the game state) - The game now cleanly exits when running the
exitcommand in the runner. - Rewrote the deck creator command system.
- A LOT of bugfixes.
- A lot more features.
What's Changed
- Update the develop branch to 1.7 by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/251
- Make
Prince Renathalnot as hardcoded by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/255 - Make the project more TypeScript compatible by @LunarTides in https://github.com/LunarTides/Hearthstone.js/pull/235
- Update develop with patches by @LunarTides in https://github.com/LunarTides/Hearthstone.js/pull/264
- Move to TypeScript by @IsakSkole123 in https://github.com/LunarTides/Hearthstone.js/pull/261
- Began adding tags in
console.logby @LunarTides in https://github.com/LunarTides/Hearthstone.js/pull/287 - Added durability for location cards by @LunarTides in https://github.com/LunarTides/Hearthstone.js/pull/289
- Added card validator system by @LunarTides in https://github.com/LunarTides/Hearthstone.js/pull/290
Full Changelog: https://github.com/LunarTides/Hearthstone.js/compare/v1.6.2...v2.0.0-beta.0
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads