turlockmike / swu-database

Database of all cards from the Star Wars Unlimited Game by FFG
MIT License
7 stars 2 forks source link

Completing SOR #6

Open razznblue opened 3 months ago

razznblue commented 3 months ago

Hi @turlockmike ! Any plans to add rest of the cards from SOR? If not, I am interested in taking on the task! Let me know if I should proceed. Thanks!

turlockmike commented 3 months ago

Please feel free. I haven't had time lately.

turlockmike commented 3 months ago

I don't really host the images anymore, so maybe shift them to the cdn that FFG is using

@razznblue

razznblue commented 3 months ago

I am thinking of modifying the json to include art for hyperspace variants as well, and also add in leader cards too. Are you good with that?

razznblue commented 3 months ago

Here is an example of what the new JSONCard's could look like. I simplified the Aspects and Traits(Probably going to change the name to Keywords), then I added a new Art object containing the images. I also added a Variants array for hyperspace, and showcase if any.

Going to make a script to update the rest of the cards, and include it in a PR 😎

  {
    "Set": "SOR",
    "#": "1",
    "Card Name": "Director Krennic",
    "Title": "Aspiring to Authority",
    "Type": "Leader",
    "Rarity": "C",
    "Arena": "Ground",
    "Unique": true,
    "Cost": 5,
    "Aspects": ["Vigilance", "Villainy"],
    "Power": 2,
    "HP": 7,
    "Keywords": ["Imperial", "Official"],
    "Front Text": "Each friendly damaged unit gets +1/+0. Epic Action: If you control 5 or more resources, deploy this leader.",
    "DoubleSided": true,
    "Back Text": "Restore 2 (When this unit attacks, heal 2 damage from your base.). Each friendly damaged unit gets +1/+0.",
    "Artist": "Ario Murti",
    "Image Url Front": "https://d2fnabvvx1kdzc.cloudfront.net/images/sets/SOR/001.png",
    "Epic Action Text": "If you control 5 or more resources, deploy this leader.",
    "Image Url back": "https://d2fnabvvx1kdzc.cloudfront.net/images/sets/SOR/001-b.png",
    "Front Landscape": true,
    "Back Landscape": false,
    "Spoiler Source Url": "https://twitter.com/UnlimitedFFG/status/1677331851038322690",
    "Art": {
      "Artist": "Ario Murti",
      "Front": {
        "Image Url": "https://cdn.starwarsunlimited.com/SWH_01_001_Director_Krennic_Leader_62eaa20dc2.png",
        "Landscape": true
      },
      "Back": {
        "Image Url": "https://cdn.starwarsunlimited.com/SWH_01_001_Director_Krennic_Leader_Unit_e2c6231b35.png",
        "Landscape": false
      }
    },
    "Variants": [
      {
        "Name": "Hyperspace",
        "#": "269",
        "Art": {
          "Artist": "Ario Murti",
          "Front": {
            "Image Url": "https://cdn.starwarsunlimited.com//SWH_01_269_Director_Krennic_Leader_HYP_9ad99d4e99.png",
            "Landscape": true
          },
          "Back": {
            "Image Url": "https://cdn.starwarsunlimited.com//SWH_01_269_Director_Krennic_Leader_Unit_HYP_2327f13ba3.png",
            "Landscape": false
          }
        }
      },
      {
        "Name": "Showcase",
        "#": "253",
        "Art": {
          "Artist": "Eslam AboShady",
          "Front": {
            "Image Url": "https://cdn.starwarsunlimited.com//SWH_01_253_Director_Krennic_Leader_SHO_2bc596e97d.png",
            "Landscape": true
          },
          "Back": {
            "Image Url": "https://cdn.starwarsunlimited.com//SWH_01_253_Director_Krennic_Leader_Unit_SHO_f0a45651f1.png",
            "Landscape": false
          }
        }
      }
    ]
  }