Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1.35 KB

README.md

File metadata and controls

37 lines (21 loc) · 1.35 KB

Cards

This module contains all the cards available in this game.

See Matag: The Game wiki

Automated Build

Java CI with Maven

Developing

Read Requisites

Scripting

If you are brave enough and want to add a missing card, here's some tips.

Cards are in cards/src/main/resources.

They are in json format and it's a bit of a guessing game figuring out what abilities have already been implemented. The best thing is to perform a text search on this folder for a similar card.

Few steps to follow:

  1. Create a new JsonFile with the exact name of the card.
  2. Fill just the name.
  3. Run LinkerTest.scryFallLinker(). This will all basic card details (not the abilities).
  4. Populate the abilities accordingly (this is the hardest part).

After a card is coded is a very good idea to test it by importing the cards artifact into game starting the app in test mode:

  • adding the -Dspring.profiles.active=test profile in the maven command or intellij startup command
  • modifying the ProdInitTestService class by setting the board as you would like to start your test.