[cpp] fixes ranged job abilities#9941
Conversation
WinterSolstice8
left a comment
There was a problem hiding this comment.
Very good find on the double/triple shot.
|
Looks like |
Agreed! Although for trusts, we could probably skip the getBarrageShotCount with the logic already present. @WinterSolstice8 - how would you prefer I proceed on this one? I can remove the faulty line and force push, or head on over to the battleutils. |
There is slightly more than just getBarrageShotCount itself that annoys me so I'll make a PR just to fix that. It will make your PR smaller here too (you will just be able to call that function and get the output you want) |
|
Copy - I'll consolidate and update post #9943 |
1b05115 to
1a90b78
Compare
|
Consolidated post #9943 Also adjusted the priority order for evaluating Triple Shot before Double Shot. |
- Removes shadow bug for double and triple shot (+40% activation rate over what's shown on mod::double_shot_rate and mod::triple_shot_rate
- Existing bug is due to base power applied both in src/map/entities/charentity.cpp:2104 ("40 +") and scripts/globals/job_utils/ranger.lua:294 (power = 40) for double shot and scripts/actions/abilities/triple_shot.lua:16 for triple shot (power = 40); both cases result in mod power of 40, but activation rate of 80 due to charentity calculation.
- Adds barrage logic for trusts, which scales with player level, and prevents overlap of barrage/double shot/triple shot
8aa8a27 to
7a18991
Compare
I affirm:
What does this pull request do?
Removes shadow bug for double and triple shot (+40% activation rate over what's shown on mod::double_shot_rate and mod::triple_shot_rate
Existing bug is due to base power applied both in src/map/entities/charentity.cpp:2104 ("40 +") and scripts/globals/job_utils/ranger.lua:294 (power = 40) for double shot and scripts/actions/abilities/triple_shot.lua:16 for triple shot (power = 40); both cases result in mod power of 40, but activation rate of 80 due to charentity calculation.
Adds barrage logic for trusts, which scales with player level, and prevents overlap of barrage/double shot/triple shot
Steps to test these changes
Activate double shot or triple shot, fire at targets and compare results for damage and TP (easiest indicator)
Your base activation rate should be approximately 40%, if every shot hit. Typically observed at 30-40% due to racc and rng.
For testing the Trust Barrage effects, summon Semih Lafihna after level 50. She will use it effectively.
Sources:
https://www.bg-wiki.com/ffxi/Barrage
*established around 2012
https://www.bg-wiki.com/ffxi/Double_Shot
https://www.bg-wiki.com/ffxi/Triple_Shot