Added martial arts and weapons compatibility messages #31244
Merged
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
SUMMARY: Content "Added martial arts and weapons compatibility messages"
Purpose of change
Extension of #30334.
Changing weapons or styles will check if the style and weapon are usable together.
Describe the solution
When the player changes martial art styles, wields a weapon, or unwields a weapon, the game will display a message stating if the weapon/style combination can be used together. If they can be used together, the normal style initiate message will be displayed. But if not, a warning will be displayed to inform the player that they will not be able to use the weapon and style together.
In order to make this change possible I've added two new attributes to the martial arts object: "allow_melee" and "strictly_melee". A martial art with allow_melee set to true means it can be used with ANY melee weapon even if it is not part of the martial art's whitelist of weapons. A martial art with strictly_melee set to true means that the martial art cannot be used unarmed and the player must have a weapon equipped to use it.
Additional context