RE-SS3D / SS3D

Space Station 3D, another remake of SS13, but with an extra D.
https://ss3d.space/
249 stars 138 forks source link

Make vendor machines and Jukebox work with electricity #1447

Closed David-Goru closed 1 week ago

David-Goru commented 4 weeks ago

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