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

FIGHTSTG_updateItem's task: an item used in battle, FIGHTSTG_runItemScript its script. More...

#include <battle/battle_mode/action.h>

Data Fields

s32 id
 
s32 key1
 
s32 key2
 
s32 state
 
s32 substate
 
s32 step
 
s32 counter
 
s32 paused
 
s32 childCount
 
void * children
 
void(* setState )(struct BattleItem *task, s32 state)
 
void(* setSubstate )(struct BattleItem *task, s32 substate)
 
void(* setStep )(struct BattleItem *task, s32 step)
 
void(* setCounter )(struct BattleItem *task, s32 counter)
 
void(* nextState )(struct BattleItem *task)
 
void(* nextSubstate )(struct BattleItem *task)
 
void(* nextStep )(struct BattleItem *task)
 
void(* tickCounter )(struct BattleItem *task)
 
void(* update )()
 
void(* destroy )(struct BattleItem *task)
 
s32 lines [8]
 FIGHTSTG_updateMessage's, 0 ends them.
 
s32 item
 the item
 
s32 element
 item 0x54's element, 2-8
 
s32 damage
 the damage
 
s32 lowered
 item 0x58's: 1 it lowered the enemy's first stat, 2 its second
 

Detailed Description

FIGHTSTG_updateItem's task: an item used in battle, FIGHTSTG_runItemScript its script.

Definition at line 22 of file action.h.

Field Documentation

◆ id

s32 BattleItem::id

Definition at line 23 of file action.h.

◆ key1

s32 BattleItem::key1

Definition at line 23 of file action.h.

◆ key2

s32 BattleItem::key2

Definition at line 23 of file action.h.

◆ state

s32 BattleItem::state

Definition at line 23 of file action.h.

Referenced by FIGHTSTG_updateItem(), and reviveParty().

◆ substate

s32 BattleItem::substate

Definition at line 23 of file action.h.

Referenced by FIGHTSTG_updateItem().

◆ step

s32 BattleItem::step

Definition at line 23 of file action.h.

Referenced by confuseFighters(), FIGHTSTG_runItemScript(), and reviveParty().

◆ counter

s32 BattleItem::counter

Definition at line 23 of file action.h.

Referenced by FIGHTSTG_runItemScript(), and setUpDrain().

◆ paused

s32 BattleItem::paused

Definition at line 23 of file action.h.

◆ childCount

s32 BattleItem::childCount

Definition at line 23 of file action.h.

◆ children

void* BattleItem::children

Definition at line 23 of file action.h.

◆ setState

void(* BattleItem::setState) (struct BattleItem *task, s32 state)

Definition at line 23 of file action.h.

Referenced by FIGHTSTG_updateItem().

◆ setSubstate

void(* BattleItem::setSubstate) (struct BattleItem *task, s32 substate)

Definition at line 23 of file action.h.

◆ setStep

void(* BattleItem::setStep) (struct BattleItem *task, s32 step)

Definition at line 23 of file action.h.

◆ setCounter

void(* BattleItem::setCounter) (struct BattleItem *task, s32 counter)

Definition at line 23 of file action.h.

◆ nextState

void(* BattleItem::nextState) (struct BattleItem *task)

Definition at line 23 of file action.h.

Referenced by FIGHTSTG_updateItem().

◆ nextSubstate

◆ nextStep

void(* BattleItem::nextStep) (struct BattleItem *task)

Definition at line 23 of file action.h.

Referenced by confuseFighters(), and reviveParty().

◆ tickCounter

void(* BattleItem::tickCounter) (struct BattleItem *task)

Definition at line 23 of file action.h.

◆ update

void(* BattleItem::update) ()

Definition at line 23 of file action.h.

◆ destroy

void(* BattleItem::destroy) (struct BattleItem *task)

Definition at line 23 of file action.h.

◆ lines

◆ item

◆ element

s32 BattleItem::element

item 0x54's element, 2-8

Definition at line 26 of file action.h.

Referenced by boostRandomElement(), and FIGHTSTG_runItemScript().

◆ damage

s32 BattleItem::damage

the damage

Definition at line 27 of file action.h.

Referenced by damageEnemy(), drainEnemy(), FIGHTSTG_runItemScript(), setUpDrain(), and setUpItemTech().

◆ lowered

s32 BattleItem::lowered

item 0x58's: 1 it lowered the enemy's first stat, 2 its second

Definition at line 28 of file action.h.

Referenced by lowerEnemyStat(), and showLoweredStat().


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