-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Nonsensical shot damage calculation #79573
Labels
(S1 - Need confirmation)
Report waiting on confirmation of reproducibility
Comments
Relevant code lives at Cataclysm-DDA/src/game_inventory.cpp Lines 1886 to 1907 in baa0ca2
and I'm presuming Lines 11057 to 11089 in baa0ca2
but I don't know where to go from there or why basic_damage and ammo_damage values are incorrect, but total_damage is. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
In the wield menu, the shot damage calculations don't always add up. The example in this save file is 0+27=24, but the inventory page for the gun itself has 26-2=24 damage.
Attach save file
Kamrar-trimmed.tar.gz
Steps to reproduce
Expected behavior
I expected that the math would check out.
Screenshots
Versions and configuration
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
Portal Storms Ignore NPCs [personal_portal_storms],
Slowdown Fungal Growth [no_fungal_growth]
]
Additional context
This bug does not cause the game to crash.
The text was updated successfully, but these errors were encountered: