mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-26 16:15:19 -07:00
Merge pull request #1246 from leggettc18/ruto-sapphire-fix
Replaces Zora's Sapphire with JabuJabu's Dungeon Reward.
This commit is contained in:
commit
2e9cb4c426
1 changed files with 8 additions and 1 deletions
|
@ -141,6 +141,9 @@ f32 DemoEffect_InterpolateCsFrames(GlobalContext* globalCtx, s32 csActionId) {
|
||||||
*/
|
*/
|
||||||
void DemoEffect_InitJewel(GlobalContext* globalCtx, DemoEffect* this) {
|
void DemoEffect_InitJewel(GlobalContext* globalCtx, DemoEffect* this) {
|
||||||
this->initDrawFunc = DemoEffect_DrawJewel;
|
this->initDrawFunc = DemoEffect_DrawJewel;
|
||||||
|
if (gSaveContext.n64ddFlag && globalCtx->sceneNum == SCENE_BDAN) {
|
||||||
|
this->initDrawFunc = DemoEffect_DrawGetItem;
|
||||||
|
}
|
||||||
if (!LINK_IS_ADULT) {
|
if (!LINK_IS_ADULT) {
|
||||||
this->initUpdateFunc = DemoEffect_UpdateJewelChild;
|
this->initUpdateFunc = DemoEffect_UpdateJewelChild;
|
||||||
} else {
|
} else {
|
||||||
|
@ -152,7 +155,7 @@ void DemoEffect_InitJewel(GlobalContext* globalCtx, DemoEffect* this) {
|
||||||
Actor_SetScale(&this->actor, 0.10f);
|
Actor_SetScale(&this->actor, 0.10f);
|
||||||
}
|
}
|
||||||
this->csActionId = 1;
|
this->csActionId = 1;
|
||||||
this->actor.shape.rot.x = 16384;
|
this->actor.shape.rot.x = (gSaveContext.n64ddFlag && globalCtx->sceneNum == SCENE_BDAN) ? 0 : 16384;
|
||||||
DemoEffect_InitJewelColor(this);
|
DemoEffect_InitJewelColor(this);
|
||||||
this->jewel.alpha = 0;
|
this->jewel.alpha = 0;
|
||||||
this->jewelCsRotation.x = this->jewelCsRotation.y = this->jewelCsRotation.z = 0;
|
this->jewelCsRotation.x = this->jewelCsRotation.y = this->jewelCsRotation.z = 0;
|
||||||
|
@ -2083,6 +2086,10 @@ void DemoEffect_DrawGetItem(Actor* thisx, GlobalContext* globalCtx) {
|
||||||
this->getItem.isLoaded = 1;
|
this->getItem.isLoaded = 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (gSaveContext.n64ddFlag && globalCtx->sceneNum == SCENE_BDAN) {
|
||||||
|
GetItemID getItemID = Randomizer_GetItemIdFromKnownCheck(RC_BARINADE, RG_ZORA_SAPPHIRE);
|
||||||
|
this->getItem.drawId = Randomizer_GetItemModelFromId(getItemID);
|
||||||
|
}
|
||||||
func_8002EBCC(thisx, globalCtx, 0);
|
func_8002EBCC(thisx, globalCtx, 0);
|
||||||
func_8002ED80(thisx, globalCtx, 0);
|
func_8002ED80(thisx, globalCtx, 0);
|
||||||
GetItem_Draw(globalCtx, this->getItem.drawId);
|
GetItem_Draw(globalCtx, this->getItem.drawId);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue