mirror of
https://github.com/zeldaret/tmc
synced 2026-07-10 07:06:52 -04:00
Match sub_080186C0
This commit is contained in:
@@ -28,6 +28,11 @@ void sub_080189EC(int);
|
||||
void sub_0801876C(int, int);
|
||||
void sub_08018738(u32, int);
|
||||
|
||||
void sub_080186C0(u32 param_1) {
|
||||
gArea.inventoryGfxIdx = 0xff;
|
||||
gArea.unk2C = param_1;
|
||||
}
|
||||
|
||||
void sub_080186D4(void) {
|
||||
if (gArea.inventoryGfxIdx == 0xff) {
|
||||
sub_0801855C();
|
||||
|
||||
@@ -808,7 +808,7 @@ void sub_0809584C(Object6AEntity* this) {
|
||||
u32 tmp, idx;
|
||||
|
||||
idx = super->health;
|
||||
if ((idx & 0x7F) != 0 && !ReadBit((u32*)gArea.filler5, idx - 1))
|
||||
if ((idx & 0x7F) != 0 && !ReadBit((u32*)gArea.filler6, idx - 1))
|
||||
DeleteThisEntity();
|
||||
if (super->timer != 0 && CheckKinstoneFused(super->type2))
|
||||
DeleteThisEntity();
|
||||
|
||||
@@ -23,7 +23,7 @@ void Whirlwind(Entity* this) {
|
||||
Whirlwind_Action2,
|
||||
};
|
||||
u32 tmp = this->health;
|
||||
if (((tmp & 0x7f) != 0) && (ReadBit(gArea.filler5, tmp - 1) == 0)) {
|
||||
if (((tmp & 0x7f) != 0) && (ReadBit(gArea.filler6, tmp - 1) == 0)) {
|
||||
DeleteThisEntity();
|
||||
}
|
||||
Whirlwind_Actions[this->action](this);
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ static bool32 sub_0807007C(struct_gUnk_020000C0*, u32);
|
||||
|
||||
void sub_0806F364(void) {
|
||||
gArea.filler[2] ^= 0x80;
|
||||
MemClear(&gArea.filler5[(gArea.filler[2] + 7) / 8], 16);
|
||||
MemClear(&gArea.filler6[(gArea.filler[2] + 7) / 8], 16);
|
||||
}
|
||||
|
||||
void sub_0806F38C(void) {
|
||||
|
||||
Reference in New Issue
Block a user