feat: colors, images for later cards & more
release-tag / release-image (push) Successful in 14s

This commit is contained in:
2024-08-07 00:06:53 +02:00
parent 67c525a65f
commit 37cd61c268
10 changed files with 61 additions and 9 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+20
View File
@@ -296,13 +296,33 @@
"image_path": "../../img/skins/heron/059.png"
},
"61": {
"title": "Forethought",
"image_path": "../../img/skins/heron/061.png"
},
"65": {
"title": "Starlight Convergence",
"image_path": "../../img/skins/heron/065.png"
},
"68": {
"title": "Confisquer",
"image_path": "../../img/skins/heron/068.png"
},
"70": {
"title": "Jus de Prune",
"image_path": "../../img/skins/heron/070.png"
},
"71": {
"title": "Rosser",
"image_path": "../../img/skins/heron/071.png"
},
"73": {
"title": "Trading Card",
"image_path": "../../img/skins/heron/073.png"
},
"74": {
"title": "Scout, Nain de DRG",
"image_path": "../../img/skins/heron/074.png"
}
}
+13 -5
View File
@@ -1,11 +1,14 @@
{
"card_type":{
"action":"Action",
"champion":"Champion"
"champion":"Champion",
"item": "Objet"
},
"numbers":{
"1": "une",
"2": "deux"
"2": "deux",
"3": "trois",
"4": "quatre"
},
"effects":{
"draw":"Piochez une carte.",
@@ -25,8 +28,12 @@
"prepare":"Mobilisez un Champion",
"prepare_all_champions":"Mobilisez vos Champions.",
"prepare_another_champion":"Mobilisez un autre Champion.",
"cheaper_champions_passive":"Le prochain Champion que vous achetez\nvous coûte 1 de moins ce tour-ci.",
"control_opposing_champion_passive":"Prenez le contrôle d'un Champion\nennemi jusqu'à la fin du tour."
"cheaper_champions_passive":"Les Champions que vous achetez ce tour-ci\nvous coûtent 1 de moins.",
"cheaper_champion": "Le prochain Champion que vous achetez\nvous coûte 1 de moins.",
"control_opposing_champion_passive":"Prenez le contrôle d'un Champion\nennemi jusqu'à la fin du tour.",
"buy_for_free_amount":"Vous pouvez acquérir gratuitement\nune carte de coût %a ou moins.",
"damage_all_champions_amount":"Infligez %a dégats à tous\nles Champions adverses.",
"discard_x_and_draw_x":"Vous pouvez vous défausser de\nn'importe quel nombre de cartes\net en piocher autant."
},
"per":{
"champion":"pour chaque Champion\nque vous avez en jeu",
@@ -34,7 +41,8 @@
"other_guard":"pour chaque autre\nGarde que vous avez en jeu",
"other_card_of_same_faction":"pour chaque autre x\nque vous avez en jeu",
"champion_of_same_faction":"pour chaque Champion x\nque vous avez en jeu",
"other_knife_played":"pour chaque autre Couteau\nque vous avez en jeu"
"other_knife_played":"pour chaque autre Couteau\nque vous avez en jeu",
"stunned_champion": "pour chaque Champion\nassommé"
}
}
+2 -1
View File
@@ -219,6 +219,7 @@ def create_effect_text(effects: list[Effect], height: float, width: int, has_mut
effect_text = ""
for [i, e] in enumerate(effects):
print(effects)
if effect_text != "":
effect_text += " "
per = e.get("per")
@@ -309,7 +310,7 @@ def create_effect_row(effects: list[Effect], type: str, height: int, width: int)
cx=30,
cy=height / 2,
r=15,
fill="black",
fill="url(#gradient_suicide)",
filter="url(#drop-shadow)",
)
)
+9 -1
View File
@@ -41,7 +41,7 @@ cost_right_offset = 38
background_colors = {
"blue": "lightblue",
"red": "lightcoral",
"yellow": "rgb(250, 229, 136)",
"yellow": "rgb(247, 227, 175)",
"green": "lightgreen",
"base": "lightgrey",
}
@@ -130,6 +130,14 @@ for card_data in cards:
gradient_faction_icon.add_stop(1, icon_colors[card_data["faction"]][1], opacity=1)
d.append_def(gradient_faction_icon)
# Define linear colored gradient for suicide icon
gradient_suicide = dw.LinearGradient(
0, 1, 0, 0, gradientUnits="objectBoundingBox", id="gradient_suicide"
)
gradient_suicide.add_stop(0, "#8a8a8a", opacity=1)
gradient_suicide.add_stop(1, "#ddeedd", opacity=1)
d.append_def(gradient_suicide)
print(card_data)
# Draw card background
background = dw.Group(id="background")
background.append(