mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Fix unused function parse_map_header_by_id
'Dunno' exception always fired even if parameters were correct
This commit is contained in:
parent
36a0acbde1
commit
c19dcb996c
@ -6201,7 +6201,7 @@ def parse_map_header_by_id(*args, **kwargs):
|
|||||||
elif len(args) == 1 and type(args[0]) == str:
|
elif len(args) == 1 and type(args[0]) == str:
|
||||||
map_group = int(args[0].split(".")[0])
|
map_group = int(args[0].split(".")[0])
|
||||||
map_id = int(args[0].split(".")[1])
|
map_id = int(args[0].split(".")[1])
|
||||||
else:
|
elif map_group == None and map_id == None:
|
||||||
raise Exception("dunno what to do with input")
|
raise Exception("dunno what to do with input")
|
||||||
offset = map_names[map_group]["offset"]
|
offset = map_names[map_group]["offset"]
|
||||||
map_header_offset = offset + ((map_id - 1) * map_header_byte_size)
|
map_header_offset = offset + ((map_id - 1) * map_header_byte_size)
|
||||||
|
Loading…
Reference in New Issue
Block a user