cardpack
Vars | |
card_count | The amount of cards to draw from the rarity table |
---|---|
contains_coin | Chance of the pack having a coin in it out of 10 |
guar_rarity | The guaranteed rarity table, acts about the same as the rarity table. it can have as many or as few raritys as you'd like |
guaranteed_count | The amount of cards to draw from the guaranteed rarity table |
rarity_table | The rarity table, the set must contain at least one of each |
series | The card series to look in |
Procs | |
buildCardListWithRarity | Returns a list of cards ids of card_cnt weighted by rarity from the pack's tables that have matching series, with gnt_cnt of the guaranteed table. |
returnCardsByRarity | Returns a list of card datums of the length cardCount that match a random rarity weighted by rarity_table[] |
Var Details
card_count
The amount of cards to draw from the rarity table
contains_coin
Chance of the pack having a coin in it out of 10
guar_rarity
The guaranteed rarity table, acts about the same as the rarity table. it can have as many or as few raritys as you'd like
guaranteed_count
The amount of cards to draw from the guaranteed rarity table
rarity_table
The rarity table, the set must contain at least one of each
series
The card series to look in
Proc Details
buildCardListWithRarity
Returns a list of cards ids of card_cnt weighted by rarity from the pack's tables that have matching series, with gnt_cnt of the guaranteed table.
returnCardsByRarity
Returns a list of card datums of the length cardCount that match a random rarity weighted by rarity_table[]