diff --git a/plugins/genshin/weapon.py b/plugins/genshin/weapon.py index c3f8b412..1842a8cb 100644 --- a/plugins/genshin/weapon.py +++ b/plugins/genshin/weapon.py @@ -72,7 +72,7 @@ class WeaponPlugin(Plugin): _template_data = { "weapon_name": _weapon_data.name, "weapon_rarity": _weapon_data.rarity, - "weapon_info_type_img": await self.download_resource(_weapon_data.weapon_type.icon_url()), + "weapon_info_type_img": _weapon_data.weapon_type.name, "progression_secondary_stat_value": bonus, "progression_secondary_stat_name": _weapon_data.attribute.type.value, "weapon_info_source_img": ( @@ -92,7 +92,7 @@ class WeaponPlugin(Plugin): _template_data = { "weapon_name": _weapon_data.name, "weapon_rarity": _weapon_data.rarity, - "weapon_info_type_img": await self.download_resource(_weapon_data.weapon_type.icon_url()), + "weapon_info_type_img": _weapon_data.weapon_type.name, "progression_secondary_stat_value": " ", "progression_secondary_stat_name": "无其它属性加成", "weapon_info_source_img": ( diff --git a/resources/genshin/weapon/example.html b/resources/genshin/weapon/example.html index ec6880b2..17d2bb87 100644 --- a/resources/genshin/weapon/example.html +++ b/resources/genshin/weapon/example.html @@ -27,7 +27,7 @@
- +
diff --git a/resources/genshin/weapon/img/Bow.png b/resources/genshin/weapon/img/Bow.png new file mode 100644 index 00000000..614916de Binary files /dev/null and b/resources/genshin/weapon/img/Bow.png differ diff --git a/resources/genshin/weapon/img/Catalyst.png b/resources/genshin/weapon/img/Catalyst.png new file mode 100644 index 00000000..1b9305ba Binary files /dev/null and b/resources/genshin/weapon/img/Catalyst.png differ diff --git a/resources/genshin/weapon/img/Claymore.png b/resources/genshin/weapon/img/Claymore.png new file mode 100644 index 00000000..ff575ff6 Binary files /dev/null and b/resources/genshin/weapon/img/Claymore.png differ diff --git a/resources/genshin/weapon/img/Polearm.png b/resources/genshin/weapon/img/Polearm.png new file mode 100644 index 00000000..d2adad67 Binary files /dev/null and b/resources/genshin/weapon/img/Polearm.png differ diff --git a/resources/genshin/weapon/img/Sword.png b/resources/genshin/weapon/img/Sword.png new file mode 100644 index 00000000..c5eaed5e Binary files /dev/null and b/resources/genshin/weapon/img/Sword.png differ diff --git a/resources/genshin/weapon/weapon.jinja2 b/resources/genshin/weapon/weapon.jinja2 index 7a116eb9..d319aabc 100644 --- a/resources/genshin/weapon/weapon.jinja2 +++ b/resources/genshin/weapon/weapon.jinja2 @@ -28,7 +28,7 @@
- +