-
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
Implement battery item type #32141
Implement battery item type #32141
Conversation
fe35cfc
to
82f95a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great, will be super nice to have everything using proper energy units in the code.
2e877c9
to
967cf30
Compare
Not sure if you saw this already, but travis is failing because of an actual problem compiling on gcc 5.3
|
I saw it but I didn't know how I ought to handle it because it's a compiler bug. It got fixed in GCC 7.0. How far back do we need to support old compilers? |
See https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/COMPILER_SUPPORT.md |
Can you simply define the specialization in the namespace? I.e. wrap lines 1925-1929 in |
Summary
SUMMARY: Infrastructure "Implement new item type for batteries"
Purpose of change
#32067
Describe the solution
units::energy
from jsonBATTERY
item typeBATTERY
type batteriesitem::info
forbattery
islot data