Skip to content

Commit

Permalink
Monster initialization functions
Browse files Browse the repository at this point in the history
  • Loading branch information
assidion2 committed Sep 6, 2024
1 parent caf29e4 commit 81ffc75
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions headers/functions/overlay29.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
14 changes: 14 additions & 0 deletions symbols/overlay29.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 81ffc75

Please sign in to comment.