Label board roll code

This commit is contained in:
gamemasterplc 2024-01-17 13:01:22 -06:00
parent 9d5032f3ec
commit e90eb84206
10 changed files with 60 additions and 60 deletions

View file

@ -407,14 +407,14 @@ game/board/warp.c:
.sbss start:0x801D4028 end:0x801D4040 .sbss start:0x801D4028 end:0x801D4040
.sdata2 start:0x801D5730 end:0x801D5780 .sdata2 start:0x801D5730 end:0x801D5780
game/board/char_roulette.c: game/board/char_wheel.c:
.text start:0x800816CC end:0x80082C90 .text start:0x800816CC end:0x80082C90
.data start:0x8013A248 end:0x8013A2B0 .data start:0x8013A248 end:0x8013A2B0
.sdata start:0x801D3758 end:0x801D3760 .sdata start:0x801D3758 end:0x801D3760
.sbss start:0x801D4040 end:0x801D4060 .sbss start:0x801D4040 end:0x801D4060
.sdata2 start:0x801D5780 end:0x801D5810 .sdata2 start:0x801D5780 end:0x801D5810
game/board/mushroom_space.c: game/board/mushroom.c:
.text start:0x80082C90 end:0x80083EDC .text start:0x80082C90 end:0x80083EDC
.sdata start:0x801D3760 end:0x801D3770 .sdata start:0x801D3760 end:0x801D3770
.sbss start:0x801D4060 end:0x801D4070 .sbss start:0x801D4060 end:0x801D4070
@ -429,7 +429,7 @@ game/board/star.c:
.sbss start:0x801D4070 end:0x801D4088 .sbss start:0x801D4070 end:0x801D4088
.sdata2 start:0x801D5898 end:0x801D5938 .sdata2 start:0x801D5898 end:0x801D5938
game/board/dice_roll.c: game/board/roll.c:
.text start:0x80085CC8 end:0x80088368 .text start:0x80085CC8 end:0x80088368
.rodata start:0x8011E0B0 end:0x8011E118 .rodata start:0x8011E0B0 end:0x8011E118
.data start:0x8013A368 end:0x8013A408 .data start:0x8013A368 end:0x8013A408
@ -483,7 +483,7 @@ game/board/battle.c:
.sbss start:0x801D4178 end:0x801D41A0 .sbss start:0x801D4178 end:0x801D41A0
.sdata2 start:0x801D5DE0 end:0x801D5E88 .sdata2 start:0x801D5DE0 end:0x801D5E88
game/board/fortune_space.c: game/board/fortune.c:
.text start:0x8009D148 end:0x8009DFD0 .text start:0x8009D148 end:0x8009DFD0
.rodata start:0x8011E380 end:0x8011E3A8 .rodata start:0x8011E380 end:0x8011E3A8
.data start:0x8013AB10 end:0x8013AB28 .data start:0x8013AB10 end:0x8013AB28

View file

