summaryrefslogtreecommitdiff
path: root/src/kecleon_items_1.c
diff options
context:
space:
mode:
authorCheng Hann Gan <chenghanngan.us@gmail.com>2021-09-09 19:22:48 -0400
committerGitHub <noreply@github.com>2021-09-09 16:22:48 -0700
commit8237e29a164211eb2ec4cd161eb4183cc1947fee (patch)
tree67dc502264b755dc620f56969f3bea68a40b17af /src/kecleon_items_1.c
parent4eff1882443b0004d9c9fa4895cdfefdc356565f (diff)
Defined more in-dungeon structs and enums (#53)
* Defined DungeonEntity * Rename EntityType enums * Revert EntityType rename * Defined more in-dungeon structs and enums * Added more dungeon global structs/enums * Prefixed dungeonGlobalData with g * Fixed compile errors * Removed some CRLFs * Fixed compile after merge * Revert Makefile * Rename DungeonEntityData.entityType Co-authored-by: Seth Barberee <seth.barberee@gmail.com> * Renamed symbols per PR comments Co-authored-by: Cheng Hann Gan <chenghann_gan@ultimatesoftware.com> Co-authored-by: Seth Barberee <seth.barberee@gmail.com>
Diffstat (limited to 'src/kecleon_items_1.c')
-rw-r--r--src/kecleon_items_1.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/kecleon_items_1.c b/src/kecleon_items_1.c
index b4f1b44..6d73eb0 100644
--- a/src/kecleon_items_1.c
+++ b/src/kecleon_items_1.c
@@ -28,7 +28,7 @@ extern void DrawTeamMoneyBox(u32);
void sub_8019B08(void)
{
- switch(sub_801A6E8(1))
+ switch(sub_801A6E8(1))
{
case 0:
break;
@@ -59,7 +59,7 @@ void sub_8019B08(void)
void sub_8019BBC(void)
{
int menuAction;
-
+
menuAction = 0;
if (gUnknown_203B210->unk4) {
sub_8019EDC(0);
@@ -94,7 +94,7 @@ void sub_8019BBC(void)
void sub_8019C78(void)
{
int menuAction;
-
+
menuAction = 0;
sub_801A6E8(0);
if ((sub_8012FD8(&gUnknown_203B210->unk84) == '\0') && (sub_8013114(&gUnknown_203B210->unk84,&menuAction), menuAction != 1)) {
@@ -176,12 +176,12 @@ void sub_8019DAC(void)
s32 iVar3;
struct ItemSlot *pbVar4;
s32 iVar5;
-
+
gUnknown_203B210->unk14 = 0;
gUnknown_203B210->unk18 = 0;
for(iVar5 = 0; iVar5 < 0x14; iVar5++){
pbVar4 = &gTeamInventory_203B460->teamItems[iVar5];
- if (((pbVar4->unk0 & 1) != 0) && (CanSellItem(pbVar4->itemIndex))) {
+ if (((pbVar4->itemFlags & ITEM_FLAG_EXISTS) != 0) && (CanSellItem(pbVar4->itemIndex))) {
iVar3 = GetStackSellPrice(pbVar4);
gUnknown_203B210->unk18 += iVar3;
gUnknown_203B210->unk14++;
@@ -191,7 +191,7 @@ void sub_8019DAC(void)
void sub_8019E04(s32 param_1)
{
-
+
if (gUnknown_203B210->unk4) {
if (param_1 == 1)
gUnknown_203B210->unkE0 = 1;