-
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
needs_ammo
checks only equipped weapon, ignoring the armor that can provide technique
#70308
Comments
Looking at all the different places weapon specific techniques are looked at it feels like it would be better to use get_all_techniques more and either have it return techniques associated with their source or just all sources that have techniques to be accessed at more appropriate points. I started attacking it but I don't think the way I'm going about it is sensible master...Procyonae:Cataclysm-DDA:MoreArmorTechniqueSupport |
alternatively one can make EoC/math effect that consume charges from an item, and then it can be emulated entirely using EoC |
I think proper technique source tracking is more important with limbs are becoming more relevant and unarmed weapons being armour now, it'd also make auto-switching for #70969 alot cleaner for example too |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered. |
A consequence of the melee attack logic (
Restructuring the logic to choose an attempted tech first should fix that, and is something I want to get around to eventually. |
Describe the bug
continuation of #69736, and heavy CQC system still doesn't work :(
Attach save file
n/a
Steps to reproduce
Spawn advanced heavy cqc from xedra evolved mod, equip it, turn on
DF_MELEE
debug modepunch debug monster for a few times
see Pneumatic Strike is rejected because "no ammo", while ammo is clearly here
Expected behavior
spending ammo from armor, as expected
Screenshots
Versions and configuration
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
Slowdown Fungal Growth [no_fungal_growth],
Bionic Professions [package_bionic_professions],
SpeedyDex [speedydex],
Stats Through Kills [stats_through_kills],
Stats Through Skills [StatsThroughSkills],
Magiclysm [magiclysm],
Xedra Evolved [xedra_evolved]
]
Additional context
the issue is this code checking only
cur_weapon
Cataclysm-DDA/src/melee.cpp
Lines 1853 to 1865 in 85926f2
Can't fix it on my own
The text was updated successfully, but these errors were encountered: