|
|
|
@ -112,14 +112,23 @@ void EnHeishi1_Init(Actor* thisx, GlobalContext* globalCtx) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// eventChkInf[4] & 1 = Got Zelda's Letter
|
|
|
|
|
// eventChkInf[5] & 0x200 = Got item from impa
|
|
|
|
|
// eventChkInf[8] & 1 = Ocarina thrown in moat
|
|
|
|
|
bool metZelda = (gSaveContext.eventChkInf[4] & 1) && (gSaveContext.eventChkInf[5] & 0x200);
|
|
|
|
|
|
|
|
|
|
if (this->type != 5) {
|
|
|
|
|
if (((gSaveContext.dayTime < 0xB888) || IS_DAY) && (gSaveContext.n64ddFlag || !(gSaveContext.eventChkInf[8] & 1))) {
|
|
|
|
|
if ((gSaveContext.dayTime < 0xB888 || IS_DAY) &&
|
|
|
|
|
((!gSaveContext.n64ddFlag && !(gSaveContext.eventChkInf[8] & 1)) ||
|
|
|
|
|
(gSaveContext.n64ddFlag && !metZelda))) {
|
|
|
|
|
this->actionFunc = EnHeishi1_SetupWalk;
|
|
|
|
|
} else {
|
|
|
|
|
Actor_Kill(&this->actor);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if ((gSaveContext.dayTime >= 0xB889) || !IS_DAY || (!gSaveContext.n64ddFlag && (gSaveContext.eventChkInf[8] & 1))) {
|
|
|
|
|
if ((gSaveContext.dayTime >= 0xB889) || !IS_DAY ||
|
|
|
|
|
(!gSaveContext.n64ddFlag && gSaveContext.eventChkInf[8] & 1) ||
|
|
|
|
|
(gSaveContext.n64ddFlag && metZelda)) {
|
|
|
|
|
this->actionFunc = EnHeishi1_SetupWaitNight;
|
|
|
|
|
} else {
|
|
|
|
|
Actor_Kill(&this->actor);
|
|
|
|
|