Skip to content

Commit

Permalink
fix mega dungeon trinket itemlevels
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloodmallet committed Apr 22, 2024
1 parent 176a713 commit bd92beb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion simc_support/game_data/ItemLevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def _season_4_upgrade_range(upgrade_level: int) -> typing.List[int]:
Season.SEASON_1: [],
Season.SEASON_2: _s2_hero[-2:],
Season.SEASON_3: [-1],
Season.SEASON_4: [-1],
Season.SEASON_4: _s4_champion,
},
Source.RAID: {
Season.SEASON_1: {
Expand Down
11 changes: 7 additions & 4 deletions simc_support/game_data/Trinket.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ def source(self) -> Source:
if self.item_id in item_mapping.keys():
return item_mapping[self.item_id]

# if self.instance == Instance.DAWN_OF_THE_INFINITE:
# return Source.MEGA_DUNGEON
if self.instance == Instance.DAWN_OF_THE_INFINITE:
return Source.MEGA_DUNGEON

instance_mapping = {
InstanceType.DUNGEON: Source.DUNGEON,
Expand Down Expand Up @@ -320,6 +320,8 @@ def itemlevels(self) -> typing.List[int]:
Source.MEGA_DUNGEON,
):
levels = ItemLevel.ITEM_LEVELS[self.source][season] # type: ignore
if self.full_name == "Mirror of Fractured Tomorrows":
levels.extend(ItemLevel._s4_hero)

elif self.source == Source.PROFESSION:
levels += ItemLevel.ITEM_LEVELS[self.source][season] # type: ignore
Expand Down Expand Up @@ -369,9 +371,10 @@ def stats(self) -> typing.List[Stat]:
56280: [Stat.STRENGTH, Stat.AGILITY], # Porcelain Crab
137306: [Stat.INTELLECT, Stat.AGILITY], # Oakheart's Gnarled Root
110009: [Stat.INTELLECT], # Leaf of the Ancient Protectors
110009: [Stat.INTELLECT], # Leaf of the Ancient Protectors
193697: [Stat.AGILITY], # Bottle of Spiraling Winds
193762: [Stat.STRENGTH], # Blazebinder's Hoof
}
"""Game data doesn't profile primary stat information."""
"""Game data doesn't provide primary stat information."""

if self.item_id in unknown_stats:
return unknown_stats[self.item_id]
Expand Down

0 comments on commit bd92beb

Please sign in to comment.