This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -296,13 +296,33 @@
|
|||||||
|
|
||||||
"image_path": "../../img/skins/heron/059.png"
|
"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": {
|
"68": {
|
||||||
"title": "Confisquer",
|
"title": "Confisquer",
|
||||||
"image_path": "../../img/skins/heron/068.png"
|
"image_path": "../../img/skins/heron/068.png"
|
||||||
},
|
},
|
||||||
|
"70": {
|
||||||
|
"title": "Jus de Prune",
|
||||||
|
"image_path": "../../img/skins/heron/070.png"
|
||||||
|
},
|
||||||
"71": {
|
"71": {
|
||||||
"title": "Rosser",
|
"title": "Rosser",
|
||||||
"image_path": "../../img/skins/heron/071.png"
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
{
|
{
|
||||||
"card_type":{
|
"card_type":{
|
||||||
"action":"Action",
|
"action":"Action",
|
||||||
"champion":"Champion"
|
"champion":"Champion",
|
||||||
|
"item": "Objet"
|
||||||
},
|
},
|
||||||
"numbers":{
|
"numbers":{
|
||||||
"1": "une",
|
"1": "une",
|
||||||
"2": "deux"
|
"2": "deux",
|
||||||
|
"3": "trois",
|
||||||
|
"4": "quatre"
|
||||||
},
|
},
|
||||||
"effects":{
|
"effects":{
|
||||||
"draw":"Piochez une carte.",
|
"draw":"Piochez une carte.",
|
||||||
@@ -25,8 +28,12 @@
|
|||||||
"prepare":"Mobilisez un Champion",
|
"prepare":"Mobilisez un Champion",
|
||||||
"prepare_all_champions":"Mobilisez vos Champions.",
|
"prepare_all_champions":"Mobilisez vos Champions.",
|
||||||
"prepare_another_champion":"Mobilisez un autre Champion.",
|
"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.",
|
"cheaper_champions_passive":"Les Champions que vous achetez ce tour-ci\nvous coûtent 1 de moins.",
|
||||||
"control_opposing_champion_passive":"Prenez le contrôle d'un Champion\nennemi jusqu'à la fin du tour."
|
"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":{
|
"per":{
|
||||||
"champion":"pour chaque Champion\nque vous avez en jeu",
|
"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_guard":"pour chaque autre\nGarde que vous avez en jeu",
|
||||||
"other_card_of_same_faction":"pour chaque autre x\nque 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",
|
"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é"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -219,6 +219,7 @@ def create_effect_text(effects: list[Effect], height: float, width: int, has_mut
|
|||||||
effect_text = ""
|
effect_text = ""
|
||||||
|
|
||||||
for [i, e] in enumerate(effects):
|
for [i, e] in enumerate(effects):
|
||||||
|
print(effects)
|
||||||
if effect_text != "":
|
if effect_text != "":
|
||||||
effect_text += " "
|
effect_text += " "
|
||||||
per = e.get("per")
|
per = e.get("per")
|
||||||
@@ -309,7 +310,7 @@ def create_effect_row(effects: list[Effect], type: str, height: int, width: int)
|
|||||||
cx=30,
|
cx=30,
|
||||||
cy=height / 2,
|
cy=height / 2,
|
||||||
r=15,
|
r=15,
|
||||||
fill="black",
|
fill="url(#gradient_suicide)",
|
||||||
filter="url(#drop-shadow)",
|
filter="url(#drop-shadow)",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ cost_right_offset = 38
|
|||||||
background_colors = {
|
background_colors = {
|
||||||
"blue": "lightblue",
|
"blue": "lightblue",
|
||||||
"red": "lightcoral",
|
"red": "lightcoral",
|
||||||
"yellow": "rgb(250, 229, 136)",
|
"yellow": "rgb(247, 227, 175)",
|
||||||
"green": "lightgreen",
|
"green": "lightgreen",
|
||||||
"base": "lightgrey",
|
"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)
|
gradient_faction_icon.add_stop(1, icon_colors[card_data["faction"]][1], opacity=1)
|
||||||
d.append_def(gradient_faction_icon)
|
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
|
# Draw card background
|
||||||
background = dw.Group(id="background")
|
background = dw.Group(id="background")
|
||||||
background.append(
|
background.append(
|
||||||
|
|||||||
Reference in New Issue
Block a user