-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
116 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
.public DUNGEON_PTR | ||
.public IsFullFloorFixedRoom | ||
.public ov29_02344E88 | ||
.public ov29_02352B5C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
.include "asm/macros.inc" | ||
.include "overlay_29_02338560.inc" | ||
|
||
.text | ||
|
||
arm_func_start TrySpawnDoughSeedPoke | ||
TrySpawnDoughSeedPoke: ; 0x02338560 | ||
stmdb sp!, {r3, lr} | ||
ldr r0, _023385BC ; =DUNGEON_PTR | ||
ldr r0, [r0] | ||
add r0, r0, #0x4000 | ||
#ifdef JAPAN | ||
ldrb r0, [r0, #0x24] | ||
#else | ||
ldrb r0, [r0, #0xc8] | ||
#endif | ||
cmp r0, #0 | ||
ldmeqia sp!, {r3, pc} | ||
bl IsFullFloorFixedRoom | ||
cmp r0, #0 | ||
bne _023385A4 | ||
ldr r1, _023385C0 ; =ov29_02352B5C | ||
add r0, sp, #0 | ||
ldrh r2, [r1] | ||
strh r2, [sp] | ||
ldrh r1, [r1, #2] | ||
strh r1, [sp, #2] | ||
bl ov29_02344E88 | ||
_023385A4: | ||
ldr r0, _023385BC ; =DUNGEON_PTR | ||
mov r1, #0 | ||
ldr r0, [r0] | ||
add r0, r0, #0x4000 | ||
#ifdef JAPAN | ||
strb r1, [r0, #0x24] | ||
#else | ||
strb r1, [r0, #0xc8] | ||
#endif | ||
ldmia sp!, {r3, pc} | ||
.align 2, 0 | ||
_023385BC: .word DUNGEON_PTR | ||
_023385C0: .word ov29_02352B5C | ||
arm_func_end TrySpawnDoughSeedPoke |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef PMDSKY_OVERLAY_29_02338548_H | ||
#define PMDSKY_OVERLAY_29_02338548_H | ||
|
||
#include "util.h" | ||
|
||
bool ShouldBoostKecleonShopSpawnChance(void); | ||
void SetShouldBoostKecleonShopSpawnChance(bool boost); | ||
void UpdateShouldBoostKecleonShopSpawnChance(void); | ||
bool GetDoughSeedFlag(void); | ||
void SetDoughSeedFlag(bool flag); | ||
|
||
#endif //PMDSKY_OVERLAY_29_02338548_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#ifndef PMDSKY_OVERLAY_29_02338604_H | ||
#define PMDSKY_OVERLAY_29_02338604_H | ||
|
||
u8 IsSecretBazaar(); | ||
u8 ShouldBoostHiddenStairsSpawnChance(); | ||
void SetShouldBoostHiddenStairsSpawnChance(u8 should_boost); | ||
|
||
#endif //PMDSKY_OVERLAY_29_02338604_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#include "overlay_29_02338548.h" | ||
|
||
#include "dungeon.h" | ||
|
||
extern struct dungeon* DUNGEON_PTR[]; | ||
bool TeamMemberHasExclusiveItemEffectActive(u8); | ||
|
||
bool ShouldBoostKecleonShopSpawnChance(void) | ||
{ | ||
return DUNGEON_PTR[0]->boost_kecleon_shop_spawn_chance; | ||
} | ||
|
||
void SetShouldBoostKecleonShopSpawnChance(bool boost) | ||
{ | ||
DUNGEON_PTR[0]->boost_kecleon_shop_spawn_chance=boost; | ||
} | ||
|
||
void UpdateShouldBoostKecleonShopSpawnChance(void) | ||
{ | ||
DUNGEON_PTR[0]->boost_kecleon_shop_spawn_chance = FALSE; | ||
if (TeamMemberHasExclusiveItemEffectActive(0x5e)) { | ||
DUNGEON_PTR[0]->boost_kecleon_shop_spawn_chance = TRUE; | ||
} | ||
} | ||
|
||
bool GetDoughSeedFlag(void) | ||
{ | ||
return DUNGEON_PTR[0]->gen_info.dough_seed_extra_poke_flag; | ||
} | ||
|
||
|
||
void SetDoughSeedFlag(bool flag) | ||
{ | ||
DUNGEON_PTR[0]->gen_info.dough_seed_extra_poke_flag=flag; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters