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

feat(balance): don't give mi-gos spawned by nerve clusters free turns #4735

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

chaosvolt
Copy link
Member

Purpose of change

A thing I noticed is that unleashing the special bonus surprise in mi-go locations tends to get the player stunlocked and killed, due to giving the critter it spawns several free hits on you.

Describe the solution

In map_functions.cpp, set migo_nerve_cage_removal so that the mi-go takes a penalty to moves when spawned, equal to the moves that iexamine::migo_nerve_cluster takes plus 1 turn.

Describe alternatives you've considered

Simply having it not mod your moves on iexamine at all. Most iexamine interactions take a bit of time so it'd be inconsistent, and burning 2 seconds is normally inconsequential given monsters that haven't been spawned out of thin air in that exact instant have normally spent the time you're activating it spending their moves like normal creatures, it just plays weirdly with spawning a monster at the same time.

Testing

  1. Compiled and load-tested.
  2. Spawned in and activated a nerve cluster, confirmed I don't give it several free hits.
  3. Re-tested with smashing it open with a sledgehammer instead, confirmed I don't give it a free hit anymore either that way. Might still give them a cheap shot if the player uses a weapon with an absurdly high movecost, but the amount of free turns needed for the iexamine to not give it a free shot on you should be comfortably high enough to mitigate most instances of this.
  4. Checked affected file for astyle.

Additional context

Checklist

@github-actions github-actions bot added the src changes related to source code. label Jun 4, 2024
@chaosvolt chaosvolt merged commit eccf5db into cataclysmbnteam:main Jun 4, 2024
13 checks passed
@chaosvolt chaosvolt deleted the goofy-ahh-ayy-lmaos branch June 4, 2024 23:18
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