Skip to content

Commit

Permalink
chore: 遗器内外圈参数命名颠倒
Browse files Browse the repository at this point in the history
  • Loading branch information
weiduhuo committed Nov 2, 2023
1 parent 17f726d commit 6c20b43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/relic.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,11 +967,11 @@ def get_loadout_brief(self, relics_hash: List[str]) -> str:
outer_set_cnt = Counter(outer_set_list)
inner_set_cnt = Counter(inner_set_list)
# 生成信息
inner = _("外:") + '+'.join([str(cnt) + name for name, cnt in outer_set_cnt.items()]) + " "
outer = _("内:") + '+'.join([str(cnt) + name for name, cnt in inner_set_cnt.items()]) + " "
# stats = " ".join([self.equip_set_abbr[idx]+":"+name for idx, name in enumerate(base_stats_list) if idx > 1])
outer = _("外:") + '+'.join([str(cnt) + name for name, cnt in outer_set_cnt.items()]) + " "
inner = _("内:") + '+'.join([str(cnt) + name for name, cnt in inner_set_cnt.items()]) + " "
# stats = " ".join([EQUIP_SET_ADDR[idx]+":"+name for idx, name in enumerate(base_stats_list) if idx > 1])
stats = ".".join([name for idx, name in enumerate(base_stats_list) if idx > 1]) # 排除头部与手部
msg = str_just(stats, 17) + " " + str_just(outer, 10) + " " + inner # 将长度最不定的外圈信息放至最后
msg = str_just(stats, 17) + " " + str_just(inner, 10) + " " + outer # 将长度最不定的外圈信息放至最后
return msg

def get_base_stats_detail(self, data: Tuple[str, float], rarity: int, level: int, stats_index: Optional[int]=None) -> Optional[float]:
Expand Down

0 comments on commit 6c20b43

Please sign in to comment.