diff --git a/headers/functions/overlay29.h b/headers/functions/overlay29.h index 98548c29..1ac75d7e 100644 --- a/headers/functions/overlay29.h +++ b/headers/functions/overlay29.h @@ -34,6 +34,7 @@ bool ShouldDisplayEntityWrapper(struct entity* entity); bool CanSeeTarget(struct entity* user, struct entity* target); bool CanTargetEntity(struct entity* user, struct entity* target); bool CanTargetPosition(struct entity* monster, struct position* position); +void PopulateActiveMonsterPtrs(); int GetTeamMemberIndex(struct entity* monster); void SubstitutePlaceholderStringTags(int string_id, struct entity* entity, undefined4 param_3); bool UpdateMapSurveyorFlag(void); @@ -55,6 +56,7 @@ void PlayEffectAnimation0x1A9(struct entity* entity); void PlayEffectAnimation0x18E(struct entity* entity); void LoadMappaFileAttributes(int quick_saved, bool disable_monsters, undefined* special_process); enum item_id GetItemIdToSpawn(enum item_list_type item_list); +int CopySpawnEntriesMaster(struct monster_spawn_entry* spawn_entries, int offset); int MonsterSpawnListPartialCopy(struct monster_spawn_entry* buffer, int current_buffer_entries); bool IsOnMonsterSpawnList(enum monster_id monster_id); enum monster_id GetMonsterIdToSpawn(int spawn_weight); diff --git a/symbols/overlay29.yml b/symbols/overlay29.yml index ffcce099..bcf8d90b 100644 --- a/symbols/overlay29.yml +++ b/symbols/overlay29.yml @@ -492,6 +492,11 @@ overlay29: r0: Entity pointer r1: Target position return: True if the specified monster can target the target position, false otherwise. + - name: PopulateActiveMonsterPtrs + address: + EU: 0x22E32B8 + description: |- + Populates active_monster_ptrs with all valid monsters in the monster_slot_headers array. - name: GetTeamMemberIndex address: EU: 0x22E3378 @@ -770,6 +775,15 @@ overlay29: r0: Which item list to use return: Item ID + - name: CopySpawnEntriesMaster + address: + EU: 0x22E8598 + description: |- + Copies the array at spawn_entries_master, starting from offset, to spawn_entries and returns the size. + + r0: [output] Size 16 monster_spawn_entry array + r1: Offset (always 0 in practice) + return: int - name: MonsterSpawnListPartialCopy address: EU: 0x22E8610