Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
growth.c File Reference

A partner's growth: its stats at a new level, its exp and levels, the Digimon it learns, its Digimon's exp, levels and skills. More...

#include "battle/report.h"
Include dependency graph for growth.c:

Go to the source code of this file.

Functions

void STFGTREP_raiseStats (s32 partner, s32 level)
 Raises a partner's max HP, max MP, battle stats and, up to level 40, its resistances for a new level, by its growth (DIGIMON_DATA) and at random.
 
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 it went up.
 
s32 STFGTREP_learnDigimon (s32 partner)
 Gives a partner the first Digimon of its evolution list (STFGTREP_evolutions) it hasn't yet and whose needs it meets: the Digimon it must have at a level, and a stat (1-6 battle stats, 7 the level, 8-14 resistances) of at least a value.
 
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, up to 99; whether it went up.
 
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 (DigimonData.skills); the skill, or 0.
 
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 (DigimonData.knownLevels); the skill, or 0.
 
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, shared by the Digimon used, at least 1 and at most 10, or 50 once the Digimon is past its expLevel.
 

Detailed Description

A partner's growth: its stats at a new level, its exp and levels, the Digimon it learns, its Digimon's exp, levels and skills.

Definition in file growth.c.

Function Documentation

◆ STFGTREP_raiseStats()

void STFGTREP_raiseStats ( s32  partner,
s32  level 
)

Raises a partner's max HP, max MP, battle stats and, up to level 40, its resistances for a new level, by its growth (DIGIMON_DATA) and at random.

growth.c

Definition at line 8 of file growth.c.

Referenced by STFGTREP_addExp().

Here is the caller graph for this function:

◆ STFGTREP_addExp()

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 it went up.

< what the training's intensities cost

< what the training's intensities cost

< what the training's intensities cost

Definition at line 77 of file growth.c.

Here is the call graph for this function:

◆ STFGTREP_learnDigimon()

s32 STFGTREP_learnDigimon ( s32  partner)

Gives a partner the first Digimon of its evolution list (STFGTREP_evolutions) it hasn't yet and whose needs it meets: the Digimon it must have at a level, and a stat (1-6 battle stats, 7 the level, 8-14 resistances) of at least a value.

The Digimon also takes the first free slot (below 3); the Digimon, or 0

Definition at line 131 of file growth.c.

◆ STFGTREP_addDigimonExp()

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, up to 99; whether it went up.

Definition at line 196 of file growth.c.

◆ STFGTREP_addSkill()

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 (DigimonData.skills); the skill, or 0.

< the sixth skill

Definition at line 234 of file growth.c.

◆ STFGTREP_learnSkill()

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 (DigimonData.knownLevels); the skill, or 0.

< the skill, from 1 (TECHS[id - 1])

Definition at line 258 of file growth.c.

◆ STFGTREP_getDigimonExp()

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, shared by the Digimon used, at least 1 and at most 10, or 50 once the Digimon is past its expLevel.

Definition at line 278 of file growth.c.