Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Mods "Magiclysm: casters can always ride their mojocycles"
Purpose of change
Technomancer's conjured motorcycle is using standard vehicle controls, which have these flags:
Cataclysm-DDA/data/json/vehicleparts/vehicle_parts.json
Line 1215 in f564973
which are checked here:
Cataclysm-DDA/src/vehicle_use.cpp
Lines 690 to 704 in f564973
Consequently it requires the vehicle user to be a "not-too-small" height and have at least 1 leg.
There are
pedal_exdendersandhand_controlsparts which can relax those requirements, but the Mojocycle is a summoned magical vehicle and you cannot interact/modify it.Describe the solution
Added a
controls_technomancerpart: this is a copy of normal controls, but the restricting flags vere removed. Put this instead of the regularcontrolspart in the mojocycle definition.Describe alternatives you've considered
Feel the goblin suffering after he manages to cast the mojocycle for the first time.
I could instead just add
pedal_extendersandhand_controlsto the mojocycle, but it clutters the tile with more parts, puts more flags in use etc... Let the magic motorcycle do its magic things.Testing
Loaded the game as a character with "Very Short" trait. Summoned the mojocycle. Can ride it now.
Additional context