Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
happyleavesaoc committed Nov 24, 2021
2 parents 10d9bca + e81febf commit f11b846
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions mgz/header/de.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"shared_exploration"/Flag,
"team_positions"/Flag,
If(lambda ctx: find_save_version(ctx) >= 13.34, Bytes(8)),
If(lambda ctx: find_save_version(ctx) >= 25.06, Bytes(1)),
If(lambda ctx: find_save_version(ctx) >= 25.06, Bytes(1)), # maybe handicap
separator,
"players"/Array(8, Struct(
"dlc_id"/Int32ul,
Expand All @@ -88,7 +88,7 @@
"hd_dm_elo"/Int32ul,
"animated_destruction_enabled"/Flag,
"custom_ai"/Flag,
If(lambda ctx: find_save_version(ctx) >= 25.06, Bytes(8)),
If(lambda ctx: find_save_version(ctx) >= 25.06, "unk"/Bytes(8)), # maybe handicap related?
)),
"fog_of_war"/Flag,
"cheat_notifications"/Flag,
Expand All @@ -100,7 +100,7 @@
"strings"/Array(23,
Struct(
"string"/de_string,
"x"/RepeatUntil(lambda x, lst, ctx: lst[-1] not in [3, 21, 23, 42, 44, 45, 46, 47], Int32ul)
RepeatUntil(lambda x, lst, ctx: lst[-1] not in [3, 21, 23, 42, 44, 45, 46, 47], Int32ul)
)
),
"strategic_numbers"/Array(59, Int32sl),
Expand Down
8 changes: 4 additions & 4 deletions mgz/header/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@
Padding(4),
IfThenElse(lambda ctx: ctx._._.version == Version.DE,
Struct(
If(lambda ctx: find_save_version(ctx) < 13.34, Find(b'\x9a\x99\x99\x99\x99\x99\x01\x40', None)),
If(lambda ctx: 25.06 > find_save_version(ctx) >= 13.34, Find(b'\x33\x33\x33\x33\x33\x33\x03\x40', None)),
If(lambda ctx: find_save_version(ctx) >= 25.06, Find(b'\x00\x00\x00\x00\x00\x00\x04\x40', None)) #Bytes(3627))
If(lambda ctx: find_save_version(ctx) < 13.34, Find(b'\x9a\x99\x99\x99\x99\x99\x01\x40', None)), # double: 2.2
If(lambda ctx: 25.06 > find_save_version(ctx) >= 13.34, Find(b'\x33\x33\x33\x33\x33\x33\x03\x40', None)), # double: 2.4
If(lambda ctx: find_save_version(ctx) >= 25.06, Find(b'\x00\x00\x00\x00\x00\x00\x04\x40', None)) # double: 2.5
),
"end_of_game_settings"/Find(b'\x9a\x99\x99\x99\x99\x99\xf9\\x3f', None)
"end_of_game_settings"/Find(b'\x9a\x99\x99\x99\x99\x99\xf9\\x3f', None) # double: 1.6
)
)

Expand Down
2 changes: 1 addition & 1 deletion mgz/model/compat.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Summary compatibiilty."""
"""Summary compatibility."""
from collections import defaultdict
from mgz.model import parse_match
from mgz.common.diplomacy import get_diplomacy_type
Expand Down

0 comments on commit f11b846

Please sign in to comment.