Make vendor machines and Jukebox work with electricity #1447
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR aims to add electricity consumption to the vendor machines and the jukebox
The four vendor machines (HotDrinks, RobustSoftdrinks, SecTech, YouTool) and the jukebox now consume electricity, both while idle and while in use
Electricity consumption amounts per tick (when connected to the grid) are placeholders. For reference, in this PR they're originally set to:
Jukebox: 0.5 while off/idle, 5 while on/playing music
Vendors: 0.5 while idle, 10 once when using the machine (only during one tick)
Disclaimer:
This was done quite some time ago, as I was waiting for a previous pull request to be merged before creating a new one. Didn't want to delete these changes, but can't dedicate as much time to this PR as I did with the previous PR, so no images/videos. As a side note, I was "davidgomez" on Discord, but had to leave from the Discord channel as that account has become a work-only account. If anyone needs to contact me through discord, I've joined the server with my secondary account called "Nano" ("nanogoru")
PR checklist
Testing
Networking checklist
Related issues/PRs
Closes #1438