Version 1.2 #82
LunarTides
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version 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
AIAttackModel
in the ai config. Setting this value to1
will make the ai use the old attacking code, before 3ff32b7. Setting this to any other values makes the ai use the default one.Creator changes
BREAKING CHANGE: Renamed game passives to events #39
game.functions.addPassive
has been renamed togame.functions.addEventListener
game.GameStats
has been renamed togame.EventManager
.game.passives
has been renamed togame.eventListeners
game.stats
has been renamed togame.events
game.stats.update
has been renamed togame.events.broadcast
game.updatePassives
has been renamed togame.triggerEventListeners
All event names have been changed. Look at
events.txt
.BREAKING CHANGE:
functions.getCards
now 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
createBackup
andrestoreBackup
functions. 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
perfectCopy
andimperfectCopy
functions.perfectCopy
will make a perfect copy of the card, this is rarely useful.imperfectCopy
will 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 the
doCode
function. 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:
perfectCopy
andimperfectCopy
to cards #64card.passiveCheck
<-- Kinda a breaking change, but who were using this anyways.~
before a&
to cancel the tag in a card's description. Example:&BBattlecry:&R If...
->Battlecry: If...
,~&BBattlecry:~&R If...
->&BBattlecry:&R If...
Beta Was this translation helpful? Give feedback.
All reactions