mirror of
https://github.com/pret/pmd-sky.git
synced 2026-03-21 17:25:15 -05:00
remove move orb effects file
This commit is contained in:
parent
06478b3266
commit
dcb463cd54
|
|
@ -1,16 +0,0 @@
|
|||
#ifndef PMDSKY_MOVE_ORB_EFFECTS_H
|
||||
#define PMDSKY_MOVE_ORB_EFFECTS_H
|
||||
|
||||
#include "dungeon_mode.h"
|
||||
|
||||
enum flash_fire_status {
|
||||
FLASH_FIRE_STATUS_NONE = 0,
|
||||
FLASH_FIRE_STATUS_MAXED = 1,
|
||||
FLASH_FIRE_STATUS_NOT_MAXED = 2
|
||||
};
|
||||
|
||||
// Checks whether Flash Fire should activate, assuming the defender is being hit by a Fire-type move.
|
||||
// This checks that the defender is valid and Flash Fire is active, and that Normalize isn't active on the attacker.
|
||||
enum flash_fire_status FlashFireShouldActivate(struct entity *attacker, struct entity *defender);
|
||||
|
||||
#endif //PMDSKY_MOVE_ORB_EFFECTS_H
|
||||
|
|
@ -1,6 +1,14 @@
|
|||
#ifndef PMDSKY_OVERLAY_29_02313814_H
|
||||
#define PMDSKY_OVERLAY_29_02313814_H
|
||||
|
||||
#include "dungeon_mode.h"
|
||||
|
||||
enum flash_fire_status {
|
||||
FLASH_FIRE_STATUS_NONE = 0,
|
||||
FLASH_FIRE_STATUS_MAXED = 1,
|
||||
FLASH_FIRE_STATUS_NOT_MAXED = 2
|
||||
};
|
||||
|
||||
#define STAT_INDEX_PHYSICAL 0 // Atk, Def
|
||||
#define STAT_INDEX_SPECIAL 1 // Sp Atk, Sp Def
|
||||
#define STAT_INDEX_ACCURACY STAT_INDEX_PHYSICAL
|
||||
|
|
@ -15,5 +23,8 @@ void LowerOffensiveStat(struct entity *user, struct entity *target, struct StatI
|
|||
void LowerDefensiveStat(struct entity *user, struct entity *target, struct StatIndex stat, s32 increment, bool8 checkProtected, bool8 logMsgProtected);
|
||||
void BoostOffensiveStat(struct entity *user, struct entity *target, struct StatIndex stat, s32 nStagesRaw);
|
||||
void BoostDefensiveStat(struct entity *user, struct entity *target, struct StatIndex stat, s32 nStagesRaw);
|
||||
// Checks whether Flash Fire should activate, assuming the defender is being hit by a Fire-type move.
|
||||
// This checks that the defender is valid and Flash Fire is active, and that Normalize isn't active on the attacker.
|
||||
enum flash_fire_status FlashFireShouldActivate(struct entity *attacker, struct entity *defender);
|
||||
|
||||
#endif //PMDSKY_OVERLAY_29_02313814_H
|
||||
|
|
|
|||
1
main.lsf
1
main.lsf
|
|
@ -542,7 +542,6 @@ Overlay OVY_29
|
|||
Object src/overlay_29_02311BF8.o
|
||||
Object asm/overlay_29_02311C28.o
|
||||
Object src/overlay_29_02313814.o
|
||||
Object src/move_orb_effects.o
|
||||
Object asm/overlay_29_02313CE4.o
|
||||
Object src/overlay_29_023147EC.o
|
||||
Object asm/overlay_29_02314810.o
|
||||
|
|
|
|||
|
|
@ -253,3 +253,24 @@ void BoostDefensiveStat(struct entity *user, struct entity *target, struct StatI
|
|||
}
|
||||
UpdateStatusIconFlags(target);
|
||||
}
|
||||
|
||||
enum flash_fire_status FlashFireShouldActivate(struct entity *attacker, struct entity *defender)
|
||||
{
|
||||
if (!EntityIsValid__023118B4(defender))
|
||||
return FLASH_FIRE_STATUS_NONE;
|
||||
|
||||
if (AbilityIsActiveVeneer(attacker, ABILITY_NORMALIZE))
|
||||
return FLASH_FIRE_STATUS_NONE;
|
||||
|
||||
#ifdef JAPAN
|
||||
if (!DefenderAbilityIsActive__02311B94(attacker, defender, ABILITY_FLASH_FIRE))
|
||||
#else
|
||||
if (!DefenderAbilityIsActive__02311B94(attacker, defender, ABILITY_FLASH_FIRE, TRUE))
|
||||
#endif
|
||||
return FLASH_FIRE_STATUS_NONE;
|
||||
|
||||
if (GetEntInfo(defender)->stat_modifiers.flash_fire_boost >= 2)
|
||||
return FLASH_FIRE_STATUS_MAXED;
|
||||
|
||||
return FLASH_FIRE_STATUS_NOT_MAXED;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user