From 82ff64b5d9cdbac9da596ef26bc9c65788216af2 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sat, 4 Jun 2022 22:14:35 -0700 Subject: [PATCH] update some comments about ep3 data formats --- src/Episode3.hh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Episode3.hh b/src/Episode3.hh index db8e2639..7e82a1ab 100644 --- a/src/Episode3.hh +++ b/src/Episode3.hh @@ -104,7 +104,7 @@ struct Ep3CardStats { // 08 = all (attack); see e.g. Last Judgment, Earthquake // 09 = your own FCs but not SCs; see Traitor uint8_t target_mode; - uint8_t assist_turns; // 90 = once, 99 = forever + uint8_t assist_turns; // 90 (dec) = once, 99 (dec) = forever uint8_t cannot_move; // 0 for SC and creature cards; 1 for everything else uint8_t cannot_attack; // 1 for shields, mags, defense actions, and assist cards uint8_t unused_a2; // Always 0 @@ -237,7 +237,7 @@ struct Ep3CompressedMapHeader { // .mnm file format // Compressed data immediately follows (which decompresses to an Ep3Map) } __attribute__((packed)); -struct Ep3Map { // .mnm format (after decompressing and discarding the header) +struct Ep3Map { // .mnmd format /* 0000 */ be_uint32_t unknown_a1; /* 0004 */ be_uint32_t map_number; /* 0008 */ uint8_t width; @@ -274,13 +274,12 @@ struct Ep3Map { // .mnm format (after decompressing and discarding the header) // 50 = appears as improperly-z-buffered teal cube in preview // TODO: There may be more values that are valid here. /* 1C68 */ parray modification_tiles; - // Note: The rules are near the end of this struct (starting 0x14 bytes before the end) /* 1D68 */ parray unknown_a6; /* 1DDC */ Ep3BattleRules default_rules; /* 1DEC */ parray unknown_a7; /* 1DF0 */ ptext name; /* 1E04 */ ptext location_name; - /* 1E18 */ ptext quest_name; // Same a location_name for non-quest maps + /* 1E18 */ ptext quest_name; // == location_name if not a quest /* 1E54 */ ptext description; /* 1FE4 */ be_uint16_t map_x; /* 1FE6 */ be_uint16_t map_y;