@ -1541,7 +1541,7 @@ fn_80083D40 = .text:0x80083D40; // type:function size:0xD4
fn_80083E14 = .text:0x80083E14; // type:function size:0x38 fn_80083E14 = .text:0x80083E14; // type:function size:0x38
fn_80083E4C = .text:0x80083E4C; // type:function size:0x48 fn_80083E4C = .text:0x80083E4C; // type:function size:0x48
fn_80083E94 = .text:0x80083E94; // type:function size:0x48 fn_80083E94 = .text:0x80083E94; // type:function size:0x48
BoardStarHostRestore = .text:0x80083EDC; // type:function size:0xA8 BoardStarHostSet = .text:0x80083EDC; // type:function size:0xA8
BoardStarHostMdlGet = .text:0x80083F84; // type:function size:0x8 BoardStarHostMdlGet = .text:0x80083F84; // type:function size:0x8
BoardStarExec = .text:0x80083F8C; // type:function size:0xCC BoardStarExec = .text:0x80083F8C; // type:function size:0xCC
ExecStar = .text:0x80084058; // type:function size:0x8F4 scope:local ExecStar = .text:0x80084058; // type:function size:0x8F4 scope:local
@ -1552,41 +1552,41 @@ InitGiveStar = .text:0x80084C74; // type:function size:0x10C scope:local
MoveGiveStar = .text:0x80084D80; // type:function size:0x180 scope:local MoveGiveStar = .text:0x80084D80; // type:function size:0x180 scope:local
ShrinkGiveStar = .text:0x80084F00; // type:function size:0x204 scope:local ShrinkGiveStar = .text:0x80084F00; // type:function size:0x204 scope:local
StopGiveStar = .text:0x80085104; // type:function size:0x38 scope:local StopGiveStar = .text:0x80085104; // type:function size:0x38 scope:local
InitGiveStarEff = .text:0x8008513C; // type:function size:0xB4 scope:local InitGiveStarEffect = .text:0x8008513C; // type:function size:0xB4 scope:local
KillGiveStarEff = .text:0x800851F0; // type:function size:0x40 scope:local KillGiveStarEffect = .text:0x800851F0; // type:function size:0x40 scope:local
BoardStarGive = .text:0x80085230; // type:function size:0x31C BoardStarGive = .text:0x80085230; // type:function size:0x31C
BoardStarShowNext = .text:0x8008554C; // type:function size:0x628 BoardStarShowNext = .text:0x8008554C; // type:function size:0x628
ShowNextUpdate = .text:0x80085B74; // type:function size:0x130 scope:local ShowNextUpdate = .text:0x80085B74; // type:function size:0x130 scope:local
HideNextHost = .text:0x80085CA4; // type:function size:0x24 scope:local HideNextHost = .text:0x80085CA4; // type:function size:0x24 scope:local
fn_80085CC8 = .text:0x80085CC8; // type:function size:0x1EC BoardRollExec = .text:0x80085CC8; // type:function size:0x1EC
fn_80085EB4 = .text:0x80085EB4; // type:function size:0x38 BoardRollKill = .text:0x80085EB4; // type:function size:0x38
fn_80085EEC = .text:0x80085EEC; // type:function size:0x84 BoardRollUPauseSet = .text:0x80085EEC; // type:function size:0x84
fn_80085F70 = .text:0x80085F70; // type:function size:0x4C BoardRollWinDispSet = .text:0x80085F70; // type:function size:0x4C
fn_80085FBC = .text:0x80085FBC; // type:function size:0x490 RollMain = .text:0x80085FBC; // type:function size:0x490 scope:local
fn_8008644C = .text:0x8008644C; // type:function size:0x280 DiceCreate = .text:0x8008644C; // type:function size:0x280 scope:local
fn_800866CC = .text:0x800866CC; // type:function size:0x1C8 DoInput = .text:0x800866CC; // type:function size:0x1C8 scope:local
fn_80086894 = .text:0x80086894; // type:function size:0x60 DiceWaitFull = .text:0x80086894; // type:function size:0x60 scope:local
fn_800868F4 = .text:0x800868F4; // type:function size:0x130 DiceSetHit = .text:0x800868F4; // type:function size:0x130 scope:local
fn_80086A24 = .text:0x80086A24; // type:function size:0x60 RollDestroy = .text:0x80086A24; // type:function size:0x60 scope:local
fn_80086A84 = .text:0x80086A84; // type:function size:0x7E4 DiceMain = .text:0x80086A84; // type:function size:0x7E4 scope:local
fn_80087268 = .text:0x80087268; // type:function size:0x40 DicePause = .text:0x80087268; // type:function size:0x40 scope:local
fn_800872A8 = .text:0x800872A8; // type:function size:0x90 DicePauseAll = .text:0x800872A8; // type:function size:0x90 scope:local
fn_80087338 = .text:0x80087338; // type:function size:0xE0 DiceCreateEffect = .text:0x80087338; // type:function size:0xE0 scope:local
fn_80087418 = .text:0x80087418; // type:function size:0x84 DiceHideEffect = .text:0x80087418; // type:function size:0x84 scope:local
fn_8008749C = .text:0x8008749C; // type:function size:0x94 DicePauseActive = .text:0x8008749C; // type:function size:0x94 scope:local
fn_80087530 = .text:0x80087530; // type:function size:0x8C DiceCheckDigitDone = .text:0x80087530; // type:function size:0x8C scope:local
fn_800875BC = .text:0x800875BC; // type:function size:0x58 DiceSetDelete = .text:0x800875BC; // type:function size:0x58 scope:local
fn_80087614 = .text:0x80087614; // type:function size:0xC0 DiceSetVisible = .text:0x80087614; // type:function size:0xC0 scope:local
fn_800876D4 = .text:0x800876D4; // type:function size:0x200 DiceSetValue = .text:0x800876D4; // type:function size:0x200 scope:local
fn_800878D4 = .text:0x800878D4; // type:function size:0xAC DiceDigitMain = .text:0x800878D4; // type:function size:0xAC scope:local
fn_80087980 = .text:0x80087980; // type:function size:0x68 DiceDigitKill = .text:0x80087980; // type:function size:0x68 scope:local
fn_800879E8 = .text:0x800879E8; // type:function size:0xB4 DiceKill = .text:0x800879E8; // type:function size:0xB4 scope:local
fn_80087A9C = .text:0x80087A9C; // type:function size:0x390 DiceDigitMove = .text:0x80087A9C; // type:function size:0x390 scope:local
fn_80087E2C = .text:0x80087E2C; // type:function size:0x110 DiceDigitRotate = .text:0x80087E2C; // type:function size:0x110 scope:local
fn_80087F3C = .text:0x80087F3C; // type:function size:0x248 SameRollExec = .text:0x80087F3C; // type:function size:0x248 scope:local
fn_80088184 = .text:0x80088184; // type:function size:0x110 GetBtnRoll = .text:0x80088184; // type:function size:0x110 scope:local
fn_80088294 = .text:0x80088294; // type:function size:0x88 GetComBtnRoll = .text:0x80088294; // type:function size:0x88 scope:local
fn_8008831C = .text:0x8008831C; // type:function size:0x4C BoardRollTutorialSet = .text:0x8008831C; // type:function size:0x4C
BoardItemModelGet = .text:0x80088368; // type:function size:0x90 BoardItemModelGet = .text:0x80088368; // type:function size:0x90
BoardItemNameGet = .text:0x800883F8; // type:function size:0x98 BoardItemNameGet = .text:0x800883F8; // type:function size:0x98
BoardStatusStopCheck = .text:0x80088490; // type:function size:0x48 BoardStatusStopCheck = .text:0x80088490; // type:function size:0x48

