Skip to content

Fix crash when no valid enemies are selected#5519

Merged
Malkierian merged 2 commits intoHarbourMasters:develop-blairfrom
Pepper0ni:EnemyRandoCrash
May 22, 2025
Merged

Fix crash when no valid enemies are selected#5519
Malkierian merged 2 commits intoHarbourMasters:develop-blairfrom
Pepper0ni:EnemyRandoCrash

Conversation

@Pepper0ni
Copy link
Contributor

@Pepper0ni Pepper0ni commented May 19, 2025

Some enemies cannot appear in clear rooms or timed rooms. If only these enemies were selected, it would cause a lock when the player tried to enter those rooms as there would be an infinite loop of trying and failing to select an enemy. This PR changes the way enemies are selected to remove any looping and also adds a fallback where if nothing valid is available, it allows invalid enemies to spawn.

Build Artifacts

@Malkierian Malkierian merged commit a9fc317 into HarbourMasters:develop-blair May 22, 2025
6 checks passed
@Pepper0ni Pepper0ni deleted the EnemyRandoCrash branch May 22, 2025 22:26
ReddestDream pushed a commit to ReddestDream/Shipwright that referenced this pull request May 23, 2025
* fix crash when no valid enemies are selected

* Clanged
ReddestDream pushed a commit to ReddestDream/Shipwright that referenced this pull request May 23, 2025
* fix crash when no valid enemies are selected

* Clanged
ReddestDream pushed a commit to ReddestDream/Shipwright that referenced this pull request May 23, 2025
* fix crash when no valid enemies are selected

* Clanged
ReddestDream pushed a commit to ReddestDream/Shipwright that referenced this pull request May 26, 2025
* fix crash when no valid enemies are selected

* Clanged
ReddestDream pushed a commit to ReddestDream/Shipwright that referenced this pull request Jun 3, 2025
* fix crash when no valid enemies are selected

* Clanged
krazyjakee pushed a commit to krazyjakee/OOT that referenced this pull request Sep 6, 2025
* fix crash when no valid enemies are selected

* Clanged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants