Decomped MonsterHasNegativeStatus

This commit is contained in:
AnonymousRandomPerson
2025-05-08 23:58:34 -04:00
parent b611d91008
commit ce66deac4c
9 changed files with 133 additions and 153 deletions

11
include/dungeon_logic.h Normal file
View File

@@ -0,0 +1,11 @@
#ifndef PMDSKY_DUNGEON_LOGIC_H
#define PMDSKY_DUNGEON_LOGIC_H
#include "dungeon_mode.h"
// Checks if a monster has any "negative" status conditions. This includes a wide variety of non-self-inflicted statuses that could traditionally be viewed as actual "status conditions", as well as speed being lowered and moves being sealed.
// monster: entity pointer
// check_held_item: flag for whether to check for the held item (see IsMonsterVisuallyImpaired)
bool8 MonsterHasNegativeStatus(struct entity *monster, bool8 check_held_item);
#endif //PMDSKY_DUNGEON_LOGIC_H

View File

@@ -11,6 +11,7 @@
#define NUM_PICKED_IQ_SKILLS 3
#define MAX_MON_MOVES 4
#define MAX_SPEED_STAGE 4
#define NUM_SPEED_COUNTERS 5
// Used in various contexts, like with entity positions in the dungeon
struct position {