Port the trainer card and the play time
The player's name in the start menu opens TrainerCard: page 1 with the name, ID, money, Pokédex count and play time, page 2 with the Johto leaders and the badges owned, turned and closed with the original buttons. The card picture, leader faces and animated badges come from the ROM with _CGB_TrainerCard's palettes. GameTimer now counts the play time from the end of the introduction, capped at 999:59:59, and saves keep it. Closes #23 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
38b9562bd3
commit
47698565ab
24 files changed
+954
-30
No files matched your search
@@ -132,3 +132,10 @@ export function walkTo(
|
||||
}
|
||||
throw new Error(`Could not reach ${targetX},${targetY}`);
|
||||
}
|
||||
|
||||
/** A save without the play time, which keeps counting while refused or
|
||||
* rolled-back actions leave everything else unchanged. */
|
||||
export function withoutPlayTime<T extends { gameTime?: unknown }>(save: T) {
|
||||
const { gameTime: _, ...rest } = save;
|
||||
return rest;
|
||||
}
|
||||
Reference in new issue
Block a user