From 725ab1806caf8157b2ecf102c9e582cce2484156 Mon Sep 17 00:00:00 2001 From: LittleMengBot <79637933+LittleMengBot@users.noreply.github.com> Date: Tue, 13 Jun 2023 20:51:05 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20`/material`=20rarity=20ico?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/genshin/material.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/genshin/material.py b/plugins/genshin/material.py index a5196314..b711e88b 100644 --- a/plugins/genshin/material.py +++ b/plugins/genshin/material.py @@ -62,26 +62,26 @@ class MaterialPlugin(Plugin): { "num": 1, "rarity": 2, - "icon": (await ascension_material.icon()).as_uri(), - "name": MATERIAL_DATA[str(ascension_material.id)]["name"], + "icon": (await self.assets_service.material(ascension_material.id - 3).icon()).as_uri(), + "name": MATERIAL_DATA[str(ascension_material.id - 3)]["name"], }, { "num": 9, "rarity": 3, - "icon": (await self.assets_service.material(ascension_material.id - 1).icon()).as_uri(), - "name": MATERIAL_DATA[str(ascension_material.id - 1)]["name"], + "icon": (await self.assets_service.material(ascension_material.id - 2).icon()).as_uri(), + "name": MATERIAL_DATA[str(ascension_material.id - 2)]["name"], }, { "num": 9, "rarity": 4, - "icon": (await self.assets_service.material(str(ascension_material.id - 2)).icon()).as_uri(), - "name": MATERIAL_DATA[str(ascension_material.id - 2)]["name"], + "icon": (await self.assets_service.material(str(ascension_material.id - 1)).icon()).as_uri(), + "name": MATERIAL_DATA[str(ascension_material.id - 1)]["name"], }, { "num": 6, "rarity": 5, - "icon": (await self.assets_service.material(ascension_material.id - 3).icon()).as_uri(), - "name": MATERIAL_DATA[str(ascension_material.id - 3)]["name"], + "icon": (await ascension_material.icon()).as_uri(), + "name": MATERIAL_DATA[str(ascension_material.id)]["name"], }, { "num": 168,