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

Armored monsters won't avoid sharp terrain no more, even if not attacking #55243

Merged
merged 1 commit into from
Feb 11, 2022
Merged

Armored monsters won't avoid sharp terrain no more, even if not attacking #55243

merged 1 commit into from
Feb 11, 2022

Conversation

Night-Pryanik
Copy link
Contributor

Summary

Bugfixes "Armored monsters won't avoid sharp terrain no more, even if not attacking."

Purpose of change

Armored monsters shouldn't avoid sharp terrains, such as rose bushes, as they can't hurt them.

Describe the solution

Added check for cut armor value of monster in will_move_to function, to the block with checks for sharp terrain.

Describe alternatives you've considered

None.

Testing

Tried to push my Grunt mecha into a rose bush. It successfully moved to that location.
Tried to push my befriended horse into a rose bush. It didn't move.

Additional context

None.

@Night-Pryanik Night-Pryanik added [C++] Changes (can be) made in C++. Previously named `Code` Monsters Monsters both friendly and unfriendly. labels Feb 9, 2022
@github-actions github-actions bot added json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Feb 9, 2022
@kevingranade kevingranade merged commit fccacf1 into CleverRaven:master Feb 11, 2022
@Night-Pryanik Night-Pryanik deleted the armored-monsters-wont-avoid-sharp-terrains branch February 12, 2022 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions Monsters Monsters both friendly and unfriendly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants