-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Work towards Deprecating "melee_cut" #57913
Conversation
I think I'll need to add the tropicataclysm folder to my project folders and do the same for their monsters. |
@dseguin You might know a way for me to do the find and replace with the old value for "melee_cut": '*', wildcarded so it replaces easily? |
If this is on Linux (or at least WSL) you can use sed: sed 's/"melee_cut": \([0-9]\+\),/"melee_damage": [ { "damage_type": "cut", "amount": \1 } ],/g' Anything that uses regex replace can do this. |
Is it/will it be possible then to change some of these damage types? Right now all dinos do bonus cut damage if they do bonus damage, but it would be better if the damage type matched the dino. For example a dino that rams or smashes should be bashing. |
It's already possible but no one has gone through and updated old monsters to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DinoMod stuff looks good. I'll add specific damage types in a followup PR, I'll try and pull in some vanilla ones too
Need to understand if |
Spell checker encountered unrecognized words in the in-game text added in this pull request. See below for details. Click to expand
This alert is automatically generated. You can simply disregard if this is inaccurate, or (optionally) you can also add the new words to |
CleverRaven/Cataclysm-DDA#57913 means it's likely a matter of time before code support for the old method is stripped out of DDA, plus it's probably good to switch anyway.
Summary
None
Purpose of change
Make all bonus damage follow the "melee_damage" array format. I believe this will eliminate confusion in monster making by standardizing. Standardizing should also help prepare the way for jsonized damage types in post 0.G.
Describe the solution
Well the capture wildcards find and replace failed but it gave me the idea of replacing everything in a way that allows me to easily go in and modify each line and I can then easily check when I've completed a given file. But it's basically just find and replace.
Describe alternatives you've considered
Not doing this, but I think it's important.
Testing
Tests should continue to fail extensively until I've fixed everything I broke in the original find and replace :)
Additional context
This won't break third party mods but if
melee_cut
is phased out it will.