🐛 fix /material rarity icon

This commit is contained in:
LittleMengBot 2023-06-13 20:51:05 +08:00 committed by GitHub
parent b02a791084
commit 725ab1806c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,26 +62,26 @@ class MaterialPlugin(Plugin):
{ {
"num": 1, "num": 1,
"rarity": 2, "rarity": 2,
"icon": (await ascension_material.icon()).as_uri(), "icon": (await self.assets_service.material(ascension_material.id - 3).icon()).as_uri(),
"name": MATERIAL_DATA[str(ascension_material.id)]["name"], "name": MATERIAL_DATA[str(ascension_material.id - 3)]["name"],
}, },
{ {
"num": 9, "num": 9,
"rarity": 3, "rarity": 3,
"icon": (await self.assets_service.material(ascension_material.id - 1).icon()).as_uri(), "icon": (await self.assets_service.material(ascension_material.id - 2).icon()).as_uri(),
"name": MATERIAL_DATA[str(ascension_material.id - 1)]["name"], "name": MATERIAL_DATA[str(ascension_material.id - 2)]["name"],
}, },
{ {
"num": 9, "num": 9,
"rarity": 4, "rarity": 4,
"icon": (await self.assets_service.material(str(ascension_material.id - 2)).icon()).as_uri(), "icon": (await self.assets_service.material(str(ascension_material.id - 1)).icon()).as_uri(),
"name": MATERIAL_DATA[str(ascension_material.id - 2)]["name"], "name": MATERIAL_DATA[str(ascension_material.id - 1)]["name"],
}, },
{ {
"num": 6, "num": 6,
"rarity": 5, "rarity": 5,
"icon": (await self.assets_service.material(ascension_material.id - 3).icon()).as_uri(), "icon": (await ascension_material.icon()).as_uri(),
"name": MATERIAL_DATA[str(ascension_material.id - 3)]["name"], "name": MATERIAL_DATA[str(ascension_material.id)]["name"],
}, },
{ {
"num": 168, "num": 168,