mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-06 14:20:11 +00:00
Remove some unaligned fake symbols (#535)
* Darkmeiro decompilation Bg_Gnd_Darkmeiro decompiled, matched, and documented. * give this a shot * fix conflict * one more try * could be useful * whoops * ZAP2 stuff * ZAP why * ZAP again * a few fake syms * two more * format
This commit is contained in:
parent
5632df406b
commit
6e78efd0c5
27 changed files with 60 additions and 81 deletions
|
@ -506,9 +506,9 @@ void BgPoEvent_PaintingPresent(BgPoEvent* this, GlobalContext* globalCtx) {
|
|||
DECR(this->timer);
|
||||
|
||||
if (((this->timer == 0) || ((thisx->xzDistFromLink < 150.0f) && (thisx->yDistFromLink < 50.0f)) ||
|
||||
(func_8002DD78(player) && (thisx->xzDistFromLink < 320.0f) &&
|
||||
((this->index != 2) ? (thisx->yDistFromLink < 100.0f) : (thisx->yDistFromLink < 0.0f)) &&
|
||||
func_8002DFC8(thisx, 0x2000, globalCtx))) &&
|
||||
(func_8002DD78(player) && (thisx->xzDistFromLink < 320.0f) &&
|
||||
((this->index != 2) ? (thisx->yDistFromLink < 100.0f) : (thisx->yDistFromLink < 0.0f)) &&
|
||||
func_8002DFC8(thisx, 0x2000, globalCtx))) &&
|
||||
((thisx->parent != NULL) || (thisx->child != NULL))) {
|
||||
/*The third condition in the || is checking if
|
||||
1) Link is holding a ranged weapon
|
||||
|
|
|
@ -1478,8 +1478,7 @@ void EnGeldB_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
|||
} else {
|
||||
this->timer--;
|
||||
if (this->timer == 0) {
|
||||
if ((INV_CONTENT(ITEM_HOOKSHOT) == ITEM_NONE) ||
|
||||
(INV_CONTENT(ITEM_LONGSHOT) == ITEM_NONE)) {
|
||||
if ((INV_CONTENT(ITEM_HOOKSHOT) == ITEM_NONE) || (INV_CONTENT(ITEM_LONGSHOT) == ITEM_NONE)) {
|
||||
globalCtx->nextEntranceIndex = 0x1A5;
|
||||
} else if (gSaveContext.eventChkInf[12] & 0x80) {
|
||||
globalCtx->nextEntranceIndex = 0x5F8;
|
||||
|
|
|
@ -257,7 +257,8 @@ void EnSyatekiMan_EndGame(EnSyatekiMan* this, GlobalContext* globalCtx) {
|
|||
this->actor.parent = NULL;
|
||||
if (LINK_IS_CHILD) {
|
||||
if (!(gSaveContext.itemGetInf[0] & 0x2000)) {
|
||||
osSyncPrintf(VT_FGCOL(GREEN) "☆☆☆☆☆ Equip_Pachinko ☆☆☆☆☆ %d\n" VT_RST, CUR_UPG_VALUE(UPG_BULLET_BAG));
|
||||
osSyncPrintf(VT_FGCOL(GREEN) "☆☆☆☆☆ Equip_Pachinko ☆☆☆☆☆ %d\n" VT_RST,
|
||||
CUR_UPG_VALUE(UPG_BULLET_BAG));
|
||||
if (CUR_UPG_VALUE(UPG_BULLET_BAG) == 1) {
|
||||
this->getItemId = GI_BULLET_BAG_40;
|
||||
} else {
|
||||
|
@ -268,7 +269,8 @@ void EnSyatekiMan_EndGame(EnSyatekiMan* this, GlobalContext* globalCtx) {
|
|||
}
|
||||
} else {
|
||||
if (!(gSaveContext.itemGetInf[0] & 0x4000)) {
|
||||
osSyncPrintf(VT_FGCOL(GREEN) "☆☆☆☆☆ Equip_Bow ☆☆☆☆☆ %d\n" VT_RST, CUR_UPG_VALUE(UPG_QUIVER));
|
||||
osSyncPrintf(VT_FGCOL(GREEN) "☆☆☆☆☆ Equip_Bow ☆☆☆☆☆ %d\n" VT_RST,
|
||||
CUR_UPG_VALUE(UPG_QUIVER));
|
||||
switch (CUR_UPG_VALUE(UPG_QUIVER)) {
|
||||
case 0:
|
||||
this->getItemId = GI_RUPEE_PURPLE;
|
||||
|
|
|
@ -2029,8 +2029,8 @@ void func_80834298(Player* this, GlobalContext* globalCtx) {
|
|||
if ((this->actor.type == ACTORTYPE_PLAYER) && !(this->stateFlags1 & 0x100) &&
|
||||
((this->heldItemActionParam == this->itemActionParam) || (this->stateFlags1 & 0x400000)) &&
|
||||
(gSaveContext.health != 0) && (globalCtx->csCtx.state == 0) && (this->csMode == 0) &&
|
||||
(globalCtx->shootingGalleryStatus == 0) && (globalCtx->activeCamera == 0) && (globalCtx->sceneLoadFlag != 0x14) &&
|
||||
(gSaveContext.timer1State != 10)) {
|
||||
(globalCtx->shootingGalleryStatus == 0) && (globalCtx->activeCamera == 0) &&
|
||||
(globalCtx->sceneLoadFlag != 0x14) && (gSaveContext.timer1State != 10)) {
|
||||
func_80833DF8(this, globalCtx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue