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 breaking grab without spending moves by trying to climb up or down #37499

Merged
merged 1 commit into from
Jan 29, 2020
Merged

Fix breaking grab without spending moves by trying to climb up or down #37499

merged 1 commit into from
Jan 29, 2020

Conversation

Night-Pryanik
Copy link
Contributor

Summary

SUMMARY: Bugfixes "Fix breaking grab without spending moves by trying to climb up or down."

Purpose of change

Closes #37488 - Exploit: breaking out of the grab without spending moves.

Describe the solution

Prior to this change game checked for character's inability to move due to being grabbed, crushed, webbed etc for all cases - even if there's no way to climb up or down at this location at all. So I moved check for "climbability" almost to the very top of vertical_move function, before the move_effects check.

Describe alternatives you've considered

None.

Testing

Spawned a zombie, let it grab myself, tried to climb up and down. Got "You can't go up/down here" message, no checks for breaking grab were made.

Additional context

None.

@Night-Pryanik Night-Pryanik added <Bugfix> This is a fix for a bug (or closes open issue) Mechanics: Character / Player Character / Player mechanics labels Jan 29, 2020
@ZhilkinSerg ZhilkinSerg merged commit a3c1c37 into CleverRaven:master Jan 29, 2020
@Night-Pryanik Night-Pryanik deleted the let-go-of-grabbing-fix branch January 29, 2020 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) Mechanics: Character / Player Character / Player mechanics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exploit: breaking out of the grab without spending moves
2 participants