Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions include/narc_frontier_bg.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@
#define BATTLE_CASTLE_BATTLE_ROOM_TILES 29
#define BATTLE_CASTLE_BATTLE_ROOM_TILEMAP 30
#define BATTLE_CASTLE_BATTLE_ROOM_CURTAINS_TILEMAP 33
#define BATTLE_CASTLE_SELF_APP_TILES 34
#define BATTLE_CASTLE_SELF_APP_SOLO_TILEMAP 35
#define BATTLE_CASTLE_SELF_APP_MULTI_TILEMAP 36
#define BATTLE_CASTLE_SELF_APP_ITEMS_TILEMAP 37
#define BATTLE_CASTLE_SELF_APP_SUMMARY_TILEMAP 38
#define BATTLE_CASTLE_SELF_APP_MOVES_TILEMAP 39
#define BATTLE_CASTLE_OPPONENT_APP_SOLO_TILEMAP 40
#define BATTLE_CASTLE_OPPONENT_APP_MULTI_TILEMAP 41
#define BATTLE_CASTLE_OPPONENT_APP_SUMMARY_TILEMAP 42
#define BATTLE_CASTLE_OPPONENT_APP_MOVES_TILEMAP 43
#define BATTLE_CASTLE_OPPONENT_APP_TILES 44
#define BATTLE_TOWER_TILES 45
#define BATTLE_TOWER_MULTI_BATTLE_ROOM_TILEMAP 46
#define BATTLE_TOWER_MULTI_CORRIDOR_TILEMAP 47
Expand All @@ -42,6 +53,8 @@
#define BATTLE_HALL_BATTLE_ROOM_LIGHTS_PLTT 133
#define BATTLE_HALL_APP_PLTT 134
#define BATTLE_CASTLE_CORRIDOR_PLTT 135
#define BATTLE_CASTLE_SELF_APP_PLTT 137
#define BATTLE_CASTLE_OPPONENT_APP_PLTT 138
#define BATTLE_CASTLE_BATTLE_ROOM_PLTT 140
#define BATTLE_TOWER_PLTT 141
#define BATTLE_ARCADE_BATTLE_ROOM_PLTT 142
Expand Down
2 changes: 1 addition & 1 deletion include/overlay104/ov104_0223B6F4.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ u8 ov104_0223B7A8(u8 param0, BOOL param1);
u8 ov104_0223B7DC(u8 param0, BOOL param1);
FieldBattleDTO *ov104_0223B810(UnkStruct_ov104_0223BA10 *param0, UnkStruct_ov104_02230BE4 *param1);
u8 ov104_0223BA10(UnkStruct_ov104_0223BA10 *param0);
BOOL ov104_0223BA14(u8 param0);
BOOL BattleCastle_IsMultiPlayerChallenge(u8 param0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

polish: param0 -> challengeType

void ov104_0223BA24(Party *param0);
void ov104_0223BA7C(UnkStruct_ov104_0223BA10 *param0, Pokemon *param1);
void ov104_0223BAA0(UnkStruct_ov104_0223BA10 *param0, Party *param1, Pokemon *param2);
Expand Down
6 changes: 3 additions & 3 deletions include/overlay107/battle_castle_app_sprite_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ typedef struct BattleCastleAppSpriteManager {
SpriteResource *resources[NUM_SPRITES][MAX_SPRITE_RESOURCE_GEN4];
} BattleCastleAppSpriteManager;

void BattleCastleApp_InitSpriteManager(BattleCastleAppSpriteManager *spriteMan, Party *party, u8 param2);
void BattleCastleApp_InitSpriteManager(BattleCastleAppSpriteManager *spriteMan, Party *party, u8 challengeType);
Sprite *BattleCastleApp_InitSprite(BattleCastleAppSpriteManager *spriteMan, u32 charResourceID, u32 plttResourceID, u32 cellResourceID, u32 animID, u32 priority, int resourcePriority, u8 onSubScreen);
void BattleCastleApp_FreeSprites(BattleCastleAppSpriteManager *spriteMan);
void ov107_022499BC(BattleCastleAppSpriteManager *spriteMan, u16 item);
void ov107_022499FC(BattleCastleAppSpriteManager *spriteMan, u16 item);
void BattleCastleApp_SetItemGraphic(BattleCastleAppSpriteManager *spriteMan, u16 item);
void BattleCastleApp_SetItemPalette(BattleCastleAppSpriteManager *spriteMan, u16 item);

#endif // POKEPLATINUM_APPLICATIONS_BATTLE_CASTLE_SPRITE_MANAGER_H
4 changes: 2 additions & 2 deletions include/overlay107/battle_castle_app_windows.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#include "bg_window.h"

void BattleCastleApp_InitWindows(BgConfig *bgConfigs, Window *windows, u8 param2);
void BattleCastleApp_FreeWindows(Window *windows, u8 param1);
void BattleCastleApp_InitWindows(BgConfig *bgConfigs, Window *windows, u8 isOpponentApp);
void BattleCastleApp_FreeWindows(Window *windows, u8 isOpponentApp);
void BattleCastleApp_DrawWindow(BgConfig *bgConfig, Window *window);
void BattleCastleApp_DrawMessageBox(Window *window, int frame);

Expand Down
14 changes: 14 additions & 0 deletions include/overlay107/battle_castle_opponent_app.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#ifndef POKEPLATINUM_APPLICATIONS_BATTLE_CASTLE_OPPONENT_MAIN_H
#define POKEPLATINUM_APPLICATIONS_BATTLE_CASTLE_OPPONENT_MAIN_H

#include "overlay_manager.h"

BOOL BattleCastleOpponentApp_Init(ApplicationManager *appMan, int *state);
BOOL BattleCastleOpponentApp_Main(ApplicationManager *appMan, int *state);
BOOL BattleCastleOpponentApp_Exit(ApplicationManager *appMan, int *state);
void ov107_02248910(int param0, int param1, void *param2, void *param3);
void ov107_02248978(int param0, int param1, void *param2, void *param3);
void ov107_022489E0(int param0, int param1, void *param2, void *param3);
void ov107_02248A10(int param0, int param1, void *param2, void *param3);

#endif // POKEPLATINUM_APPLICATIONS_BATTLE_CASTLE_OPPONENT_MAIN_H
14 changes: 14 additions & 0 deletions include/overlay107/battle_castle_self_app.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#ifndef POKEPLATINUM_APPLICATIONS_BATTLE_CASTLE_SELF_MAIN_H
#define POKEPLATINUM_APPLICATIONS_BATTLE_CASTLE_SELF_MAIN_H

#include "overlay_manager.h"

BOOL BattleCastleSelfApp_Init(ApplicationManager *appMan, int *state);
BOOL BattleCastleSelfApp_Main(ApplicationManager *appMan, int *state);
BOOL BattleCastleSelfApp_Exit(ApplicationManager *appMan, int *state);
void ov107_02245338(int param0, int param1, void *param2, void *param3);
void ov107_022453A0(int param0, int param1, void *param2, void *param3);
void ov107_02245408(int param0, int param1, void *param2, void *param3);
void ov107_02245438(int param0, int param1, void *param2, void *param3);

#endif // POKEPLATINUM_APPLICATIONS_BATTLE_CASTLE_SELF_MAIN_H
14 changes: 0 additions & 14 deletions include/overlay107/ov107_02241AE0.h

This file was deleted.

14 changes: 0 additions & 14 deletions include/overlay107/ov107_02245EB0.h

This file was deleted.

6 changes: 0 additions & 6 deletions include/overlay107/struct_ov107_02241D6C_decl.h

This file was deleted.

6 changes: 0 additions & 6 deletions include/overlay107/struct_ov107_02246170_decl.h

This file was deleted.

4 changes: 2 additions & 2 deletions platinum.us/main.lsf
Original file line number Diff line number Diff line change
Expand Up @@ -1594,8 +1594,8 @@ Overlay battle_hall_app
Overlay overlay107
{
After overlay104
Object main.nef.p/src_overlay107_ov107_02241AE0.c.o
Object main.nef.p/src_overlay107_ov107_02245EB0.c.o
Object main.nef.p/src_overlay107_battle_castle_self_app.c.o
Object main.nef.p/src_overlay107_battle_castle_opponent_app.c.o
Object main.nef.p/src_overlay107_battle_castle_app_sprite_manager.c.o
Object main.nef.p/src_overlay107_battle_castle_app_sprite.c.o
Object main.nef.p/src_overlay107_ov107_02249C98.c.o
Expand Down
4 changes: 2 additions & 2 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -963,8 +963,8 @@ pokeplatinum_c = files(
'applications/frontier/battle_hall/sprite_manager.c',
'applications/frontier/battle_hall/sprites.c',
'applications/frontier/battle_hall/windows.c',
'overlay107/ov107_02241AE0.c',
'overlay107/ov107_02245EB0.c',
'overlay107/battle_castle_self_app.c',
'overlay107/battle_castle_opponent_app.c',
'overlay107/battle_castle_app_sprite_manager.c',
'overlay107/battle_castle_app_sprite.c',
'overlay107/ov107_02249C98.c',
Expand Down
22 changes: 11 additions & 11 deletions src/overlay104/ov104_022358E8.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#include "overlay104/struct_ov104_0223597C.h"
#include "overlay104/struct_ov104_0223BA10.h"
#include "overlay104/struct_ov104_0223C4CC.h"
#include "overlay107/ov107_02241AE0.h"
#include "overlay107/ov107_02245EB0.h"
#include "overlay107/battle_castle_opponent_app.h"
#include "overlay107/battle_castle_self_app.h"

#include "communication_system.h"
#include "field_battle_data_transfer.h"
Expand Down Expand Up @@ -87,9 +87,9 @@ BOOL FrontierScrCmd_9A(FrontierScriptContext *param0)
FS_EXTERN_OVERLAY(overlay107);

static const ApplicationManagerTemplate v4 = {
ov107_02241AE0,
ov107_02241BD4,
ov107_02241D2C,
BattleCastleSelfApp_Init,
BattleCastleSelfApp_Main,
BattleCastleSelfApp_Exit,
FS_OVERLAY_ID(overlay107)
};

Expand Down Expand Up @@ -149,7 +149,7 @@ BOOL FrontierScrCmd_9B(FrontierScriptContext *param0)
v3 = Party_GetPokemonBySlotIndex(v2->parties[0], 1);
Party_AddPokemonBySlotIndex(v1->unk_28, 1, v3);

if (ov104_0223BA14(v1->unk_10) == 0) {
if (BattleCastle_IsMultiPlayerChallenge(v1->unk_10) == 0) {
v3 = Party_GetPokemonBySlotIndex(v2->parties[0], 2);
Party_AddPokemonBySlotIndex(v1->unk_28, 2, v3);
} else {
Expand Down Expand Up @@ -191,9 +191,9 @@ BOOL FrontierScrCmd_9D(FrontierScriptContext *param0)
FS_EXTERN_OVERLAY(overlay107);

static const ApplicationManagerTemplate v4 = {
ov107_02245EB0,
ov107_02245FD0,
ov107_02246130,
BattleCastleOpponentApp_Init,
BattleCastleOpponentApp_Main,
BattleCastleOpponentApp_Exit,
FS_OVERLAY_ID(overlay107)
};

Expand Down Expand Up @@ -386,7 +386,7 @@ BOOL FrontierScrCmd_A0(FrontierScriptContext *param0)
case 34:
*v17 = 0;

if (ov104_0223BA14(v3->unk_10) == 1) {
if (BattleCastle_IsMultiPlayerChallenge(v3->unk_10) == 1) {
if (v3->unk_A1B >= 6) {
if (CommSys_CurNetId() == 0) {
*v17 = 1;
Expand All @@ -399,7 +399,7 @@ BOOL FrontierScrCmd_A0(FrontierScriptContext *param0)
}
break;
case 35:
*v17 = ov104_0223BA14(v3->unk_10);
*v17 = BattleCastle_IsMultiPlayerChallenge(v3->unk_10);
break;
case 17:
*v17 = v3->unk_10;
Expand Down
12 changes: 6 additions & 6 deletions src/overlay104/ov104_022361B4.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ UnkStruct_ov104_0223BA10 *ov104_022361B4(SaveData *saveData, u16 param1, u8 para
}
}

if (ov104_0223BA14(v9->unk_10) == 1) {
if (BattleCastle_IsMultiPlayerChallenge(v9->unk_10) == 1) {
ov104_0222E630(v9->saveData);
}

Expand Down Expand Up @@ -184,7 +184,7 @@ static void ov104_02236528(UnkStruct_ov104_0223BA10 *param0)

ov104_0223B760(param0->unk_10, ov104_0223BB60(param0), param0->unk_30, (7 * 2));

ov104_0222E4BC(ov104_0223B7DC(param0->unk_10, 1), param0->unk_30[param0->unk_11], param0->unk_30[param0->unk_11 + 7], param0->unk_26C, param0->unk_288, param0->unk_274, param0->unk_278, ov104_0223BA14(param0->unk_10));
ov104_0222E4BC(ov104_0223B7DC(param0->unk_10, 1), param0->unk_30[param0->unk_11], param0->unk_30[param0->unk_11 + 7], param0->unk_26C, param0->unk_288, param0->unk_274, param0->unk_278, BattleCastle_IsMultiPlayerChallenge(param0->unk_10));

return;
}
Expand Down Expand Up @@ -482,7 +482,7 @@ void ov104_02236BF8(UnkStruct_ov104_0223BA10 *param0)
{
int v0, v1, v2;

ov104_0222E4BC(ov104_0223B7DC(param0->unk_10, 1), param0->unk_30[param0->unk_11], param0->unk_30[param0->unk_11 + 7], param0->unk_26C, param0->unk_288, param0->unk_274, param0->unk_278, ov104_0223BA14(param0->unk_10));
ov104_0222E4BC(ov104_0223B7DC(param0->unk_10, 1), param0->unk_30[param0->unk_11], param0->unk_30[param0->unk_11 + 7], param0->unk_26C, param0->unk_288, param0->unk_274, param0->unk_278, BattleCastle_IsMultiPlayerChallenge(param0->unk_10));

for (v0 = 0; v0 < 4; v0++) {
(void)0;
Expand Down Expand Up @@ -682,7 +682,7 @@ void ov104_02236FC0(UnkStruct_ov104_022320B4 *param0, UnkStruct_ov104_0223BA10 *
GF_ASSERT(param0->unk_A8 == NULL);
GF_ASSERT(param0->unk_AC == NULL);

if (ov104_0223BA14(param1->unk_10) == 0) {
if (BattleCastle_IsMultiPlayerChallenge(param1->unk_10) == 0) {
param0->unk_A8 = Window_New(HEAP_ID_FIELD2, 1);
Window_Add(v0->unk_00, param0->unk_A8, 1, 1, 1, 10, 4, 14, (((((1024 - (18 + 12)) - 9) - (27 * 4)) - (11 * 22)) - (10 * 4)));
ov104_022370C0(v0->unk_00, param0->unk_A8);
Expand Down Expand Up @@ -714,7 +714,7 @@ void ov104_022370E0(UnkStruct_ov104_022320B4 *param0, UnkStruct_ov104_0223BA10 *
Window *v0;
Window *v1;

if (ov104_0223BA14(param1->unk_10) == 0) {
if (BattleCastle_IsMultiPlayerChallenge(param1->unk_10) == 0) {
GF_ASSERT(param0->unk_A8 != NULL);
v0 = param0->unk_A8;
Window_EraseStandardFrame(v0, 0);
Expand Down Expand Up @@ -747,7 +747,7 @@ void ov104_02237180(UnkStruct_ov104_022320B4 *param0, UnkStruct_ov104_0223BA10 *
{
u16 v0, v1;

if (ov104_0223BA14(param1->unk_10) == 0) {
if (BattleCastle_IsMultiPlayerChallenge(param1->unk_10) == 0) {
GF_ASSERT(param0->unk_A8 != NULL);
v0 = sub_02030698(SaveData_GetBattleFrontier(param1->saveData), sub_0205E630(param1->unk_10), sub_0205E6A8(sub_0205E630(param1->unk_10)));
ov104_02237284(param0, param0->unk_A8, SaveData_GetTrainerInfo(param1->saveData), v0);
Expand Down
2 changes: 1 addition & 1 deletion src/overlay104/ov104_02237378.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ BOOL FrontierScrCmd_BB(FrontierScriptContext *param0)
ov104_02239054(v10->parties[v2], v9->unk_70, 0, 0);
ov104_02239054(v10->parties[v2], v9->unk_70, 1, 1);

if (ov104_0223BA14(v9->unk_10) == 0) {
if (BattleCastle_IsMultiPlayerChallenge(v9->unk_10) == 0) {
ov104_02239054(v10->parties[v2], v9->unk_70, 2, 2);
} else {
ov104_02239054(v10->parties[v3], v9->unk_70, 0, 2);
Expand Down
14 changes: 4 additions & 10 deletions src/overlay104/ov104_0223B6F4.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ u8 ov104_0223B7DC(u8 param0, BOOL param1);
FieldBattleDTO *ov104_0223B810(UnkStruct_ov104_0223BA10 *param0, UnkStruct_ov104_02230BE4 *param1);
static u32 ov104_0223B9E4(u8 param0);
u8 ov104_0223BA10(UnkStruct_ov104_0223BA10 *param0);
BOOL ov104_0223BA14(u8 param0);
BOOL BattleCastle_IsMultiPlayerChallenge(u8 param0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

polish: We can remove this unnecessary declaration.

void ov104_0223BA24(Party *param0);
void ov104_0223BAB8(UnkStruct_ov104_0223BA10 *param0);
void ov104_0223BA7C(UnkStruct_ov104_0223BA10 *param0, Pokemon *param1);
Expand Down Expand Up @@ -252,15 +252,9 @@ u8 ov104_0223BA10(UnkStruct_ov104_0223BA10 *param0)
return 50;
}

BOOL ov104_0223BA14(u8 param0)
BOOL BattleCastle_IsMultiPlayerChallenge(u8 challengeType)
{
switch (param0) {
case 2:
case 3:
return 1;
}

return 0;
return challengeType == 2 || challengeType == 3;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: If we know these indicate multiplayer challenges, can we document the constants at this point?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I am planning on documenting these, but I'd like to leave that out of this PR for now. I've been waiting because I wasn't sure what "3" corresponded to ("2" is for multi-battles as initiated from inside the Battle Castle). I now am reasonably sure that "3" is for multi-battle started through the Wi-fi club, but want to handle this separately in a dedicated PR as I think the Battle Hall, and probably all the non-Tower facilities use the same values.

}

void ov104_0223BA24(Party *param0)
Expand Down Expand Up @@ -355,7 +349,7 @@ u16 ov104_0223BB60(UnkStruct_ov104_0223BA10 *param0)
{
u16 v0 = param0->unk_16;

if (ov104_0223BA14(param0->unk_10) == 1) {
if (BattleCastle_IsMultiPlayerChallenge(param0->unk_10) == 1) {
if (param0->unk_A12 > param0->unk_16) {
v0 = param0->unk_A12;
}
Expand Down
26 changes: 13 additions & 13 deletions src/overlay107/battle_castle_app_sprite_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
#include "vram_transfer.h"

static void InitCharPlttTransferBuffers(void);
static void ov107_02249A70(BattleCastleAppSpriteManager *spriteMan);
static void InitItemIconSpriteResources(BattleCastleAppSpriteManager *spriteMan);

static const u8 sCapacities[4] = { NUM_SPRITES, NUM_SPRITES, NUM_SPRITES, NUM_SPRITES };

void BattleCastleApp_InitSpriteManager(BattleCastleAppSpriteManager *spriteMan, Party *party, u8 param2)
void BattleCastleApp_InitSpriteManager(BattleCastleAppSpriteManager *spriteMan, Party *party, u8 challengeType)
{
VramTransfer_New(32, HEAP_ID_BATTLE_CASTLE_APP);
InitCharPlttTransferBuffers();
Expand All @@ -51,7 +51,7 @@ void BattleCastleApp_InitSpriteManager(BattleCastleAppSpriteManager *spriteMan,
spriteMan->resources[1][3] = SpriteResourceCollection_AddFrom(spriteMan->resourceCollection[SPRITE_RESOURCE_ANIM], narc, Item_IconNANRFile(), FALSE, 1, SPRITE_RESOURCE_ANIM, HEAP_ID_BATTLE_CASTLE_APP);

NARC_dtor(narc);
ov107_02249A70(spriteMan);
InitItemIconSpriteResources(spriteMan);

narc = NARC_ctor(NARC_INDEX_POKETOOL__ICONGRA__PL_POKE_ICON, HEAP_ID_BATTLE_CASTLE_APP);

Expand All @@ -63,7 +63,7 @@ void BattleCastleApp_InitSpriteManager(BattleCastleAppSpriteManager *spriteMan,
Pokemon *mon;

if (i == 3) {
if (param2 == 0) {
if (challengeType == 0) {
mon = Party_GetPokemonBySlotIndex(party, 0);
} else {
mon = Party_GetPokemonBySlotIndex(party, i);
Expand Down Expand Up @@ -148,17 +148,17 @@ void BattleCastleApp_FreeSprites(BattleCastleAppSpriteManager *spriteMan)
PlttTransfer_Free();
}

void ov107_022499BC(BattleCastleAppSpriteManager *spriteMan, u16 item)
void BattleCastleApp_SetItemGraphic(BattleCastleAppSpriteManager *spriteMan, u16 item)
{
SpriteResource *resource = SpriteResourceCollection_Find(spriteMan->resourceCollection[0], 1);
SpriteResource *resource = SpriteResourceCollection_Find(spriteMan->resourceCollection[SPRITE_RESOURCE_CHAR], 1);

SpriteResourceCollection_ModifyTiles(spriteMan->resourceCollection[0], resource, NARC_INDEX_ITEMTOOL__ITEMDATA__ITEM_ICON, Item_FileID(item, ITEM_FILE_TYPE_ICON), FALSE, HEAP_ID_BATTLE_CASTLE_APP);
SpriteTransfer_RetransferCharData(resource);
}

void ov107_022499FC(BattleCastleAppSpriteManager *spriteMan, u16 item)
void BattleCastleApp_SetItemPalette(BattleCastleAppSpriteManager *spriteMan, u16 item)
{
SpriteResource *resource = SpriteResourceCollection_Find(spriteMan->resourceCollection[1], 1);
SpriteResource *resource = SpriteResourceCollection_Find(spriteMan->resourceCollection[SPRITE_RESOURCE_PLTT], 1);

SpriteResourceCollection_ModifyPalette(spriteMan->resourceCollection[1], resource, NARC_INDEX_ITEMTOOL__ITEMDATA__ITEM_ICON, Item_FileID(item, ITEM_FILE_TYPE_PALETTE), FALSE, HEAP_ID_BATTLE_CASTLE_APP);
SpriteTransfer_ReplacePlttData(resource);
Expand All @@ -175,14 +175,14 @@ static void InitCharPlttTransferBuffers(void)
PlttTransfer_Clear();
}

static void ov107_02249A70(BattleCastleAppSpriteManager *spriteMan)
static void InitItemIconSpriteResources(BattleCastleAppSpriteManager *spriteMan)
{
NARC *narc = NARC_ctor(NARC_INDEX_GRAPHIC__PL_PLIST_GRA, HEAP_ID_BATTLE_CASTLE_APP);

spriteMan->resources[2][0] = SpriteResourceCollection_AddTilesFrom(spriteMan->resourceCollection[0], narc, sub_02081930(), FALSE, 2, NNS_G2D_VRAM_TYPE_2DMAIN, HEAP_ID_BATTLE_CASTLE_APP);
spriteMan->resources[2][1] = SpriteResourceCollection_AddPalette(spriteMan->resourceCollection[1], NARC_INDEX_GRAPHIC__PL_PLIST_GRA, sub_02081934(), FALSE, 2, NNS_G2D_VRAM_TYPE_2DMAIN, 3, HEAP_ID_BATTLE_CASTLE_APP);
spriteMan->resources[2][2] = SpriteResourceCollection_AddFrom(spriteMan->resourceCollection[2], narc, sub_02081938(), FALSE, 2, SPRITE_RESOURCE_CELL, HEAP_ID_BATTLE_CASTLE_APP);
spriteMan->resources[2][3] = SpriteResourceCollection_AddFrom(spriteMan->resourceCollection[3], narc, sub_0208193C(), FALSE, 2, SPRITE_RESOURCE_ANIM, HEAP_ID_BATTLE_CASTLE_APP);
spriteMan->resources[2][0] = SpriteResourceCollection_AddTilesFrom(spriteMan->resourceCollection[SPRITE_RESOURCE_CHAR], narc, sub_02081930(), FALSE, 2, NNS_G2D_VRAM_TYPE_2DMAIN, HEAP_ID_BATTLE_CASTLE_APP);
spriteMan->resources[2][1] = SpriteResourceCollection_AddPalette(spriteMan->resourceCollection[SPRITE_RESOURCE_PLTT], NARC_INDEX_GRAPHIC__PL_PLIST_GRA, sub_02081934(), FALSE, 2, NNS_G2D_VRAM_TYPE_2DMAIN, 3, HEAP_ID_BATTLE_CASTLE_APP);
spriteMan->resources[2][2] = SpriteResourceCollection_AddFrom(spriteMan->resourceCollection[SPRITE_RESOURCE_CELL], narc, sub_02081938(), FALSE, 2, SPRITE_RESOURCE_CELL, HEAP_ID_BATTLE_CASTLE_APP);
spriteMan->resources[2][3] = SpriteResourceCollection_AddFrom(spriteMan->resourceCollection[SPRITE_RESOURCE_ANIM], narc, sub_0208193C(), FALSE, 2, SPRITE_RESOURCE_ANIM, HEAP_ID_BATTLE_CASTLE_APP);

NARC_dtor(narc);
}
Loading