add rules text

This commit is contained in:
stryan 2021-11-30 21:41:03 -05:00
parent f99c7118e1
commit a97179bb57
3 changed files with 82 additions and 27 deletions

View File

@ -6,4 +6,5 @@ type CardConfig struct {
Rank int `json:'rank'`
ImageURI string `json:"image_uri"`
Flavour string `json:"flavour"`
Rules string `json:"rules_text"`
}

View File

@ -4,163 +4,216 @@
"name":"Valkyrie",
"rank":1,
"image_uri":"https://static.wikia.nocookie.net/namco/images/e/e6/Valkyrie_-_PXZ2.png/revision/latest/scale-to-width-down/1000?cb=20200325214913",
"flavour":"Even the gods may die"
"flavour":"Even the gods may die",
"rules_text":""
},
{
"codename":"Speedster",
"rank":1,
"image_uri":"https://pm1.narvii.com/6802/6f2224f6cc51736c356a23cf478f8f113c0939c1v2_hq.jpg",
"flavour":"He's one speedy boy"
"flavour":"He's one speedy boy",
"rules_text":""
},
{
"codename":"Commander",
"rank":2,
"image_uri":"https://static.wikia.nocookie.net/tower-defense-sim/images/9/9f/GalacticCommanderIcon.png/revision/latest/scale-to-width-down/300?cb=20210710195229",
"flavour":"Compassion is a rarity on the battlefield"
"flavour":"Compassion is a rarity on the battlefield",
"rules_text":""
},
{
"codename":"Paladin",
"rank":3,
"image_uri":"www.oocities.org/war3squad/images/human/heroes/paladin.jpg",
"flavour":"His faith will be his allies shield"
"flavour":"His faith will be his allies shield",
"rules_text":""
},
{
"codename":"Scholar",
"rank":4,
"image_uri":"http://4.bp.blogspot.com/-MARzt9MIdyw/Un41mM4IX7I/AAAAAAAADzI/dMx68OMcIRY/s1600/godfrey-kneller-a-scholar-in-his-study.jpg",
"flavour":"Her wisdom is envied by all"
"flavour":"Her wisdom is envied by all",
"rules_text":""
},
{
"codename":"Warrior",
"rank":5,
"image_uri":"http://2.bp.blogspot.com/-q9NXuKWMxIE/UVIbfWKEiAI/AAAAAAAAAFo/K6YXuM_5Dbg/s1600/Knight+lady+white+battler.png",
"flavour":"A stalwart friend in times of need"
"flavour":"A stalwart friend in times of need",
"rules_text":""
},
{
"codename":"Fighter",
"rank":6,
"image_uri":"https://www.arcadequartermaster.com/capcom/sfa2/sfa2_ryu1.gif",
"flavour":"From the deepest pits he climbed to victory"
"flavour":"From the deepest pits he climbed to victory",
"rules_text":""
},
{
"codename":"Seven",
"name":"Seven",
"rank":7,
"image_uri":"https://botw-pd.s3.amazonaws.com/styles/logo-thumbnail/s3/052018/untitled-1_135.png?v63ecHVYxcp6E2nfD8iaDqZpsnUaKoEP&itok=0Ayzi_J2",
"flavour":"Seven"
"flavour":"Seven",
"rules_text":""
},
{
"codename":"ShieldWall",
"rank":8,
"image_uri":"https://i.imgflip.com/2/1ii9tn.jpg",
"flavour":"Together we stand"
"flavour":"Together we stand",
"rules_text":""
},
{
"codename":"HealthPotion",
"rank":1,
"image_uri":"https://bloodstainedritualofthenight.wiki.fextralife.com/file/Bloodstained-Ritual-of-The-Night/high-potion-bloodstained-ritual-of-the-night-wiki-guide.png",
"flavour":"Bottoms up!"
"flavour":"Bottoms up!",
"rules_text":""
},
{
"codename":"Tree",
"rank":1,
"image_uri":"https://static.wikia.nocookie.net/dota2_gamepedia/images/3/3f/Treant_Protector_icon.png/revision/latest/scale-to-width-down/256?cb=20160411210417",
"flavour":"Trees can be ferocious if provoked"
"flavour":"Trees can be ferocious if provoked",
"rules_text":""
},
{
"codename":"Goblin",
"rank":1,
"image_uri":"https://dmdave.com/wp-content/uploads/2020/02/shadow-goblin.png",
"flavour":"Nasty, filthy little buggers"
"flavour":"Nasty, filthy little buggers",
"rules_text":""
},
{
"codename":"Chupacabra",
"rank":1,
"image_uri":"https://c1.scryfall.com/file/scryfall-cards/art_crop/front/f/4/f4846664-4463-4521-bb3f-3a4d00fa418d.jpg",
"flavour":"Opening the crypt unleashed more horrors than just the her"
"flavour":"Opening the crypt unleashed more horrors than just the her",
"rules_text":""
},
{
"codename":"Ally",
"rank":2,
"image_uri":"https://media-5.eldoradofurniture.com/images/products/marketing/2018-12/DRESSER%2DALLY%2DWHITE%2DEL%2DDORADO%2DFURNITURE%2D15%2D300723010%2D012%5FMEDIUM%2EJPG",
"flavour":"A helping hand"
"flavour":"A helping hand",
"rules_text":""
},
{
"codename":"Enemy",
"rank":2,
"image_uri":"https://ms.yugipedia.com/e/ea/EOJ-BoosterEN.png",
"flavour":"A hurtful foot"
"flavour":"A hurtful foot",
"rules_text":""
},
{
"codename":"Duelist",
"rank":3,
"image_uri":"https://vignette.wikia.nocookie.net/aura-kingdom/images/2/22/JPAK_Duelist.png/revision/latest/scale-to-width-down/147?cb=20170518191446",
"flavour":"Haha, riposte!"
"flavour":"Haha, riposte!",
"rules_text":""
},
{
"codename":"Bureaucrat",
"rank":3,
"image_uri":"http://static1.wikia.nocookie.net/__cb20090720232813/en.futurama/images/d/d6/Bureaucrats.jpg",
"flavour":"Sign here, initial here, and we'll get you the next document in oh, six to eight weeks."
"flavour":"Sign here, initial here, and we'll get you the next document in oh, six to eight weeks.",
"rules_text":""
},
{
"codename":"Vanguard",
"rank":4,
"image_uri":"https://static2.mtgarena.pro/mtg/pict/adanto-vanguard-art-mtga.png",
"flavour":"In the name of the queen!"
"flavour":"In the name of the queen!",
"rules_text":""
},
{
"codename":"Student",
"rank":4,
"image_uri":"http://images.clipartpanda.com/grade-clipart-TN_student-showing-his-good-grade.jpg",
"flavour":"Just pour the coffee into my eyes, thanks"
"flavour":"Just pour the coffee into my eyes, thanks",
"rules_text":""
},
{
"codename":"Librarian",
"rank":4,
"image_uri":"http://cdn.xl.thumbs.canstockphoto.com/canstock43150378.jpg",
"flavour":"Shh!"
"flavour":"Shh!",
"rules_text":""
},
{
"codename":"Elephant",
"rank":5,
"image_uri":"http://images6.fanpop.com/image/photos/33600000/Double-icon-skullgirls-33648932-160-160.png",
"flavour":"We are rich and we're not going to take it anymore"
"flavour":"We are rich and we're not going to take it anymore",
"rules_text":""
},
{
"codename":"Mesmerist",
"rank":6,
"image_uri":"https://www.chessvariants.com/mvopponent.dir/mesmerist.gif",
"flavour":"He'll let you see the world"
"flavour":"He'll let you see the world",
"rules_text":""
},
{
"codename":"Diviner",
"rank":6,
"image_uri":"https://static1.cards-capital.com/64786-product/diviner-of-the-herald.jpg",
"flavour":"She'll take whatever you've got to see the future"
"flavour":"She'll take whatever you've got to see the future",
"rules_text":""
},
{
"codename":"Hologram",
"rank":8,
"image_uri":"https://rimstar.org/science_electronics_projects/hologram_pyramid_diy_homemade/princess_leia_hologram_side_3.jpg",
"flavour":"Sometimes you just need to buy some time"
"flavour":"Sometimes you just need to buy some time",
"rules_text":""
},
{
"codename":"GoblinSpawn",
"rank":0,
"image_uri":"https://photos.gograph.com/thumbs/CSP/CSP040/k23877435.jpg",
"flavour":"And there's always more of them"
"flavour":"And there's always more of them",
"rules_text":""
},
{
"codename":"Dud",
"rank":0,
"image_uri":"http://img.tfd.com/wn/35/66720-dud.png",
"flavour":":("
"flavour":":(",
"rules_text":""
},
{
"codename":"Clog",
"rank":0,
"image_uri":"http://sr.photos1.fotosearch.com/bthumb/CSP/CSP990/k10380680.jpg",
"flavour":"And sign here"
"flavour":"And sign here",
"rules_text":""
}
]

View File

@ -70,6 +70,7 @@ func LoadCards(file string) CardDB {
Rank: v.Rank,
ImageURI: v.ImageURI,
Flavour: v.Flavour,
Rules: v.Rules,
}
if v.Name == "" {
cardDB[t].Name = v.CodeName