Skip to content

Commit

Permalink
Merge pull request OmegaK2#22 from angelic-knight/dev
Browse files Browse the repository at this point in the history
Fix to ComponentArmour.dat issue & Remaining Crashes
  • Loading branch information
pm5k authored Nov 1, 2021
2 parents 914c819 + 0f6dcc1 commit d127681
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
4 changes: 3 additions & 1 deletion PyPoE/cli/exporter/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def get_content_path():


def fix_path(path: str) -> str:
if re.match('[a-zA-Z]:.*', path):
#First, replace any double quotes with HTML-encoded quotes
path = path.replace('\"','"')
if re.search('[a-zA-Z]:.*', path) is not None:
return path[:2] + re.sub(r':', '_', path[2:])
else:
return path
8 changes: 6 additions & 2 deletions PyPoE/cli/exporter/wiki/parsers/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -2705,7 +2705,7 @@ def _type_amulet(self, infobox, base_item_type):
return True

_type_armour = _type_factory(
data_file='ComponentArmour.dat',
data_file='ArmourTypes.dat',
data_mapping=(
('Armour', {
'template': 'armour',
Expand All @@ -2723,8 +2723,12 @@ def _type_amulet(self, infobox, base_item_type):
'template': 'movement_speed',
'condition': lambda v: v != 0,
}),
('Ward', {
'template': 'ward',
'condition': lambda v: v != 0,
}),
),
row_index=False,
row_index=True,
)

_type_shield = _type_factory(
Expand Down
2 changes: 2 additions & 0 deletions PyPoE/poe/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,8 @@ class MAP_FRAGMENT_FAMILIES(IntEnumOverride):
LEGION = 11
METAMORPH = 12
REGULAR = 13
ABYSS = 14
BOSSANDOIL = 15

DEFAULT = REGULAR
STANDARD = REGULAR
Expand Down
9 changes: 9 additions & 0 deletions PyPoE/poe/file/specification/data/stable.py
Original file line number Diff line number Diff line change
Expand Up @@ -1405,6 +1405,7 @@
name='BaseItemTypesKey',
type='ulong',
key='BaseItemTypes.dat',
unique=True,
),
Field(
name='Armour',
Expand Down Expand Up @@ -14108,6 +14109,14 @@
name='Flag3',
type='bool',
),
Field(
name='Flag4',
type='bool',
),
Field(
name='Flag5',
type='bool',
),
),
),
'MapInhabitants.dat': File(
Expand Down

0 comments on commit d127681

Please sign in to comment.