Skip to content

Modifying a card

After following the getting started guide, we can start preparing card modifications. To do this, we're going to take a card called CARD_KING_OF_BEASTS. We want to change it to be a 6 attack / 6 health card that gives friendly followers +3/+3.

Preparing the mod

While changing coolmod, we're going to make a folder GameData/Sets/AOF and inside it put a copy of the Sets/AOF/CARD_KING_OF_BEASTS.json file.

First, we will change the AssetManifest.json file to include the game data:

{
    "filesList": [
        "Textures/*.png",
        "GameData/*.json"
    ]
}

Then, we're going to edit the CARD_KING_OF_BEASTS.json file. We want to change the HEALTH characteristic from 3 to 6 (the "...") means the rest of the code goes on):

...
{
  "n": "HEALTH",
  "c": "",
  "dt": 1,
  "iv": 6,
  "id": true
},
...

We changed the iv value from 3 to 6. The iv value is the Int Value, which is the number value of that characteristic. You can see how CardCharacteristic works in the game data reference.

Do the same for the ATTACK characteristic.

Then, we want to change the parameters of the IncreaseOthersStatsByTagsCardAbility ability (the "...") means the rest of the code goes on):

    {
      "name": "Increase others stats",
      "abilityName": "IncreaseOthersStatsByTagsCardAbility",
      "description": "",
      "parameters": [
        {
          "n": "ATTACK",
          "tag": null,
          "dt": 1,
          "iv": 3
        },
        {
          "n": "HEALTH",
          "tag": null,
          "dt": 1,
          "iv": 3
        },
...

We changed the ATTACK and HEALTH parameter's Integer Value (iv) to 3.

Now each beast card will gain +3 ATTACK and +3 HEALTH.