Skip to content

Commit d127681

Browse files
authored
Merge pull request OmegaK2#22 from angelic-knight/dev
Fix to ComponentArmour.dat issue & Remaining Crashes
2 parents 914c819 + 0f6dcc1 commit d127681

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

PyPoE/cli/exporter/util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ def get_content_path():
7575

7676

7777
def fix_path(path: str) -> str:
78-
if re.match('[a-zA-Z]:.*', path):
78+
#First, replace any double quotes with HTML-encoded quotes
79+
path = path.replace('\"','"')
80+
if re.search('[a-zA-Z]:.*', path) is not None:
7981
return path[:2] + re.sub(r':', '_', path[2:])
8082
else:
8183
return path

PyPoE/cli/exporter/wiki/parsers/item.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2705,7 +2705,7 @@ def _type_amulet(self, infobox, base_item_type):
27052705
return True
27062706

27072707
_type_armour = _type_factory(
2708-
data_file='ComponentArmour.dat',
2708+
data_file='ArmourTypes.dat',
27092709
data_mapping=(
27102710
('Armour', {
27112711
'template': 'armour',
@@ -2723,8 +2723,12 @@ def _type_amulet(self, infobox, base_item_type):
27232723
'template': 'movement_speed',
27242724
'condition': lambda v: v != 0,
27252725
}),
2726+
('Ward', {
2727+
'template': 'ward',
2728+
'condition': lambda v: v != 0,
2729+
}),
27262730
),
2727-
row_index=False,
2731+
row_index=True,
27282732
)
27292733

27302734
_type_shield = _type_factory(

PyPoE/poe/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,8 @@ class MAP_FRAGMENT_FAMILIES(IntEnumOverride):
619619
LEGION = 11
620620
METAMORPH = 12
621621
REGULAR = 13
622+
ABYSS = 14
623+
BOSSANDOIL = 15
622624

623625
DEFAULT = REGULAR
624626
STANDARD = REGULAR

PyPoE/poe/file/specification/data/stable.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,6 +1405,7 @@
14051405
name='BaseItemTypesKey',
14061406
type='ulong',
14071407
key='BaseItemTypes.dat',
1408+
unique=True,
14081409
),
14091410
Field(
14101411
name='Armour',
@@ -14108,6 +14109,14 @@
1410814109
name='Flag3',
1410914110
type='bool',
1411014111
),
14112+
Field(
14113+
name='Flag4',
14114+
type='bool',
14115+
),
14116+
Field(
14117+
name='Flag5',
14118+
type='bool',
14119+
),
1411114120
),
1411214121
),
1411314122
'MapInhabitants.dat': File(

0 commit comments

Comments
 (0)