Skip to content
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

[RDY] json/battery: swappable storage battery installed/removed to/from vehicle with no skill, in little time #19950

Conversation

keyspace
Copy link
Contributor

@keyspace keyspace commented Jan 5, 2017

Closes #19407.

Details

Time reduced to 1 minute (arbitrary).

TOOL_NONE flag removed, it's only used for legacy parts that don't provide requirements - veh_type.cpp:362

Both location and NEEDS_BATTERY_MOUNT flag left: they're used in different places:

Former:

Latter - in vehicle.cpp:

  • can_mount() and can_unmount() - respectively lines 1455 and 1534

Tangent: refactor?..

Misc

PR intended as example for #19863. IMO notes should be moved to a "problem overview issue", but they're relevant for PR review, too, so remain.

Tried reworking weld-in storage batteries, too - reverted due to PR bloat. Relevant notes got eaten in the process. :/

@kevingranade kevingranade merged commit faf14c0 into CleverRaven:master Jan 11, 2017
@keyspace keyspace deleted the add-requirements-to-swappable-batteries branch February 6, 2017 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants