Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't allow IMMOBILE monsters to join hordes #4205

Merged

Conversation

chaosvolt
Copy link
Member

Purpose of change

In my laptop save I spotted a trapped tendril just chilling in the middle of a lake, having drifted from the nearby office tower due to horde mode behavior.

Describe the solution

In overmap.cpp, changed overmap::move_hordes so that the OR function that filters out monsters who should not join hordes also checks for stuff with the IMMOBILE monster flag. It already excludes monsters with a speed of 30 or less, so monsters that can't move at all are fitting to exclude too.

Describe alternatives you've considered

Not playing with wander spawns on and/or not trying to raid aircraft carriers just offshore from collapsed office towers.

Testing

Currently out and about, can compile test when I get back home but don't see any sane way to actually test this other than setting half the monsters in the game to have the IMMOBILE flag then agitating the zeds to see what gets horde'd, given how uncommon immobile zeds are.

Additional context

Dang ol' floor tentacles growin' legs and waddlin' off I swear

Also a problem in DDA currently: https://github.com/CleverRaven/Cataclysm-DDA/blob/master/src/overmap.cpp#L4097

Checklist

@github-actions github-actions bot added the src changes related to source code. label Feb 8, 2024
@scarf005 scarf005 merged commit 22002a5 into cataclysmbnteam:main Feb 9, 2024
13 checks passed
@chaosvolt chaosvolt deleted the do-not-free-the-trapped-tendrils branch February 9, 2024 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
src changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants