stage loader: fixed coins carrying between levels

This commit is contained in:
QbeRoot 2019-10-22 04:29:26 +02:00
parent c650c5a7c7
commit 0cb7799e7a
2 changed files with 10 additions and 0 deletions

View file

@ -1,5 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<updates>
<update>
<date>Oct 22, 2019</date>
<change>
<head>Updated Stage Loader</head>
<paragraph>The coin counter is now reset upon entering a main world.</paragraph>
</change>
</update>
<update>
<date>Oct 11, 2019</date>
<change>

View file

@ -392,6 +392,9 @@ function getFastCode() {
// Reset timer on secret death
codes += (0xC2000000 + (game.system + 0x208 & 0x01FFFFFF)).toString(16) + '000000033C60817F38000001980300FF881C00006000000000000000'
// Reset coin count on loading main world
codes += (0xC2000000 + (game.shineGet - 0x674 & 0x01FFFFFF)).toString(16) + '00000005887D00002C030002418000142C0300074182000C2C03000A418000087C0400406000000000000000'
// Overwrite decideNextStage(void) with useful routines
codes += '0' + (0x06000000 + (game.system + 0x510 & 0x01FFFFFF)).toString(16) +
('0000000' + (loadStageLength + 0x5C).toString(16)).slice(-8) +