Commit Graph

117 Commits

Author SHA1 Message Date
Ryan Dwyer 7073aa6d0f Fix cover count 2023-05-15 20:18:49 +10:00
Ryan Dwyer 4c99495ccb Optimise chr bdlist handling 2023-05-12 21:36:37 +10:00
Ryan Dwyer dc04fbc16a Fix crash when a guard spawns at a pad 2023-05-11 20:56:10 +10:00
Ryan Dwyer a9d0a1e02d ai2asm: Implement some commands in assembly if using CHR_SELF 2023-05-11 19:57:08 +10:00
Ryan Dwyer c24afbddb8 ai2asm: Store current chr in s0 instead of repeatedly loading it from g_Vars.chrdata 2023-05-11 17:20:15 +10:00
Ryan Dwyer 6edc8681da Remove a heap of one-liner functions 2023-05-10 21:24:17 +10:00
Ryan Dwyer d16ea9cef0 Make functions static where possible 2023-05-08 21:17:21 +10:00
Ryan Dwyer 86feae85c1 Remove unused global variables 2023-05-06 22:28:50 +10:00
Ryan Dwyer e031b11a64 Remove special cover 2023-01-05 22:44:59 +10:00
Ryan Dwyer 4f5a8f0a10 Tweak cover JSON format and set names for remaining cover flags 2023-01-05 22:30:47 +10:00
Ryan Dwyer 6181870b38 Refactor objective checks
* Use a dirty flag so statuses can be recalculated only when they might have changed
* Remove support for unused criteria types
* Re-ID the status constants so the objective status can be the minimum of the criteria statuses
* Merge multiple complete flags into one criteria item
* Merge multiple fail flags into one criteria item
* Use a g_AnyObjectiveFailed variable so the objectives failed AI doesn't have to iterate them
2022-11-17 17:36:19 +10:00
Ryan Dwyer d8137e2d6b Improve dangerous props code 2022-11-16 23:16:07 +10:00
Ryan Dwyer 4c56b65341 Fix wrong lines being spoken in some places 2022-11-12 19:47:11 +10:00
Ryan Dwyer d8c278364a Remove unused functions 2022-11-12 10:01:28 +10:00
Ryan Dwyer ba0eb5b656 Fix Defection programmer 2022-11-06 21:36:29 +10:00
Ryan Dwyer aabec4d103 Allow 1xxx ailists to be completely terminated 2022-11-03 08:28:36 +10:00
Ryan Dwyer 4632c3113f Improve logic for objectives failed HUD message
* Roll up all the objective failed commands into a new "any objective failed" one
* Remove wasteful looping logic from ailist
* Use existing statuses array instead of recalculating every objective on every frame
2022-11-02 21:40:23 +10:00
Ryan Dwyer 2c0b5711c1 Pass ailist pointers around instead of ailist IDs to avoid runtime bisection 2022-11-02 20:38:01 +10:00
Ryan Dwyer 7841b59eef Introduce ai2asm 2022-11-02 17:35:19 +10:00
Ryan Dwyer 0b87a5af75 Store pads in their full unpacked format 2022-10-31 17:34:01 +10:00
Ryan Dwyer 178a779878 Revert "Simplify tile assets - repo clones may need to run make extract again"
This reverts commit 306613e462.

It turns out we do actually need tiles to be built using the asset
manager :\
2022-10-22 19:06:17 +10:00
Ryan Dwyer 306613e462 Simplify tile assets - repo clones may need to run make extract again 2022-10-21 19:21:50 +10:00
Ryan Dwyer 1d1d50494e Make some tweaks and fixes for the build system for Ubuntu 2022-10-17 08:12:08 +10:00
Ryan Dwyer eb51ea4550 Introduce ROM_SIZE Makefile option 2022-10-12 23:06:19 +10:00
Ryan Dwyer 46a88a3d59 Convert ROMALLOCATION constants into Makefile options 2022-10-12 22:39:57 +10:00
Ryan Dwyer 15c067fe36 Decompile gasRender 2022-09-16 20:52:10 +10:00
Ryan Dwyer 11699d5a11 Fix some comments and white space issues 2022-07-15 17:57:31 +10:00
Ryan Dwyer c94f0e196a Decompile bgunTickGunLoad 2022-07-10 21:36:13 +10:00
Ryan Dwyer 0fcd9ce73b jpn-final: Decompile fontLoad 2022-06-07 23:16:19 +10:00
Ryan Dwyer 70375816f1 Rename most remaining game files 2022-03-23 21:22:06 +10:00
Ryan Dwyer e97273fb37 Rename many lifecycle functions to use consistent names and rename many files 2022-03-20 13:27:27 +10:00
Ryan Dwyer bbd69a8723 jpn-final: Make it build 2022-03-14 18:34:23 +10:00
Ryan Dwyer 92d3143abc jpn-final: Add language files 2022-03-14 12:19:38 +10:00
Ryan Dwyer 8a1dd76fa4 pal-beta: Get ROM fully matching 2022-03-12 15:47:01 +10:00
Ryan Dwyer 1bb2f7ebc3 pal-beta: Make it build 2022-03-11 09:14:25 +10:00
Ryan Dwyer a3d56e74e8 Merge lang json files 2022-03-10 23:43:52 +10:00
Ryan Dwyer c51c4c1573 Remove support for qemu-irix and require the use of recomp 2022-02-15 23:24:53 +10:00
Ryan Dwyer 50b60dc92a Rename bot files and functions 2021-12-26 15:12:58 +10:00
Ryan Dwyer 1c69db05b5 Rename some propobj functions 2021-11-27 23:14:49 +10:00
Ryan Dwyer 02fe6189f1 Disassemble asp microcode 2021-11-22 20:32:28 +10:00
Ryan Dwyer bab24b7660 Disassemble rspboot microcode 2021-11-22 20:31:52 +10:00
Ryan Dwyer 8fff0d6eb3 Convert tiles implementation to JSON 2021-11-07 10:51:02 +10:00
Ryan Dwyer b5eaaaeab2 Use ld's fill command instead of doing it manually with mkrom 2021-11-02 21:18:53 +10:00
Ryan Dwyer 5d40470f89 ntsc-beta: Get ROM fully matching 2021-10-26 17:15:43 +10:00
Ryan Dwyer 91ae15a32d Introduce mkrom 2021-10-23 11:27:59 +10:00
Ryan Dwyer 3eb8137335 Tidy up sched.c and related functions 2021-10-18 17:10:28 +10:00
Ryan Dwyer f1a239a8be Introduce IDO 7.1 to the project and decompile func0003b9d4 2021-10-15 23:44:10 +10:00
Ryan Dwyer 3a283de32f Update asm_processor and make it only used where necessary 2021-10-12 17:47:45 +10:00
Ryan Dwyer bba63fe1fd Rename lib_159b0.c to mtxasm.s and lib_16110.c to mtx.c 2021-10-11 21:46:17 +10:00
Ryan Dwyer c5d2900c56 Rename init.c to boot.c 2021-10-06 18:46:28 +10:00