View file

@ -371,16 +371,16 @@ config.libs = [
Object(NonMatching, "game/board/lottery.c"), Object(NonMatching, "game/board/lottery.c"),
Object(Matching, "game/board/basic_space.c"), Object(Matching, "game/board/basic_space.c"),
Object(Matching, "game/board/warp.c"), Object(Matching, "game/board/warp.c"),
Object(NonMatching, "game/board/char_roulette.c"), Object(NonMatching, "game/board/char_wheel.c"),
Object(NonMatching, "game/board/mushroom_space.c"), Object(NonMatching, "game/board/mushroom.c"),
Object(NonMatching, "game/board/star.c"), Object(NonMatching, "game/board/star.c"),
Object(NonMatching, "game/board/dice_roll.c"), Object(NonMatching, "game/board/roll.c"),
Object(NonMatching, "game/board/ui.c"), Object(NonMatching, "game/board/ui.c"),
Object(NonMatching, "game/board/block.c"), Object(NonMatching, "game/board/block.c"),
Object(NonMatching, "game/board/item.c"), Object(NonMatching, "game/board/item.c"),
Object(NonMatching, "game/board/bowser.c"), Object(NonMatching, "game/board/bowser.c"),
Object(NonMatching, "game/board/battle.c"), Object(NonMatching, "game/board/battle.c"),
Object(NonMatching, "game/board/fortune_space.c"), Object(NonMatching, "game/board/fortune.c"),
Object(NonMatching, "game/board/boo.c"), Object(NonMatching, "game/board/boo.c"),
Object(NonMatching, "game/board/mg_setup.c"), Object(NonMatching, "game/board/mg_setup.c"),
Object(NonMatching, "game/board/boo_house.c"), Object(NonMatching, "game/board/boo_house.c"),

View file

@ -42,7 +42,7 @@ void BoardSpaceInit(s32);
void BoardSpaceDestroy(void); void BoardSpaceDestroy(void);
void BoardShopHostSet(s16); void BoardShopHostSet(s16);
void BoardLotteryHostSet(s16); void BoardLotteryHostSet(s16);
void fn_80083EDC(s16); void BoardStarHostSet(s16);
void fn_800A4F6C(s16); void fn_800A4F6C(s16);
void BoardTutorialHookSet(void*); void BoardTutorialHookSet(void*);
void BoardTutorialBlockSetPos(s32, s32); void BoardTutorialBlockSetPos(s32, s32);

View file

@ -173,7 +173,7 @@ void BoardCreate(void) {
BoardSpaceWalkEventFuncSet(&fn_1_910); BoardSpaceWalkEventFuncSet(&fn_1_910);
BoardSpaceWalkMiniEventFuncSet(&fn_1_A74); BoardSpaceWalkMiniEventFuncSet(&fn_1_A74);
BoardSpaceLandEventFuncSet((void*)&fn_1_AF8); BoardSpaceLandEventFuncSet((void*)&fn_1_AF8);
fn_80083EDC(lbl_1_data_1E4); BoardStarHostSet(lbl_1_data_1E4);
fn_800A4F6C(lbl_1_data_1E6); fn_800A4F6C(lbl_1_data_1E6);
BoardLotteryHostSet(lbl_1_data_1E6); BoardLotteryHostSet(lbl_1_data_1E6);
BoardShopHostSet(lbl_1_data_1E6); BoardShopHostSet(lbl_1_data_1E6);

View file

@ -127,7 +127,7 @@ void BoardCreate(void) {
BoardSpaceWalkEventFuncSet(&fn_1_90C); BoardSpaceWalkEventFuncSet(&fn_1_90C);
BoardSpaceWalkMiniEventFuncSet(&fn_1_91C); BoardSpaceWalkMiniEventFuncSet(&fn_1_91C);
BoardSpaceLandEventFuncSet(&fn_1_908); BoardSpaceLandEventFuncSet(&fn_1_908);
fn_80083EDC(lbl_1_data_2C); BoardStarHostSet(lbl_1_data_2C);
fn_800A4F6C(lbl_1_data_32); fn_800A4F6C(lbl_1_data_32);
BoardShopHostSet(lbl_1_data_2E); BoardShopHostSet(lbl_1_data_2E);
BoardLotteryHostSet(lbl_1_data_30); BoardLotteryHostSet(lbl_1_data_30);

View file

@ -198,7 +198,7 @@ int fn_1_1AAC(s16 arg0, s32 arg1) {
lbl_1_bss_0->unk0, arg0, arg1, lbl_1_bss_0->unk4, lbl_1_bss_0->unk6); lbl_1_bss_0->unk0, arg0, arg1, lbl_1_bss_0->unk4, lbl_1_bss_0->unk6);
if (lbl_1_data_108[lbl_1_bss_0->unk0].unk0 != -1) { if (lbl_1_data_108[lbl_1_bss_0->unk0].unk0 != -1) {
if (arg0 == 5) { if (arg0 == 5) {
fn_8008831C(&lbl_1_data_C6[lbl_1_bss_0->unk4++]); BoardRollTutorialSet(&lbl_1_data_C6[lbl_1_bss_0->unk4++]);
} }
if (arg0 == lbl_1_data_108[lbl_1_bss_0->unk0].unk0) { if (arg0 == lbl_1_data_108[lbl_1_bss_0->unk0].unk0) {
void (*temp_r3_3)() = lbl_1_data_108[lbl_1_bss_0->unk0++].unk4; void (*temp_r3_3)() = lbl_1_data_108[lbl_1_bss_0->unk0++].unk4;

View file

@ -41,8 +41,8 @@ extern void BoardPlayerMotionEndWait(s32);
extern void BoardPlayerMotionShiftSet(s32, s32, f32, f32, s32); extern void BoardPlayerMotionShiftSet(s32, s32, f32, f32, s32);
extern void BoardPlayerCoinsAdd(s32, s32); extern void BoardPlayerCoinsAdd(s32, s32);
extern void BoardRotateDiceNumbers(s32); extern void BoardRotateDiceNumbers(s32);
extern void BoardCameraAnimBlendSet(s32, s16, s16); extern void BoardCameraMotBlendSet(s32, s16, s16);
extern s32 BoardPlayerAnimBlendCheck(s32); extern s32 BoardPlayerMotBlendCheck(s32);
static omObjData *coinChgObj[4] = { static omObjData *coinChgObj[4] = {
NULL, NULL,
@ -72,8 +72,8 @@ void BoardLandBlueExec(s32 player, s32 space) {
BoardCameraViewSet(2); BoardCameraViewSet(2);
BoardPlayerAnimBlendSet(player, 0, 15); BoardPlayerMotBlendSet(player, 0, 15);
while (BoardPlayerAnimBlendCheck(player) == 0) { while (BoardPlayerMotBlendCheck(player) == 0) {
HuPrcVSleep(); HuPrcVSleep();
} }
if (_CheckFlag(FLAG_ID_MAKE(1, 11)) != 0) { if (_CheckFlag(FLAG_ID_MAKE(1, 11)) != 0) {
@ -113,8 +113,8 @@ void BoardLandRedExec(s32 player, s32 space) {
BoardCameraViewSet(2); BoardCameraViewSet(2);
omVibrate(player, 12, 6, 6); omVibrate(player, 12, 6, 6);
BoardPlayerAnimBlendSet(player, 0, 15); BoardPlayerMotBlendSet(player, 0, 15);
while (BoardPlayerAnimBlendCheck(player) == 0) { while (BoardPlayerMotBlendCheck(player) == 0) {
HuPrcVSleep(); HuPrcVSleep();
} }
if (_CheckFlag(FLAG_ID_MAKE(1, 11)) != 0) { if (_CheckFlag(FLAG_ID_MAKE(1, 11)) != 0) {

View file

@ -58,11 +58,11 @@ extern void BoardModelAttrReset(s16, s32);
//// #include "game/board/tutorial.h" //// #include "game/board/tutorial.h"
extern BoardTutorialHookExec(s16, s32); extern BoardTutorialHookExec(s16, s32);
//// #include "game/board/com.h" //// #include "game/board/com.h"
extern void fn_8007185C(s32, s32); extern void BoardComUseItemSet(s32, s32);
//// #include "game/board/overhead.h" //// #include "game/board/overhead.h"
extern void fn_800729A4(s32); extern void BoardViewOverheadExec(s32);
extern void fn_80072DA8(s32); extern void BoardViewMapExec(s32);
//// #include "game/board/dice_roll.h" //// #include "game/board/roll.h"
extern s32 fn_80085CC8(s32); extern s32 fn_80085CC8(s32);
extern void fn_80085EB4(void); extern void fn_80085EB4(void);
//// #include "game/chrman.h" //// #include "game/chrman.h"
@ -733,7 +733,7 @@ void BoardPlayerPostTurnHookSet(s32 arg0, s32 (*arg1)()) {
void BoardPlayerTurnExec(s32 arg0) { void BoardPlayerTurnExec(s32 arg0) {
BoardPauseEnableSet(1); BoardPauseEnableSet(1);
fn_8007185C(arg0, -1); BoardComUseItemSet(arg0, -1);
GWSystem.field31_bit4 = 0xF; GWSystem.field31_bit4 = 0xF;
_ClearFlag(0x10016); _ClearFlag(0x10016);
_ClearFlag(0x1000E); _ClearFlag(0x1000E);
@ -792,11 +792,11 @@ void BoardPlayerTurnRollExec(s32 arg0) {
break; break;
case -3: case -3:
fn_80085EB4(); fn_80085EB4();
fn_80072DA8(arg0); BoardViewMapExec(arg0);
break; break;
case -4: case -4:
fn_80085EB4(); fn_80085EB4();
fn_800729A4(arg0); BoardViewOverheadExec(arg0);
break; break;
} }
} while (temp_r30 <= 0); } while (temp_r30 <= 0);

View file

@ -66,9 +66,9 @@ void WarpProcess(void) {
HuAudFXPlay(842); HuAudFXPlay(842);
BoardCameraViewSet(3); BoardCameraViewSet(3);
BoardCameraMotionWait(); BoardCameraMotionWait();
BoardPlayerAnimBlendSet(curr_player, 0, 15); BoardPlayerMotBlendSet(curr_player, 0, 15);
while (BoardPlayerAnimBlendCheck(curr_player) == 0) { while (BoardPlayerMotBlendCheck(curr_player) == 0) {
HuPrcVSleep(); HuPrcVSleep();
} }
@ -232,7 +232,7 @@ static void WarpImpact(s32 player) {
BoardModelMotionStart(warpImpactMdl, 0, 0x40000001); BoardModelMotionStart(warpImpactMdl, 0, 0x40000001);
for (i = 0; i < warpImpactCnt; i++) { for (i = 0; i < warpImpactCnt; i++) {
s32 player = warpImpactPlayer[i]; s16 player = warpImpactPlayer[i];
omVibrate(player, 0xC, 4, 2); omVibrate(player, 0xC, 4, 2);
BoardPlayerMotionStart(player, 6, 0x40000001); BoardPlayerMotionStart(player, 6, 0x40000001);
} }