Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upElectric Jackhammer with ups mod uses no charge (probably really easy to fix) #15509
Comments
kevingranade
added this to the 0.D milestone
Mar 7, 2016
DanmakuDan
referenced this issue
Apr 1, 2016
Merged
Fix for noncontinuous charge consumption for UPS-modded items like the electric jackhammer. #16005
kevingranade
closed this
in
#16005
Apr 3, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
game1509 commentedFeb 21, 2016
Tried it on Windows and Linux and it still happens.
It has been this was for a few days now but I finally tried it with a fresh game on the tiles version 4448.
It's easy enough to reproduce. Take an electric jackhammer, slap a ups mod in it and charge it over 10 units. Then it effectively has infinite charge because its charge will never decrease.
I fixed it for myself in linux by adding
it->charges -= it->type->charges_to_use()on line 3619 in iuse.cpp in the iuse::jackhammer method.I'm not sure if this is the proper thing to do or not.
I wouldn't even be submitting a bug report but I can't get the darn thing to compile on windows (I wouldn't have brought this up if I had) and I really want to play and use my jackhammer that I spent so long trying to get.
Thank you and please forgive me if I fked something up or if this is improper.