@@ -118,30 +118,6 @@ int hasBeatenDKRapWinCon(void) {
118118 return 1 ;
119119}
120120
121- int canAccessKroolsChallenge (void ) {
122- // Check all 8 Keys
123- if (getItemCountReq (REQITEM_KEY ) < 8 ) {
124- return 0 ;
125- }
126-
127- // Check all 40 Blueprints
128- if (getItemCountReq (REQITEM_BLUEPRINT ) < 40 ) {
129- return 0 ;
130- }
131-
132- // Check all 7 Bosses
133- if (getItemCountReq (REQITEM_BOSSES ) < 7 ) {
134- return 0 ;
135- }
136-
137- // Check all 43 Bonus Barrels
138- if (getItemCountReq (REQITEM_BONUSES_NOHELM ) < 43 ) {
139- return 0 ;
140- }
141-
142- return 1 ;
143- }
144-
145121int canAccessWinCondition (void ) {
146122 // Check if the win condition requirements are met
147123 switch (Rando .win_condition ) {
@@ -172,8 +148,19 @@ int canAccessWinCondition(void) {
172148
173149 case GOAL_KROOLS_CHALLENGE :
174150 // Krool's Challenge - check if all required items are collected
175- return canAccessKroolsChallenge ();
176-
151+ if (getItemCountReq (REQITEM_KEY ) < 8 ) {
152+ return 0 ;
153+ }
154+ if (getItemCountReq (REQITEM_BLUEPRINT ) < 40 ) {
155+ return 0 ;
156+ }
157+ if (getItemCountReq (REQITEM_BOSSES ) < 7 ) {
158+ return 0 ;
159+ }
160+ if (getItemCountReq (REQITEM_BONUSES_NOHELM ) < 43 ) {
161+ return 0 ;
162+ }
163+ return 1 ;
177164 case GOAL_CUSTOMITEM :
178165 // Custom item requirement - check the specified item count
179166 return isItemRequirementSatisfied (& Rando .win_condition_extra );
@@ -188,7 +175,7 @@ int canAccessWinCondition(void) {
188175void checkSeedVictory (void ) {
189176 if (!checkFlag (FLAG_GAME_BEATEN , FLAGTYPE_PERMANENT )) {
190177 // If win_condition_spawns_ship is enabled, don't trigger victory on win condition items - only when K. Rool is defeated
191- if (Rando .win_condition_spawns_ship == 1 ) {
178+ if (Rando .win_condition_spawns_ship ) {
192179 return ;
193180 }
194181 if (canAccessWinCondition ()) {
0 commit comments