14#define OVL_NAME(name) STFGTREP_##name
17#if VERSION_US || VERSION_JP
18#define FILE_FGTREP_SPRITES 0x791
20#define FILE_FGTREP_SPRITES 0x7A0
#define TASK_HEADER(Type)
s32 STFGTREP_addDigimonExp(s32 partner, s32 id, s32 exp)
Adds exp to one of a partner's Digimon and raises its level as far as the exp reaches,...
s32 STFGTREP_resistGains[8]
A resistance's gain, from its growth plus 0-3 at random.
s32 STFGTREP_boostExp(ReportPartner *partner)
Adds a fifth to the exp once, if the partner wears item 0x141.
void STFGTREP_runPartner(ReportPartner *partner, ReportPartnerWindows *windows)
A panel's steps: it fades in and out, gives each slot's Digimon its exp, with the levels and skills t...
void STFGTREP_showPartner(ReportPartner *partner)
ReportPartner.show: fades the panel in (substate 1)
void STFGTREP_startFade(PanelAnim *fade, s32 fadeIn)
fade.c
BattleReward STFGTREP_rewards[]
void STFGTREP_drawPartner(ReportPartner *partner)
Draws a partner's panel: the level and slot blinks, the cursor, the partner's animation and its frame...
s32 STFGTREP_vitalRandom[9]
void STFGTREP_startLerp(MenuLerp *lerp, s32 from, s32 to, s32 frames)
s32 STFGTREP_updateLerp(MenuLerp *lerp)
Evolution * STFGTREP_evolutions[PARTNER_COUNT]
each partner's (STFGTREP_learnDigimon)
void STFGTREP_selectPartner(ReportPartner *partner)
ReportPartner.select: shows the cursor on the panel until its exp is given.
void STFGTREP_hidePartner(ReportPartner *partner)
ReportPartner.hide: fades the panel out (substate 11)
void STFGTREP_runReport(FightReport *report, FightReportChildren *children)
The report while it runs: shows the panels, then for each partner that got exp its message and the ra...
FightReport * STFGTREP_createScreen(void)
Creates the report (STFGTREP_updateReport) on the screen layer.
ScreenFade * STFGTREP_createFader(void)
s32 STFGTREP_rollExp(ReportPartner *partner)
Rolls the shown exp towards the target, digit by digit; 0 once it is there.
void STFGTREP_raiseStats(s32 partner, s32 level)
growth.c
void STFGTREP_fillPartnerWindows(ReportPartner *partner, ReportPartnerWindows *windows, s32 show)
Fills a partner's panel with its name, level, exp and Digimon, or hides it.
void STFGTREP_createPartnerWindows(ReportPartner *partner, ReportPartnerWindows *windows)
partner.c
void STFGTREP_drawFader(ScreenFade *task)
void STFGTREP_raisePartner(ReportPartner *partner)
ReportPartner.raise: gives the exp to the partner's Digimon, with its new levels and skills (substate...
s32 STFGTREP_learnSkill(s32 partner, s32 id)
Marks known (SKILL_KNOWN) the first skill of one of a partner's Digimon whose level it has reached (D...
s32 STFGTREP_vitalCuts[4]
What is taken from the HP and MP growth, by tier, and added at random.
s32 STFGTREP_statGains[6][9]
A battle stat's gain by tier, from its growth plus 0-4 at random.
s32 STFGTREP_addSkill(s32 partner, s32 id)
Gives one of a partner's Digimon the first skill whose level it has reached and that it hasn't yet (D...
FightReportFuncs STFGTREP_funcs
void STFGTREP_drawReport(FightReport *report)
Draws the report's message arrow, background, header and footer.
void STFGTREP_startFader(ScreenFade *task, s32 fadeIn, s32 duration)
s32 STFGTREP_getDigimonExp(s32 partner, s32 id, s32 exp, s32 used)
The exp one of a partner's Digimon gets of a battle's: less as the partner goes up in level,...
void STFGTREP_updateReport(FightReport *report, FightReportChildren *children)
The report's main task: loads the files, shares the battle's exp among the partners who fought and cr...
s32 STFGTREP_filesLoading(void)
Whether STFGTREP_loadFiles's texts are still loading.
s32 STFGTREP_learnDigimon(s32 partner)
Gives a partner the first Digimon of its evolution list (STFGTREP_evolutions) it hasn't yet and whose...
void STFGTREP_loadFiles(void)
Loads the report's sprites and requests its texts, the Digimon names and the item names.
void STFGTREP_updatePartner(ReportPartner *partner, ReportPartnerWindows *windows)
A partner's panel task.
s32 STFGTREP_levelExp[4]
What a level adds to the exp the next one needs, by tier.
void STFGTREP_updateFader(ScreenFade *task)
ReportPartner * STFGTREP_createPartner(FightReport *report, s32 index, s32 exp)
Creates the panel of party member index, who gets exp.
s32 STFGTREP_addExp(s32 partner, s32 exp)
Adds exp to a partner and raises its level, and its stats with it, as far as the exp reaches; whether...
void STFGTREP_updateScene(Task *task, FightReport **children)
scene.c
void STFGTREP_createWindows(FightReport *report, FightReportChildren *children)
report.c
s32 STFGTREP_updateFade(PanelAnim *fade)
s32 STFGTREP_animations[][7]
each partner Digimon's sprite frames, -1 ending them early
What a battle gives (STFGTREP_rewards)
s32 exp
shared by the partners who fought
s32 digimonExp
shared by the Digimon used
A Digimon a partner can learn, once the conditions are met.
struct Evolution::@5 needs[2]
s16 value
the least the stat must be
s16 stat
1-6 battle stats, 7 level, 8-14 resistances
s32 digimon
DIGIMON_DATA index + 1.
The children of the main task.
ReportPartner * partners[3]
The overlay's helpers (STFGTREP_funcs)
s32(* filesLoading)(void)
s32(* addSkill)(s32 partner, s32 id)
s32(* learnDigimon)(s32 partner)
s32(* addExp)(s32 partner, s32 exp)
void(* startFade)(PanelAnim *fade, s32 fadeIn)
s32(* learnSkill)(s32 partner, s32 id)
s32(* addDigimonExp)(s32 partner, s32 id, s32 exp)
s32(* updateFade)(PanelAnim *fade)
s32(* getDigimonExp)(s32 partner, s32 id, s32 exp, s32 used)
s32(* updateLerp)(MenuLerp *lerp)
void(* startLerp)(MenuLerp *lerp, s32 from, s32 to, s32 frames)
The main task of the screen (STFGTREP_createScreen)
s32 arrowOn
the message waits for a button
s32 count
partners in the party
s32 exp[3]
what each one gets
s32 used
Digimon used in the battle.
s32 bgSkip
the background moves every other frame
Opens or closes a menu panel: level goes 0 -> ONE in duration frames (or back at twice the speed),...
One of a partner's Digimon (getPartnerEntry, setPartnerEntry)
A blinking image of a partner's panel.
The children of a partner's panel.
struct ReportPartnerWindows::@7 slots[3]
The panel of a partner of the party (STFGTREP_createPartner)
struct FightReport * report
struct ReportPartner::@6 slotBlinks[3]
void(* show)(struct ReportPartner *partner)
s32 exp
what the partner gets
s32 padEC
never read or written
s32 frame
of the partner's animation
s16 entries[44]
listPartnerEntries
s32 pad144
never read or written
void(* raise)(struct ReportPartner *partner)
void(* select)(struct ReportPartner *partner)
s32 boosted
the exp accessory was applied
s32(* boostExp)(struct ReportPartner *partner)
s32 pad
never read or written
void(* hide)(struct ReportPartner *partner)
s32 slot
whose Digimon gets its exp, -1 for none
Fades the whole screen to black and back with a subtractive rectangle.
Any task, seen through its header.
A text window (createTextWindow): up to six text buffers (0 is shown, 1-5 are "work" buffers that con...