Skip to content
Grimm edited this page Apr 11, 2022 · 3 revisions

Shops and enemies will give different reward. Each time an rewards object needs to be define, it has to have to define some fields. Example:

    {
      "type": "randomCard",
      "probability": 1,
      "count":1,   
      "addMaxCount":8, 
      "colors": ["red"],
      "rarity": ["rare"],
      "editions": ["M22","M21"],
      "cardTypes": ["Instant","Creature"],
      "colorType": "MultiColor",
      "subTypes": ["Elf"]
      "cardName":"",
      "superTypes" :[]
    }

Fields:

type

Defines the type of reward.
possible types are:
randomCard will create an random card from all possible cards.
deckCard will draw cards from the defeated enemy.
card will reward the player with a defined card.
gold will reward the player with gold.
life will increase the maximum life of the player.

probability

The probability how likley the reward will appear.
default 1.

count

Get this reward at least "count" times.
default 1.

addMaxCount

Get this reward up to additional "addMaxCount" times.
This means you will get the reward "count" to "addMaxCount" times. default 0.

colors

An array of the possible colors for randomCard and deckCard.

rarity

An array of the possible raritys for randomCard and deckCard.

editions

An array of the possible editions for randomCard and deckCard.

cardTypes

An array of the possible cardTypes for randomCard and deckCard.
"Instant","Creature","Artifact" etc

subTypes

An array of the possible subTypes for randomCard and deckCard.
Usually used for creature types

superTypes

An array of the possible superTypes for randomCard and deckCard.
"Legendary", "Basic", "Snow"

cardName

An array of the possible colors for randomCard and deckCard. The exact name for card

Clone this wiki locally