Dev: Fix missing dungeon_id on Credict

This commit is contained in:
LmeSzinc 2024-06-12 02:43:38 +08:00
parent dd73247a07
commit d6d61bb6fc
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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,