File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 28
28
if "id" in item_table [key ]:
29
29
item_id = item_table [key ]["id" ]
30
30
if item_id > count :
31
- item_table [ key ][ "id" ] = item_id
31
+ count = item_id
32
32
else :
33
33
raise ValueError (f"{ item_table [key ]['name' ]} has an invalid ID. ID must be at least { count + 1 } " )
34
- else :
35
- item_table [key ]["id" ] = count
34
+
35
+ item_table [key ]["id" ] = count
36
36
item_table [key ]["progression" ] = val ["progression" ] if "progression" in val else False
37
37
count += 1
38
38
Original file line number Diff line number Diff line change 20
20
if "id" in location_table [key ]:
21
21
item_id = location_table [key ]["id" ]
22
22
if item_id > count :
23
- location_table [ key ][ "id" ] = item_id
23
+ count = item_id
24
24
else :
25
25
raise ValueError (f"{ location_table [key ]['name' ]} has an invalid ID. ID must be at least { count + 1 } " )
26
- else :
27
- location_table [key ]["id" ] = count
28
26
27
+ location_table [key ]["id" ] = count
29
28
30
29
if not "region" in location_table [key ]:
31
30
location_table [key ]["region" ] = "Manual" # all locations are in the same region for Manual
You can’t perform that action at this time.
0 commit comments