summaryrefslogtreecommitdiff
path: root/src/manager
diff options
context:
space:
mode:
authoroctorock <79596758+octorock@users.noreply.github.com>2023-05-31 23:51:20 +0200
committeroctorock <79596758+octorock@users.noreply.github.com>2023-05-31 23:51:20 +0200
commitbbac5ace3fb87828f288ff583f72a5a51af5a05f (patch)
tree70fb8b55e62a1d270e9f3cec927519a34ca17100 /src/manager
parent134f39a0bdad19fc794e19fba56d072d1ab30022 (diff)
parent79bbd540a8846e48f97b77ea03d28828bdcca0ae (diff)
Merge remote-tracking branch 'upstream/master' into tilemap-docs
Diffstat (limited to 'src/manager')
-rw-r--r--src/manager/enterRoomTextboxManager.c6
-rw-r--r--src/manager/goronMerchantShopManager.c9
2 files changed, 7 insertions, 8 deletions
diff --git a/src/manager/enterRoomTextboxManager.c b/src/manager/enterRoomTextboxManager.c
index 59f31e2f..959e90f9 100644
--- a/src/manager/enterRoomTextboxManager.c
+++ b/src/manager/enterRoomTextboxManager.c
@@ -13,8 +13,6 @@
#include "message.h"
#include "screen.h"
-extern u8 gUnk_02034DF0[0x2F2];
-
const u16 gUnk_08108DE8[] = { 0, 0x70b, 0x70c, 0x70d, 0x70e, 0x70f, 0x710, 0x711, 0x712, 0x713, 0x714,
0x715, 0x716, 0x717, 0x718, 0x719, 0x71a, 0x71b, 0x71c, 0x71d, 0x71e, 0x71f,
0x726, 0x720, 0x720, 0x721, 0x722, 0x723, 0x725, 0x727, 0x724, 0x728 };
@@ -67,7 +65,7 @@ void sub_0805E18C(EnterRoomTextboxManager* this) {
}
void sub_0805E1D8(EnterRoomTextboxManager* this) {
- MemClear(&gUnk_02034DF0, 0x80);
+ MemClear(&gBG0Buffer[0xa0], 0x80);
gScreen.bg0.updated = 1;
DeleteThisEntity();
}
@@ -80,7 +78,7 @@ void sub_0805E1F8(u32 unk0, bool32 isDungeon) {
u8 unk_06[3];
} PACKED tmp;
const Font* font;
- MemClear(&gUnk_02034DF0, 0x80);
+ MemClear(&gBG0Buffer[0xa0], 0x80);
MemCopy(gUnk_08108E60, &tmp, sizeof(tmp));
tmp.unk_04 = unk0 >> 8;
tmp.unk_05 = unk0;
diff --git a/src/manager/goronMerchantShopManager.c b/src/manager/goronMerchantShopManager.c
index 3f6ed6b5..feb2f7c0 100644
--- a/src/manager/goronMerchantShopManager.c
+++ b/src/manager/goronMerchantShopManager.c
@@ -8,16 +8,17 @@
#include "asm.h"
#include "flags.h"
#include "object.h"
+#include "item.h"
typedef struct {
u16 minType;
- u16 maxType;
+ u16 numTypes;
u16 x;
u16 y;
} GoronShopSpawnData;
void GoronMerchantShopManager_Main(GoronMerchantShopManager* this) {
- static const GoronShopSpawnData gUnk_08108D5C[3] = { { 0x6e, 0x3, 0x210, 0x210 },
+ static const GoronShopSpawnData shopSpawnData[3] = { { 0x6e, 0x3, 0x210, 0x210 },
{ 0x71, 0x2, 0x220, 0x210 },
{ 0x73, 0x3, 0x230, 0x210 } };
s32 uVar2;
@@ -54,12 +55,12 @@ void GoronMerchantShopManager_Main(GoronMerchantShopManager* this) {
this->itemActive[2] = 0;
this->itemActive[1] = 0;
this->itemActive[0] = 0;
- spawnData = gUnk_08108D5C;
+ spawnData = shopSpawnData;
count = 0;
for (count = 0; count < 3;) {
if (CheckGlobalFlag(GORON_KAKERA_L + count) == 0) {
Entity* object =
- CreateObject(SHOP_ITEM, 0x5c, ((s32)Random() % spawnData->maxType) + spawnData->minType);
+ CreateObject(SHOP_ITEM, ITEM_KINSTONE, ((s32)Random() % spawnData->numTypes) + spawnData->minType);
if (object != NULL) {
object->timer = 1;
object->subtimer = count;