Skip to content

Commit

Permalink
Some hidden stairs functions (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
assidion2 authored Sep 2, 2024
1 parent 922724f commit a326c83
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
6 changes: 5 additions & 1 deletion headers/functions/overlay29.h
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,12 @@ bool IsSecretRoom(void);
bool IsSecretFloor(void);
enum hidden_stairs_type GetCurrentHiddenStairsType(void);
bool HiddenStairsPresent(void);
bool PositionIsOnHiddenStairs(struct position* position);
void HiddenStairsTrigger(bool show_message);
undefined4 GetDungeonGenInfoUnk0C(void);
enum hidden_stairs_type GetHiddenStairsField(void);
void SetHiddenStairsField(enum hidden_stairs_type hidden_stairs);
enum hidden_stairs_type GetHiddenFloorField(void);
void SetHiddenFloorField(enum hidden_stairs_type hidden_floor);
struct minimap_display_data* GetMinimapData(void);
void DrawMinimapTile(int x, int y);
void UpdateMinimap(void);
Expand Down
36 changes: 34 additions & 2 deletions symbols/overlay29.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6790,6 +6790,14 @@ overlay29:
The function checks that dungeon_generation_info::hidden_stairs_pos isn't (-1, -1)
return: True if the hidden stairs are present on this floor, false otherwise.
- name: PositionIsOnHiddenStairs
address:
EU: 0x23392D8
description: |-
Checks if this location is on top of the hidden stairs.
r0: position pointer
return: bool
- name: HiddenStairsTrigger
address:
EU: 0x2339364
Expand All @@ -6801,12 +6809,36 @@ overlay29:
If the stairs hadn't been revealed yet, plays the corresponding animation.
r0: True to display a message if the stairs are revealed, false to omit it.
- name: GetDungeonGenInfoUnk0C
- name: GetHiddenStairsField
address:
EU: 0x2339420
description: |-
Gets the hidden_stairs_type variable from dungeon::dungeon_generation_info.
return: enum hidden_stairs_type
- name: SetHiddenStairsField
address:
EU: 0x2339438
description: |-
Sets the hidden_stairs_type variable from dungeon::dungeon_generation_info to a certain value.
r0: New value
- name: GetHiddenFloorField
address:
EU: 0x2339450
NA: 0x2338880
JP: 0x2339C44
description: "return: dungeon_generation_info::field_0xc"
description: |-
Gets the hidden_floor_type variable from dungeon::dungeon_generation_info.
return: enum hidden_stairs_type
- name: SetHiddenFloorField
address:
EU: 0x2339468
description: |-
Sets the hidden_floor_type variable from dungeon::dungeon_generation_info to a certain value.
r0: New value
- name: GetMinimapData
address:
EU: 0x2339CE8
Expand Down

0 comments on commit a326c83

Please sign in to comment.