papermario
Decompilation of Paper Mario
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
dmg_player.c File Reference

Macros

#define INFLICT_STATUS(STATUS_TYPE)
 

Functions

b32 dispatch_damage_event_player (s32 damageAmount, s32 event, b32 noHitSound)
 
b32 dispatch_hazard_event_player (s32 damageAmount, s32 event)
 
void dispatch_event_player (s32 eventType)
 
void dispatch_event_player_continue_turn (s32 eventType)
 
HitResult calc_player_test_enemy (void)
 
HitResult calc_player_damage_enemy (void)
 
b32 dispatch_damage_tick_event_player (s32 damageAmount, s32 event)
 

Variables

EvtScript EVS_PlaySleepHitFX
 
EvtScript EVS_PlayDizzyHitFX
 
EvtScript EVS_PlayParalyzeHitFX
 
EvtScript EVS_PlayPoisonHitFX
 
EvtScript EVS_PlayStopHitFX
 
EvtScript EVS_PlayFreezeHitFX
 
EvtScript EVS_PlayShrinkHitFX
 

Macro Definition Documentation

◆ INFLICT_STATUS

#define INFLICT_STATUS ( STATUS_TYPE)
Value:
if ((battleStatus->curAttackStatus & STATUS_FLAG_##STATUS_TYPE) && \
try_inflict_status(target, STATUS_KEY_##STATUS_TYPE, STATUS_TURN_MOD_##STATUS_TYPE)) { \
wasSpecialHit = TRUE; \
wasStatusInflicted = TRUE; \
} \
s32 try_inflict_status(Actor *, s32, s32)
Definition 190B20.c:2608

Function Documentation

◆ calc_player_damage_enemy()

HitResult calc_player_damage_enemy ( void )

◆ calc_player_test_enemy()

HitResult calc_player_test_enemy ( void )

◆ dispatch_damage_event_player()

b32 dispatch_damage_event_player ( s32 damageAmount,
s32 event,
b32 noHitSound )

◆ dispatch_damage_tick_event_player()

b32 dispatch_damage_tick_event_player ( s32 damageAmount,
s32 event )

◆ dispatch_event_player()

◆ dispatch_event_player_continue_turn()

void dispatch_event_player_continue_turn ( s32 eventType)

◆ dispatch_hazard_event_player()

b32 dispatch_hazard_event_player ( s32 damageAmount,
s32 event )

Variable Documentation

◆ EVS_PlayDizzyHitFX

EvtScript EVS_PlayDizzyHitFX
Initial value:
= {
Call(PlayDizzyHitFX)
}
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:225
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:588
#define Return
Kills the current EVT thread.
Definition macros.h:229

Referenced by calc_enemy_damage_target(), calc_item_damage_enemy(), calc_partner_damage_enemy(), and calc_player_damage_enemy().

◆ EVS_PlayFreezeHitFX

EvtScript EVS_PlayFreezeHitFX
Initial value:
= {
Call(PlayFreezeHitSnowflakeFX)
Wait(8)
Call(PlayFreezeHitSnowflakeFX)
Wait(15)
Call(PlayFreezeHitParticleFX)
}
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
Definition macros.h:266

Referenced by calc_enemy_damage_target(), calc_item_damage_enemy(), calc_partner_damage_enemy(), and calc_player_damage_enemy().

◆ EVS_PlayParalyzeHitFX

EvtScript EVS_PlayParalyzeHitFX

◆ EVS_PlayPoisonHitFX

EvtScript EVS_PlayPoisonHitFX

◆ EVS_PlayShrinkHitFX

EvtScript EVS_PlayShrinkHitFX

◆ EVS_PlaySleepHitFX

EvtScript EVS_PlaySleepHitFX

◆ EVS_PlayStopHitFX

EvtScript EVS_PlayStopHitFX