Matched REL/w01/mg_coin + some data cleanup
This commit is contained in:
parent
08594854de
commit
b51802ea35
10 changed files with 1402 additions and 325 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include "game/hsfman.h"
|
||||
#include "game/hsfmotion.h"
|
||||
#include "game/object.h"
|
||||
#include "game/objsub.h"
|
||||
#include "game/pad.h"
|
||||
#include "game/process.h"
|
||||
#include "game/window.h"
|
||||
|
|
@ -647,15 +648,12 @@ static void fn_1_130C(void) {
|
|||
BoardPlayerMotionStart(temp_r31, 1, 0x40000001);
|
||||
}
|
||||
|
||||
// TODO: consider moving to gamework_data.h or board/player.h.
|
||||
static inline s16 GWPlayerCurrSpaceCurrGet(void) {
|
||||
return GWPlayer[GWSystem.player_curr].space_curr;
|
||||
}
|
||||
|
||||
static s32 fn_1_157C(void) {
|
||||
s32 temp_r31;
|
||||
s16 temp_curr;
|
||||
|
||||
temp_r31 = BoardSpaceFlagGet(0, GWPlayerCurrSpaceCurrGet()) & 0x600000;
|
||||
temp_curr = GWPlayer[GWSystem.player_curr].space_curr;
|
||||
temp_r31 = BoardSpaceFlagGet(0, temp_curr) & 0x600000;
|
||||
BoardDiceDigit2DShowSet(0);
|
||||
if (temp_r31 == 0x200000) {
|
||||
fn_1_130C();
|
||||
|
|
|
|||
1072
src/REL/w01Dll/mg_coin.c
Executable file
1072
src/REL/w01Dll/mg_coin.c
Executable file
File diff suppressed because it is too large
Load diff
|
|
@ -9,6 +9,7 @@
|
|||
#include "game/board/space.h"
|
||||
#include "game/object.h"
|
||||
#include "game/objsub.h"
|
||||
#include "game/sprite.h"
|
||||
#include "game/board/player.h"
|
||||
#include "math.h"
|
||||
#include "game/hsfman.h"
|
||||
|
|
@ -908,7 +909,7 @@ void fn_1_BBF8(void) {
|
|||
void fn_1_BC7C(s16 arg0) {
|
||||
ParticleData* particle;
|
||||
|
||||
lbl_1_bss_190 = HuSprAnimRead(HuDataSelHeapReadNum(0x120000, 0x10000000, 2));
|
||||
lbl_1_bss_190 = HuSprAnimReadFile(0x120000);
|
||||
HuSprAnimLock(lbl_1_bss_190);
|
||||
lbl_1_data_4E4 = Hu3DParticleCreate(lbl_1_bss_190, 100);
|
||||
Hu3DParticleHookSet(lbl_1_data_4E4, fn_1_BE30);
|
||||
|
|
|
|||
|
|
@ -216,26 +216,26 @@ s32 fn_1_1650(s32 arg0) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
s32 lbl_1_data_290[] = { //TODO: make sure this actually uses DATA_MAKE_NUM macro
|
||||
DATA_MAKE_NUM(DATADIR_MARIOMOT, 0x62),
|
||||
DATA_MAKE_NUM(DATADIR_LUIGIMOT, 0x62),
|
||||
DATA_MAKE_NUM(DATADIR_PEACHMOT, 0x62),
|
||||
DATA_MAKE_NUM(DATADIR_YOSHIMOT, 0x62),
|
||||
DATA_MAKE_NUM(DATADIR_WARIOMOT, 0x62),
|
||||
DATA_MAKE_NUM(DATADIR_DONKEYMOT, 0x62),
|
||||
DATA_MAKE_NUM(DATADIR_DAISYMOT, 0x62),
|
||||
DATA_MAKE_NUM(DATADIR_WALUIGIMOT, 0x62),
|
||||
s32 lbl_1_data_290[] = {
|
||||
DATA_MAKE_NUM(DATADIR_MARIOMOT, 98),
|
||||
DATA_MAKE_NUM(DATADIR_LUIGIMOT, 98),
|
||||
DATA_MAKE_NUM(DATADIR_PEACHMOT, 98),
|
||||
DATA_MAKE_NUM(DATADIR_YOSHIMOT, 98),
|
||||
DATA_MAKE_NUM(DATADIR_WARIOMOT, 98),
|
||||
DATA_MAKE_NUM(DATADIR_DONKEYMOT, 98),
|
||||
DATA_MAKE_NUM(DATADIR_DAISYMOT, 98),
|
||||
DATA_MAKE_NUM(DATADIR_WALUIGIMOT, 98)
|
||||
};
|
||||
|
||||
s32 lbl_1_data_2B0[] = { //TODO: make sure this actually uses DATA_MAKE_NUM macro
|
||||
DATA_MAKE_NUM(DATADIR_MARIOMOT, 0x33),
|
||||
DATA_MAKE_NUM(DATADIR_LUIGIMOT, 0x33),
|
||||
DATA_MAKE_NUM(DATADIR_PEACHMOT, 0x33),
|
||||
DATA_MAKE_NUM(DATADIR_YOSHIMOT, 0x33),
|
||||
DATA_MAKE_NUM(DATADIR_WARIOMOT, 0x33),
|
||||
DATA_MAKE_NUM(DATADIR_DONKEYMOT, 0x33),
|
||||
DATA_MAKE_NUM(DATADIR_DAISYMOT, 0x33),
|
||||
DATA_MAKE_NUM(DATADIR_WALUIGIMOT, 0x33),
|
||||
s32 lbl_1_data_2B0[] = {
|
||||
DATA_MAKE_NUM(DATADIR_MARIOMOT, 51),
|
||||
DATA_MAKE_NUM(DATADIR_LUIGIMOT, 51),
|
||||
DATA_MAKE_NUM(DATADIR_PEACHMOT, 51),
|
||||
DATA_MAKE_NUM(DATADIR_YOSHIMOT, 51),
|
||||
DATA_MAKE_NUM(DATADIR_WARIOMOT, 51),
|
||||
DATA_MAKE_NUM(DATADIR_DONKEYMOT, 51),
|
||||
DATA_MAKE_NUM(DATADIR_DAISYMOT, 51),
|
||||
DATA_MAKE_NUM(DATADIR_WALUIGIMOT, 51)
|
||||
};
|
||||
|
||||
s32 lbl_1_data_2D0[] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue