mirror of
https://github.com/pmret/papermario.git
synced 2024-09-18 23:42:35 +02:00
add NPC_GROUP macro
This commit is contained in:
parent
24ce2e9752
commit
9a60b9f311
@ -192,6 +192,9 @@ typedef struct {
|
||||
/* 0x08 */ s32 battleID;
|
||||
} NpcGroupList[]; // size = 0x0C
|
||||
|
||||
#define NPC_GROUP(npcs, battleID) { sizeof(npcs) / sizeof(StaticNpc), &npcs, battleID }
|
||||
#define NPC_GROUP_LIST_END() { 0, 0, 0 }
|
||||
|
||||
Enemy* get_enemy(NpcId npcId);
|
||||
|
||||
#endif
|
||||
|
@ -187,8 +187,8 @@ StaticNpc goomba_npc = {
|
||||
};
|
||||
|
||||
NpcGroupList npc_groups = {
|
||||
{ sizeof(goomba_npc) / sizeof(StaticNpc), &goomba_npc, 0x00010003 },
|
||||
{ 0, 0, 0 },
|
||||
NPC_GROUP(goomba_npc, 0x00010003),
|
||||
NPC_GROUP_LIST_END(),
|
||||
};
|
||||
|
||||
// *INDENT-OFF*
|
||||
|
Loading…
Reference in New Issue
Block a user