Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
TechData Struct Reference

A technique (TECHS, from 1: technique n is TECHS[n - 1]) More...

#include <engine/game_state.h>

Data Fields

u16 mp
 its cost
 
u16 power
 its damage, times the user's attack over the target's defense
 
u8 icon
 a frame of the menu sprites, from 0x37
 
u8 kind
 3: heals the target
 
u8 accuracy
 
u8 element
 ELEMENT_FIRST and up, under it none.
 
u8 elementPower
 how much the element adds, against the target's resistance
 
u8 family
 FAMILY_FIRST and up, under it none.
 
u8 effect
 TECH_EFFECT_* (fightstg/battle.h), under TECH_EFFECT_FIRST none.
 
u8 effectChance
 
u8 effectPower
 the effect's strength (a boost's amount, a drain's 128ths)
 
u8 scriptStage
 its script's stage (BattleScript.stage)
 
u8 scriptEffect
 its script's sprite effect (BattleScript.effect)
 
u8 scriptSound
 its script's hit sound (BattleScript.sound)
 
u8 script
 its script in the user's archive (BattleScript.index); 5 and 12 are special
 
u8 hitCount
 

Detailed Description

A technique (TECHS, from 1: technique n is TECHS[n - 1])

Definition at line 110 of file game_state.h.

Field Documentation

◆ mp

◆ power

u16 TechData::power

its damage, times the user's attack over the target's defense

Definition at line 112 of file game_state.h.

Referenced by FIGHTSTG_computeDamage(), FIGHTSTG_computeHeal(), and FIGHTSTG_computeMagicDamage().

◆ icon

◆ kind

u8 TechData::kind

3: heals the target

Definition at line 114 of file game_state.h.

◆ accuracy

u8 TechData::accuracy

Definition at line 115 of file game_state.h.

Referenced by FIGHTSTG_rollHit(), and FIGHTSTG_rollMagicHit().

◆ element

◆ elementPower

u8 TechData::elementPower

how much the element adds, against the target's resistance

Definition at line 117 of file game_state.h.

Referenced by FIGHTSTG_adjustDamage(), FIGHTSTG_rollMagicCritical(), and WFIGHTMN_bringLastEnemy().

◆ family

◆ effect

◆ effectChance

◆ effectPower

◆ scriptStage

u8 TechData::scriptStage

its script's stage (BattleScript.stage)

Definition at line 122 of file game_state.h.

Referenced by chooseEnemyScript(), choosePartnerScript(), setUpItemTech(), and WFIGHTMN_bringLastEnemy().

◆ scriptEffect

u8 TechData::scriptEffect

its script's sprite effect (BattleScript.effect)

Definition at line 123 of file game_state.h.

Referenced by chooseEnemyScript(), choosePartnerScript(), playCounterTech(), setUpItemTech(), and WFIGHTMN_bringLastEnemy().

◆ scriptSound

u8 TechData::scriptSound

◆ script

◆ hitCount

u8 TechData::hitCount

Definition at line 126 of file game_state.h.

Referenced by FIGHTSTG_rollMultiHit().


The documentation for this struct was generated from the following file: