Save adventure location with team and inventory
This commit is contained in:
16 files changed
+444
-203
No files matched your search
+2
-2
@@ -148,7 +148,7 @@ void check_ball_gift(void)
|
||||
assert(begin_conversation(99, 97));
|
||||
assert(advance_conversation(0) == 1 && advance_conversation(1) == -1);
|
||||
save_from_menu();
|
||||
assert(test_save[4] == 5);
|
||||
assert(test_save[4] == 6);
|
||||
unsigned char saved[sizeof(test_save)];
|
||||
memcpy(saved, test_save, sizeof(saved));
|
||||
for (int visit = 0; visit < 10; ++visit) {
|
||||
@@ -194,7 +194,7 @@ void check_ball_gift(void)
|
||||
}
|
||||
memcpy(test_save, saved, sizeof(saved));
|
||||
test_save[6] = 100;
|
||||
test_save[13] ^= (unsigned char)(5 ^ 100); /* Keep checksum valid; count itself is invalid. */
|
||||
checksum_fixture(); /* Keep CRC valid; count itself is invalid. */
|
||||
load_progress();
|
||||
assert(!partner_owned && !balls_given && ball_count == 0);
|
||||
for (int page = 0; page < DIALOGUE_PAGES; ++page)
|
||||
|
||||
Reference in new issue
Block a user