mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 18:05:26 +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
|
continue
|
||||||
dic.setdefault(item_id, dungeon_id)
|
dic.setdefault(item_id, dungeon_id)
|
||||||
|
|
||||||
|
# Credict
|
||||||
|
dic.setdefault(2, 1003)
|
||||||
return dic
|
return dic
|
||||||
|
|
||||||
|
|
||||||
@ -79,6 +81,7 @@ class GenerateItemCurrency(GenerateItemBase):
|
|||||||
if data['subtype'] == 'Virtual' and data['item_id'] < 100:
|
if data['subtype'] == 'Virtual' and data['item_id'] < 100:
|
||||||
if data['item_id'] not in self.whitelist:
|
if data['item_id'] not in self.whitelist:
|
||||||
continue
|
continue
|
||||||
|
data['dungeon_id'] = self.dict_itemid_to_dungeonid.get(data['item_id'], -1)
|
||||||
yield data
|
yield data
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ Credit = ItemCurrency(
|
|||||||
rarity='Rare',
|
rarity='Rare',
|
||||||
item_id=2,
|
item_id=2,
|
||||||
item_group=0,
|
item_group=0,
|
||||||
dungeon_id=-1,
|
dungeon_id=1003,
|
||||||
)
|
)
|
||||||
Trailblaze_EXP = ItemCurrency(
|
Trailblaze_EXP = ItemCurrency(
|
||||||
id=2,
|
id=2,
|
||||||
|
Loading…
Reference in New Issue
Block a user