Skip to content

Commit

Permalink
fix issues #45
Browse files Browse the repository at this point in the history
  • Loading branch information
fgophi committed Oct 7, 2024
1 parent 926b5c1 commit 1cb72ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fgogachacnt.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
}

dist_servant = {
'ザビ子【月】_2': np.array([[58, 57, 228, 36, 216, 192, 152, 217]], dtype='uint8'),
}
dist_ce = {
'断絶_売却': np.array([[227, 184, 214, 186, 252, 254, 239, 191]], dtype='uint8'),
Expand Down Expand Up @@ -845,6 +846,9 @@ def classify_servant(self):
if len(itemfiles) > 0:
itemfiles = sorted(itemfiles.items(), key=lambda x: x[1])
item = next(iter(itemfiles))
if '_' in item[0]:
# hashの定義が複数あるアイテムの場合
return item[0].split("_")[0]
return item[0]

return ""
Expand Down

0 comments on commit 1cb72ef

Please sign in to comment.