Skip to content

Commit

Permalink
删除过时的奥恩装备 id 转换
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Jun 13, 2024
1 parent 38cb1a0 commit 6825a03
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/lol/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,15 +966,6 @@ def getLoginSummonerByPid(self, pid):


class JsonManager:
# 曾经奥恩可以升级的杰作装备
masterpieceItemsMap = {
7003: 6664, # 涡轮炼金罐
7004: 3068, # 日炎圣盾
7007: 6672, # 海妖杀手
7008: 6673, # 不朽盾弓
7022: 4005, # 帝国指令
}

def __init__(self, itemData, spellData, runeData, queueData, champions, skins):
self.items = {item["id"]: item["iconPath"] for item in itemData}
self.spells = {item["id"]: item["iconPath"] for item in spellData[:-3]}
Expand All @@ -1000,9 +991,6 @@ def __init__(self, itemData, spellData, runeData, queueData, champions, skins):
champion["skins"][item["name"]] = item["id"]
champion["id"] = championId

for oldId, nowId in JsonManager.masterpieceItemsMap.items():
self.items[oldId] = self.items[nowId]

def getItemIconPath(self, iconId):
if iconId != 0:
try:
Expand Down

0 comments on commit 6825a03

Please sign in to comment.