Card system explanation #2
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
abgit/UGJ128#2
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?
Every card definition is the the
res://scripts/globals/card_database.gdscript.it must follow a scrict template
Template
The name of the effect must match EXACTLY the name of the variable located in
GameGlobalsyou want to change.Calculation of the stats
Everything said here is in :
res://scripts/globals/game_globals.gdEvery cards owned by the player live in the playerDeck dictionnary :
When a card in selected, it fires the function :
The recompute is done by taking the base stats and adding all the card effects contained in the playerDeck :
Adding a Card in the card databaseto Card system explanationYou can obviously change things around if needed ! The way it's handled is not the best mdr