Hello.
It is me again
.
Do we have a documentation on how "$this->cards->createCards" generates the card Id's ?
I am wondering because it does not seems to be related with the 'index" of the array of cards.
For example :
The card with the ID "1" will not necessarily the one with index "1".
I hope my question is clear.
NB : I am asking because I eventually need it for Riftforce as multiple cards have the same value (type_arg)
It is me again
Do we have a documentation on how "$this->cards->createCards" generates the card Id's ?
I am wondering because it does not seems to be related with the 'index" of the array of cards.
For example :
Code: Select all
// Create cards
$cards = array();
index = 1;
foreach( $this->colors as $color_id => $color ) // spade, heart, diamond, club
{
for( $value=2; $value<=14; $value++ ) // 2, 3, 4, ... K, A
{
$cards[] = array( 'type' => $color_id, 'type_arg' => $value, 'nbr' => 1);
index++;
}
}
$this->cards->createCards( $cards, 'deck' );I hope my question is clear.
NB : I am asking because I eventually need it for Riftforce as multiple cards have the same value (type_arg)