mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-26 16:15:19 -07:00
Merge branch 'get-item-rework' into get-item-rework-rando-next
This commit is contained in:
commit
fc963cf44c
3 changed files with 4 additions and 7 deletions
|
@ -6082,7 +6082,7 @@ s16 GetChestGameRandoGiDrawId(s8 room, s16 ogDrawId, GlobalContext* globalCtx) {
|
||||||
GetItemEntry randoGetItem = GetChestGameRandoGetItem(room, ogDrawId, globalCtx);
|
GetItemEntry randoGetItem = GetChestGameRandoGetItem(room, ogDrawId, globalCtx);
|
||||||
|
|
||||||
if (randoGetItem.itemId != RG_NONE) {
|
if (randoGetItem.itemId != RG_NONE) {
|
||||||
return ABS(randoGetItem.gi) - 1;
|
return randoGetItem.gid;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ogDrawId;
|
return ogDrawId;
|
||||||
|
|
|
@ -139,9 +139,7 @@ void EnExItem_WaitForObject(EnExItem* this, GlobalContext* globalCtx) {
|
||||||
this->unk_17C = func_8002EBCC;
|
this->unk_17C = func_8002EBCC;
|
||||||
if (gSaveContext.n64ddFlag) {
|
if (gSaveContext.n64ddFlag) {
|
||||||
this->giDrawId =
|
this->giDrawId =
|
||||||
ABS(Randomizer_GetItemFromKnownCheck(RC_MARKET_BOMBCHU_BOWLING_FIRST_PRIZE, GI_BOMB_BAG_20)
|
Randomizer_GetItemFromKnownCheck(RC_MARKET_BOMBCHU_BOWLING_FIRST_PRIZE, GI_BOMB_BAG_20).gid;
|
||||||
.gi) -
|
|
||||||
1;
|
|
||||||
} else {
|
} else {
|
||||||
this->giDrawId = GID_BOMB_BAG_30;
|
this->giDrawId = GID_BOMB_BAG_30;
|
||||||
}
|
}
|
||||||
|
@ -175,8 +173,7 @@ void EnExItem_WaitForObject(EnExItem* this, GlobalContext* globalCtx) {
|
||||||
case EXITEM_BOMBCHUS_BOWLING:
|
case EXITEM_BOMBCHUS_BOWLING:
|
||||||
this->unk_17C = func_8002EBCC;
|
this->unk_17C = func_8002EBCC;
|
||||||
if (gSaveContext.n64ddFlag) {
|
if (gSaveContext.n64ddFlag) {
|
||||||
this->giDrawId =
|
this->giDrawId = Randomizer_GetItemFromKnownCheck(RC_MARKET_BOMBCHU_BOWLING_BOMBCHUS, GI_BOMBCHUS_10).gid;
|
||||||
ABS(Randomizer_GetItemFromKnownCheck(RC_MARKET_BOMBCHU_BOWLING_BOMBCHUS, GI_BOMBCHUS_10).gi) - 1;
|
|
||||||
} else {
|
} else {
|
||||||
this->giDrawId = GID_BOMBCHU;
|
this->giDrawId = GID_BOMBCHU;
|
||||||
}
|
}
|
||||||
|
|
|
@ -232,7 +232,7 @@ void ItemEtcetera_DrawThroughLens(Actor* thisx, GlobalContext* globalCtx) {
|
||||||
if(gSaveContext.n64ddFlag && globalCtx->sceneNum == 16) {
|
if(gSaveContext.n64ddFlag && globalCtx->sceneNum == 16) {
|
||||||
GetItemEntry randoGetItem = GetChestGameRandoGetItem(this->actor.room, this->giDrawId, globalCtx);
|
GetItemEntry randoGetItem = GetChestGameRandoGetItem(this->actor.room, this->giDrawId, globalCtx);
|
||||||
EnItem00_CustomItemsParticles(&this->actor, globalCtx, randoGetItem);
|
EnItem00_CustomItemsParticles(&this->actor, globalCtx, randoGetItem);
|
||||||
if (randoGetItem.itemId != RG_NONE) {
|
if (randoGetItem.itemId != ITEM_NONE) {
|
||||||
GetItem_Draw(globalCtx, randoGetItem.gid);
|
GetItem_Draw(globalCtx, randoGetItem.gid);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue