@@ -57,6 +57,22 @@ static const char* GetBrokenLongswordInSheathDL() {
5757 { gCustomBrokenLongswordInSheathDL , gCustomBreakableLongswordInSheathDL , gCustomLongswordInSheathDL });
5858}
5959
60+ static const char * GetCustomFPSSlingshotDL () {
61+ return ResolveCustomChain ({ gCustomFPSSlingshotDL , gCustomSlingshotDL });
62+ }
63+
64+ static const char * GetCustomFPSBowDL () {
65+ return ResolveCustomChain ({ gCustomFPSBowDL , gCustomBowDL });
66+ }
67+
68+ static const char * GetCustomFPSHookshotDL () {
69+ return ResolveCustomChain ({ gCustomFPSHookshotDL , gCustomHookshotDL });
70+ }
71+
72+ static const char * GetCustomFPSLongshotDL () {
73+ return ResolveCustomChain ({ gCustomFPSLongshotDL , gCustomLongshotDL });
74+ }
75+
6076static void UpdateCustomEquipmentSetModel (Player* player, u8 ModelGroup) {
6177 (void )ModelGroup;
6278
@@ -395,17 +411,17 @@ static void ApplyCommonEquipmentPatches() {
395411 ApplyPatchEntries ({
396412 { gLinkAdultRightHandHoldingHookshotNearDL , gCustomHookshotDL , " customHookshot1" , " customHookshot2" ,
397413 " customHookshot3" , rightHandClosed },
398- { gLinkAdultRightHandHoldingHookshotFarDL , gCustomHookshotDL , " customHookshotFPS1" , " customHookshotFPS2 " ,
399- " customHookshotFPS3" , fpsHand },
414+ { gLinkAdultRightHandHoldingHookshotFarDL , GetCustomFPSHookshotDL () , " customHookshotFPS1" ,
415+ " customHookshotFPS2 " , " customHookshotFPS3" , fpsHand },
400416 });
401417 }
402418
403419 if (INV_CONTENT (ITEM_LONGSHOT ) == ITEM_LONGSHOT ) {
404420 ApplyPatchEntries ({
405421 { gLinkAdultRightHandHoldingHookshotNearDL , gCustomLongshotDL , " customHookshot1" , " customHookshot2" ,
406422 " customHookshot3" , rightHandClosed },
407- { gLinkAdultRightHandHoldingHookshotFarDL , gCustomLongshotDL , " customHookshotFPS1" , " customHookshotFPS2 " ,
408- " customHookshotFPS3" , fpsHand },
423+ { gLinkAdultRightHandHoldingHookshotFarDL , GetCustomFPSLongshotDL () , " customHookshotFPS1" ,
424+ " customHookshotFPS2 " , " customHookshotFPS3" , fpsHand },
409425 });
410426 }
411427
@@ -436,16 +452,16 @@ static void ApplyCommonEquipmentPatches() {
436452 " customChildOcarina3" , rightHandNear },
437453 { gLinkAdultRightHandHoldingBowNearDL , gCustomBowDL , " customBow1" , " customBow2" , " customBow3" ,
438454 rightHandClosed },
439- { gLinkAdultRightHandHoldingBowFirstPersonDL , gCustomBowDL , " customBowFPS1" , " customBowFPS2" , " customBowFPS3 " ,
440- fpsHand },
455+ { gLinkAdultRightHandHoldingBowFirstPersonDL , GetCustomFPSBowDL () , " customBowFPS1" , " customBowFPS2" ,
456+ " customBowFPS3 " , fpsHand },
441457 { gLinkAdultLeftHandHoldingHammerNearDL , gCustomHammerDL , " customHammer1" , " customHammer2" , " customHammer3" ,
442458 leftHandClosed },
443459 { gLinkChildLeftFistAndBoomerangNearDL , gCustomBoomerangDL , " customBoomerang1" , " customBoomerang2" ,
444460 " customBoomerang3" , leftHandClosed },
445461 { gLinkChildRightHandHoldingSlingshotNearDL , gCustomSlingshotDL , " customSlingshot1" , " customSlingshot2" ,
446462 " customSlingshot3" , rightHandClosed },
447- { gLinkChildRightArmStretchedSlingshotDL , gCustomSlingshotDL , " customSlingshotFPS1" , " customSlingshotFPS2 " ,
448- " customSlingshotFPS3" , fpsHand },
463+ { gLinkChildRightArmStretchedSlingshotDL , GetCustomFPSSlingshotDL () , " customSlingshotFPS1" ,
464+ " customSlingshotFPS2 " , " customSlingshotFPS3" , fpsHand },
449465 });
450466
451467 ApplyPatchEntries ({
@@ -457,8 +473,8 @@ static void ApplyCommonEquipmentPatches() {
457473 " customBoomerang3" , leftHandClosed },
458474 { gLinkChildRightHandHoldingSlingshotNearDL , gCustomSlingshotDL , " customSlingshot1" , " customSlingshot2" ,
459475 " customSlingshot3" , rightHandClosed },
460- { gLinkChildRightArmStretchedSlingshotDL , gCustomSlingshotDL , " customSlingshotFPS1" , " customSlingshotFPS2 " ,
461- " customSlingshotFPS3" , fpsHand },
476+ { gLinkChildRightArmStretchedSlingshotDL , GetCustomFPSSlingshotDL () , " customSlingshotFPS1" ,
477+ " customSlingshotFPS2 " , " customSlingshotFPS3" , fpsHand },
462478 });
463479}
464480
0 commit comments