Moving quadrupedally through acid or fire damages both your hands and feet #74639
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Bugfixes "updates ench_quadruped_movement_full and the map::player_in_field function to consider quadrupedal movement."
Purpose of change
When you're moving on your hands and feet through a hazard, damage should also be applied to your hands.
Describe the solution
I updated ench_quadruped_movement_full in enchantments.json to call the "quadruped_full" effect when you meet the right conditions (this also fixes a bug related to you being able to see over objects while running on all-fours).
Then I updated the map::player_in_field function in map_field.cpp so that you burn your hands when moving through acid while quadrupedal. You also receive damage to all your body parts when moving through fire.
Describe alternatives you've considered
Testing
Compiled and tested on my copy of CDDA.
Additional context
I removed
"ench_effects": [ { "effect": "natural_stance", "intensity": 1 } ]
from the Digitigrade mutation in mutations.json since this is also called by ench_quadruped_movement_full (and thus redundant).