Add hilite setup calls around all custom GI draws (#5043)

This commit is contained in:
Archez
2025-02-12 15:32:28 -05:00
committed by GitHub
parent 135c2e8217
commit 266792599e
7 changed files with 25 additions and 1 deletions

View File

@@ -997,6 +997,12 @@ void EnItem00_Draw(Actor* thisx, PlayState* play) {
EnItem00* this = (EnItem00*)thisx;
f32 mtxScale;
// Setup Hilites for 3D drops
if (CVarGetInteger(CVAR_ENHANCEMENT("NewDrops"), 0)) {
func_8002EBCC(&this->actor, play, 0);
func_8002ED80(&this->actor, play, 0);
}
if (!(this->unk_156 & this->unk_158)) {
switch (this->actor.params) {
case ITEM00_RUPEE_GREEN:

View File

@@ -389,6 +389,9 @@ void EnExRuppy_Draw(Actor* thisx, PlayState* play) {
OPEN_DISPS(play->state.gfxCtx);
if (CVarGetInteger(CVAR_ENHANCEMENT("NewDrops"), 0)) {
func_8002EBCC(&this->actor, play, 0);
func_8002ED80(&this->actor, play, 0);
// purple/gold rupees need less scaling
f32 mtxScale = this->colorIdx >= 3 ? 17.5f : 25.0f;
Matrix_Scale(mtxScale, mtxScale, mtxScale, MTXMODE_APPLY);

View File

@@ -481,6 +481,9 @@ void EnGSwitch_DrawRupee(Actor* thisx, PlayState* play) {
OPEN_DISPS(play->state.gfxCtx);
if (CVarGetInteger(CVAR_ENHANCEMENT("NewDrops"), 0)) {
func_8002EBCC(&this->actor, play, 0);
func_8002ED80(&this->actor, play, 0);
// purple/gold/silver rupees need less scaling
f32 mtxScale = this->colorIdx >= 3 ? 17.5f : 25.0f;
Matrix_Scale(mtxScale, mtxScale, mtxScale, MTXMODE_APPLY);

View File

@@ -1428,6 +1428,9 @@ void EnGirlA_Draw(Actor* thisx, PlayState* play) {
}
if (this->actor.params == SI_RANDOMIZED_ITEM) {
// Set all hilites for randomized items
func_80A3C498(&this->actor, play, 0);
ShopItemIdentity shopItemIdentity = Randomizer_IdentifyShopItem(play->sceneNum, this->randoSlotIndex);
GetItemEntry getItemEntry = (CVarGetInteger(CVAR_RANDOMIZER_ENHANCEMENT("MysteriousShuffle"), 0) && this->actor.params == SI_RANDOMIZED_ITEM) ? GetItemMystery() :
Randomizer_GetItemFromKnownCheckWithoutObtainabilityCheck(shopItemIdentity.randomizerCheck, shopItemIdentity.ogItemId);