Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
party.c File Reference
#include "engine/game.h"
#include "field/field_map.h"
Include dependency graph for party.c:

Go to the source code of this file.

Functions

void initNewGameData (void)
 The new game's player name, deck names, starter deck and partners.
 
s32 getPartyMember (u32 index)
 The partner index of party member index, or -1.
 
void setParty (s32 set)
 Gives the party STARTER_PARTIES[set], unlocking its partners.
 
void addCards (s32 card, s32 count)
 Gives count copies of a card (up to CARD_COPIES_MAX) and marks it seen.
 
void giveStarterDeck (void)
 Gives the starter deck's cards and puts them in every deck.
 

Variables

u8 STARTER_PARTIES [][3]
 setParty's partners, by starter pack
 
s32 STARTER_DECK [40]
 The cards of giveStarterDeck's deck.
 

Function Documentation

◆ initNewGameData()

void initNewGameData ( void  )

The new game's player name, deck names, starter deck and partners.

< NAMEDT: the keyboard's

< CRDSHP: STCRDSHP's, and STCRDDEK's

< DIGNAM

Definition at line 5 of file party.c.

Referenced by newGame().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPartyMember()

s32 getPartyMember ( u32  index)

The partner index of party member index, or -1.

Definition at line 42 of file party.c.

◆ setParty()

void setParty ( s32  set)

Gives the party STARTER_PARTIES[set], unlocking its partners.

Definition at line 50 of file party.c.

◆ addCards()

void addCards ( s32  card,
s32  count 
)

Gives count copies of a card (up to CARD_COPIES_MAX) and marks it seen.

Definition at line 63 of file party.c.

Referenced by giveStarterDeck().

Here is the caller graph for this function:

◆ giveStarterDeck()

void giveStarterDeck ( void  )

Gives the starter deck's cards and puts them in every deck.

Definition at line 72 of file party.c.

Here is the call graph for this function:

Variable Documentation

◆ STARTER_PARTIES

u8 STARTER_PARTIES[][3]
Initial value:
= {
}
@ PARTNER_PATAMON
Definition game_state.h:471
@ PARTNER_KOTEMON
Definition game_state.h:464
@ PARTNER_GUILMON
Definition game_state.h:469
@ PARTNER_RENAMON
Definition game_state.h:470
@ PARTNER_AGUMON
Definition game_state.h:467
@ PARTNER_MONMON
Definition game_state.h:466
@ PARTNER_KUMAMON
Definition game_state.h:465

setParty's partners, by starter pack

Definition at line 87 of file party.c.

Referenced by setParty().

◆ STARTER_DECK

s32 STARTER_DECK[40]
Initial value:
= {
24, 24, 24, 45, 45, 50, 59, 60, 95, 99,
100, 100, 102, 122, 138, 141, 141, 143, 145, 181,
184, 185, 185, 188, 221, 224, 228, 230, 230, 230,
267, 268, 268, 270, 274, 303, 313, 314, 314, 314,
}

The cards of giveStarterDeck's deck.

Definition at line 94 of file party.c.

Referenced by giveStarterDeck().