act_save: actsave now stores mp and hp
authorLukas Krickl <lukas@krickl.dev>
Fri, 22 Aug 2025 15:53:09 +0000 (17:53 +0200)
committerLukas Krickl <lukas@krickl.dev>
Fri, 22 Aug 2025 15:53:09 +0000 (17:53 +0200)
commit3b0d67bba9140090c9bfed943112b2e38a98b50b
treed63c4b7a49703cc95371e719d1d0c32aa6f95f82
parentb3af087214f1a7dc032e2e3b03d721e69ec55616
act_save: actsave now stores mp and hp

Added damage calculation to attack.

Fixed a bug in act_sg that caused the previous slot to be re-read by the wrong map.
This was fixed by storign the previous frame's player map cursor. This allows us to use the previous frame
as a save location and the current value as a restore location.
src/action.s
src/actortables.s
src/actsave.s
src/defs.s
src/stats.s
src/unit_cpu.s
src/update.s
src/wram.s