Add enchantment system #31
Labels
No labels
breaking change
duplicate
good first issue
help wanted
invalid
question
scope: card
scope: docs
scope: game
scope: registry
scope: script
scope: tool
scope: universe
tracker
type: bug
type: card request
type: documentation
type: enhancement
type: improvement
type: parity
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
LunarTides/Hearthstone.js#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This will make cards changing mana cost actually cooperate.
How it will work:
Enchantments will be an array added to cards.
The game can push something like:
+1 Mana-1 ManaMana = 1to the array in order to change the variable accordingly.
You can change all variables in a card. Do this by doing something like
(key is 'mana', val is 1)
Have the = enchantment apply first. For example if a minion has the enchantments:
-1 ManaMana = 1in that order, the resulting cost of that card should be 0.
The enchantments should be displayed when viewing a card.
The enchantments can apply when an enchantment is added. This means all variables need a baseline. You can use the
backupsvariable for this.Alternatively you can apply them in
game.stats.updateCardswhen triggering game-passives. Not sure of the logistics of this route, but it may work better.Add a whitelist of the numbers that will be reset to their baseline, and only do so if the number gets changed by an enchantment currently on the card.