[lua] Move pdif calculations out of weaponskills.lua #6871
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.
I affirm:
What does this pull request do?
Move pdif calculations out of weaponskills.lua, to use the physical utilities ones that already exist
Trusts can't SC anymore if they miss
Misc fixes to make the pdif junk work
Steps to test these changes
Apply this patch;
check ranged ws such as hot shot (hybrid), split shot (def ignore), detonator (attack bonus)
check physical ws such as blade: chi (hybrid), wheeling thrust (def ignore), howling fist (attack bonus)
finally, check viper bite on dancer with building flourish (2+ FMs)
viper bite with 2x FMs + 2 merits:
![image](https://private-user-images.githubusercontent.com/60417494/408290112-dd9fdf07-cecc-41b0-b677-7634d8a697e6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzA5NDMsIm5iZiI6MTczOTE3MDY0MywicGF0aCI6Ii82MDQxNzQ5NC80MDgyOTAxMTItZGQ5ZmRmMDctY2VjYy00MWIwLWI2NzctNzYzNGQ4YTY5N2U2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA2NTcyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRjMDYyNzk2ODBiODdhODZkZWYyOWEyZjdjNjNlOWVlNzhhYTNkODdiZmY3NDEzNjQ2NWY3ZDIxM2E3MDZhMDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.jnn9sYN1sSmdcSQ-PZqogeSaUlrT5z42XsUxrnkBsaY)
Make sure your ratt matches the debug prints:
![image](https://private-user-images.githubusercontent.com/60417494/408293416-5ebd420b-08a7-4492-bb36-751b3909985a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzA5NDMsIm5iZiI6MTczOTE3MDY0MywicGF0aCI6Ii82MDQxNzQ5NC80MDgyOTM0MTYtNWViZDQyMGItMDhhNy00NDkyLWJiMzYtNzUxYjM5MDk5ODVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA2NTcyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA3MDQwYzZlMGFjZjk5OGViOTYzZjgxZTNhMzEzZDcxNTMwNTllNTNlOWNlYTBiZGE4YmZkZjcxODBhNDM3OTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.gX58mOCVvhkXcpIeWNAZZePVXJ3Cg4_2cpVvJzRRW34)