Skip to content

Commit

Permalink
map fragment limit
Browse files Browse the repository at this point in the history
  • Loading branch information
acbeaumo committed Jul 20, 2024
1 parent 0e6aec4 commit a978aca
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
13 changes: 10 additions & 3 deletions PyPoE/cli/exporter/wiki/parsers/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -2890,9 +2890,16 @@ def _map_fragment_extra(self, infobox, base_item_type, map_fragment_mods):
infobox["map_fragment_bonus%s" % i] = mod["Id"]
i += 1

_type_map_fragment_mods = _type_factory(
_type_map_fragment = _type_factory(
data_file="MapFragmentMods.dat64",
data_mapping=(),
data_mapping=(
(
"MapFragmentLimit",
{
"template": "map_fragment_limit",
},
),
),
row_index=True,
function=_map_fragment_extra,
fail_condition=True,
Expand Down Expand Up @@ -3423,7 +3430,7 @@ def _harvest_plant_booster_extra(self, infobox, base_item_type, harvest_object):
# 'LabyrinthMapItem': (),
# Misc
"Map": (_type_map,),
"MapFragment": (_type_currency, _type_map_fragment_mods),
"MapFragment": (_type_currency, _type_map_fragment),
"QuestItem": (_skip_quest_contracts,),
"AtlasRegionUpgradeItem": (),
"MetamorphosisDNA": (),
Expand Down
16 changes: 16 additions & 0 deletions PyPoE/poe/file/specification/data/generated.py
Original file line number Diff line number Diff line change
Expand Up @@ -18357,6 +18357,22 @@
name="Flag5",
type="bool",
),
Field(
name="MinAreaLevel",
type="int",
),
Field(
name="Unknown0",
type="int",
),
Field(
name="MapFragmentLimit",
type="int",
),
Field(
name="Flag6",
type="bool",
),
),
),
"MapInhabitants.dat": File(
Expand Down

0 comments on commit a978aca

Please sign in to comment.