🐛 fix /weapon type icon

This commit is contained in:
LittleMengBot 2023-06-07 23:33:11 +08:00 committed by GitHub
parent 1b8184117e
commit 4b26982b3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ class WeaponPlugin(Plugin):
_template_data = { _template_data = {
"weapon_name": _weapon_data.name, "weapon_name": _weapon_data.name,
"weapon_rarity": _weapon_data.rarity, "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_value": bonus,
"progression_secondary_stat_name": _weapon_data.attribute.type.value, "progression_secondary_stat_name": _weapon_data.attribute.type.value,
"weapon_info_source_img": ( "weapon_info_source_img": (
@ -92,7 +92,7 @@ class WeaponPlugin(Plugin):
_template_data = { _template_data = {
"weapon_name": _weapon_data.name, "weapon_name": _weapon_data.name,
"weapon_rarity": _weapon_data.rarity, "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_value": " ",
"progression_secondary_stat_name": "无其它属性加成", "progression_secondary_stat_name": "无其它属性加成",
"weapon_info_source_img": ( "weapon_info_source_img": (

View File

@ -27,7 +27,7 @@
</div> </div>
</div> </div>
<div class="base-weapon-info-type m-2 mr-8 flex-shrink h-16 w-16"> <div class="base-weapon-info-type m-2 mr-8 flex-shrink h-16 w-16">
<img src="./../../img/example/256x256.png"> <img src="img/Polearm.png">
</div> </div>
</div> </div>
<div class="stat-progression-1 rounded-xl flex mb-4"> <div class="stat-progression-1 rounded-xl flex mb-4">

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -28,7 +28,7 @@
</div> </div>
</div> </div>
<div class="base-weapon-info-type-img m-2 mr-8 flex-shrink h-16 w-16"> <div class="base-weapon-info-type-img m-2 mr-8 flex-shrink h-16 w-16">
<img src="{{weapon_info_type_img}}"> <img src="img/{{weapon_info_type_img}}.png">
</div> </div>
</div> </div>
<div class="stat-progression-1 flex py-2"> <div class="stat-progression-1 flex py-2">