mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-12 22:48:04 -05:00
Added v1 ice traps and fixed some tokens
This commit is contained in:
parent
3341c3d404
commit
3a11aa08bb
@ -3018,6 +3018,8 @@ RandomizerCheck Randomizer::GetCheckFromActor(s16 sceneNum, s16 actorId, s16 act
|
|||||||
} else {
|
} else {
|
||||||
return RC_KAK_ANJU_AS_CHILD;
|
return RC_KAK_ANJU_AS_CHILD;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
switch (actorParams) {
|
||||||
case -28640:
|
case -28640:
|
||||||
return RC_KAK_GS_TREE;
|
return RC_KAK_GS_TREE;
|
||||||
case 20482:
|
case 20482:
|
||||||
|
@ -1735,6 +1735,20 @@ void Message_OpenText(GlobalContext* globalCtx, u16 textId) {
|
|||||||
} else {
|
} else {
|
||||||
msgCtx->msgLength = font->msgLength = CopyGanonHintText(font->msgBuf, sizeof(font->msgBuf));
|
msgCtx->msgLength = font->msgLength = CopyGanonHintText(font->msgBuf, sizeof(font->msgBuf));
|
||||||
}
|
}
|
||||||
|
} else if (textId == 0xF8 && GET_PLAYER(globalCtx)->getItemId == GI_ICE_TRAP) {
|
||||||
|
switch (gSaveContext.language) {
|
||||||
|
case LANGUAGE_FRA:
|
||||||
|
strcpy(font->msgBuf, "\x08\x06\x50\x05\x43IDIOT\x0E\x20\x02");
|
||||||
|
break;
|
||||||
|
case LANGUAGE_GER:
|
||||||
|
strcpy(font->msgBuf, "\x08\x06\x15 Du bist ein\x05\x43 DUMMKOPF\x05\x40!\x0E\x20\x02");
|
||||||
|
break;
|
||||||
|
case LANGUAGE_ENG:
|
||||||
|
default:
|
||||||
|
strcpy(font->msgBuf, "\x08\x06\x30You are a\x05\x43 FOWL\x05\x40!\x0E\x20\x02");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
msgCtx->msgLength = font->msgLength = strlen(font->msgBuf);
|
||||||
} else {
|
} else {
|
||||||
msgCtx->msgLength = font->msgLength;
|
msgCtx->msgLength = font->msgLength;
|
||||||
char* src = (uintptr_t)font->msgOffset;
|
char* src = (uintptr_t)font->msgOffset;
|
||||||
|
@ -98,11 +98,17 @@ void func_80AFB768(EnSi* this, GlobalContext* globalCtx) {
|
|||||||
if (this->collider.base.ocFlags2 & OC2_HIT_PLAYER) {
|
if (this->collider.base.ocFlags2 & OC2_HIT_PLAYER) {
|
||||||
this->collider.base.ocFlags2 &= ~OC2_HIT_PLAYER;
|
this->collider.base.ocFlags2 &= ~OC2_HIT_PLAYER;
|
||||||
if (gSaveContext.n64ddFlag) {
|
if (gSaveContext.n64ddFlag) {
|
||||||
getItemId = GetRandomizedItemId(GI_SKULL_TOKEN, this->actor.id, this->actor.params, globalCtx->sceneNum);
|
if (getItemId == GI_ICE_TRAP) {
|
||||||
textId = sGetItemTable[getItemId - 1].textId;
|
GiveItemWithoutActor(globalCtx, getItemId);
|
||||||
giveItemId = sGetItemTable[getItemId - 1].itemId;
|
textId = 0xF8;
|
||||||
|
} else {
|
||||||
|
textId = sGetItemTable[getItemId - 1].textId;
|
||||||
|
giveItemId = sGetItemTable[getItemId - 1].itemId;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (getItemId != GI_ICE_TRAP) {
|
||||||
|
Item_Give(globalCtx, giveItemId);
|
||||||
}
|
}
|
||||||
Item_Give(globalCtx, giveItemId);
|
|
||||||
if (CVar_GetS32("gSkulltulaFreeze", 0) != 1 || giveItemId != ITEM_SKULL_TOKEN) {
|
if (CVar_GetS32("gSkulltulaFreeze", 0) != 1 || giveItemId != ITEM_SKULL_TOKEN) {
|
||||||
player->actor.freezeTimer = 20;
|
player->actor.freezeTimer = 20;
|
||||||
}
|
}
|
||||||
@ -127,11 +133,17 @@ void func_80AFB89C(EnSi* this, GlobalContext* globalCtx) {
|
|||||||
|
|
||||||
if (!CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_13)) {
|
if (!CHECK_FLAG_ALL(this->actor.flags, ACTOR_FLAG_13)) {
|
||||||
if (gSaveContext.n64ddFlag) {
|
if (gSaveContext.n64ddFlag) {
|
||||||
getItemId = GetRandomizedItemId(GI_SKULL_TOKEN, this->actor.id, this->actor.params, globalCtx->sceneNum);
|
if (getItemId == GI_ICE_TRAP) {
|
||||||
giveItemId = sGetItemTable[getItemId - 1].itemId;
|
GiveItemWithoutActor(globalCtx, getItemId);
|
||||||
textId = sGetItemTable[getItemId - 1].textId;
|
textId = 0xF8;
|
||||||
|
} else {
|
||||||
|
textId = sGetItemTable[getItemId - 1].textId;
|
||||||
|
giveItemId = sGetItemTable[getItemId - 1].itemId;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (getItemId != GI_ICE_TRAP) {
|
||||||
|
Item_Give(globalCtx, giveItemId);
|
||||||
}
|
}
|
||||||
Item_Give(globalCtx, giveItemId);
|
|
||||||
Message_StartTextbox(globalCtx, textId, NULL);
|
Message_StartTextbox(globalCtx, textId, NULL);
|
||||||
Audio_PlayFanfare(NA_BGM_SMALL_ITEM_GET);
|
Audio_PlayFanfare(NA_BGM_SMALL_ITEM_GET);
|
||||||
this->actionFunc = func_80AFB950;
|
this->actionFunc = func_80AFB950;
|
||||||
|
Loading…
Reference in New Issue
Block a user