mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 00:35:34 +00:00
Dev: Fix missing dungeon_id on Credict
This commit is contained in:
parent
dd73247a07
commit
d6d61bb6fc
@ -66,6 +66,8 @@ class GenerateItemBase(GenerateKeyword):
|
||||
continue
|
||||
dic.setdefault(item_id, dungeon_id)
|
||||
|
||||
# Credict
|
||||
dic.setdefault(2, 1003)
|
||||
return dic
|
||||
|
||||
|
||||
@ -79,6 +81,7 @@ class GenerateItemCurrency(GenerateItemBase):
|
||||
if data['subtype'] == 'Virtual' and data['item_id'] < 100:
|
||||
if data['item_id'] not in self.whitelist:
|
||||
continue
|
||||
data['dungeon_id'] = self.dict_itemid_to_dungeonid.get(data['item_id'], -1)
|
||||
yield data
|
||||
|
||||
|
||||
|
@ -14,7 +14,7 @@ Credit = ItemCurrency(
|
||||
rarity='Rare',
|
||||
item_id=2,
|
||||
item_group=0,
|
||||
dungeon_id=-1,
|
||||
dungeon_id=1003,
|
||||
)
|
||||
Trailblaze_EXP = ItemCurrency(
|
||||
id=2,
|
||||
|
Loading…
Reference in New Issue
Block a user