diff options
| author | Kyle Gunger <kgunger12@gmail.com> | 2022-07-19 00:31:02 -0400 | 
|---|---|---|
| committer | Kyle Gunger <kgunger12@gmail.com> | 2022-07-19 00:31:02 -0400 | 
| commit | 5207f04d5b775bf4805d83c81aaad1cfcf3fe68a (patch) | |
| tree | 66b31b953af2df99f2b74e296b4f77555b234642 /scripts/cards/deck.js | |
| parent | 1dab192a329b1ad966b0c1e0401eeaa78d5b752e (diff) | |
Change how card id's are held, add swapCard
Diffstat (limited to 'scripts/cards/deck.js')
| -rw-r--r-- | scripts/cards/deck.js | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/cards/deck.js b/scripts/cards/deck.js index 0c88821..8d38186 100644 --- a/scripts/cards/deck.js +++ b/scripts/cards/deck.js @@ -144,7 +144,7 @@ class Deck {  	{  		for(let i in this.cards)  		{ -			if(this.cards[i].getID() == id) +			if(this.cards[i].id === id)  				return this.removeCard(i);  		} @@ -186,7 +186,7 @@ class Deck {  	{  		for(let c of this.cards)  		{ -			if(c.getID() === id) +			if(c.id === id)  				return c;  		}  		return null;  |