space-wizards / space-station-14

A multiplayer game about paranoia and chaos on a space station. Remake of the cult-classic Space Station 13.
https://spacestation14.io
MIT License
2.66k stars 3.34k forks source link

Cyborgs do not lose battery power over time #20696

Closed Kayek14 closed 11 months ago

Kayek14 commented 1 year ago

Description

I was in a round as a cyborg and my power level never went below 100% the entire time.

Additional context I was not using any headlamp for the entire round. Borgs should still have a innate power draw for being active.

Doru991 commented 1 year ago

That's odd, just earlier today I played a round and my battery was similarly seemingly stuck at 100%, but after doing... something(?) it started going down as usual

Doru991 commented 1 year ago

Alright I see a bug happening, I think I can get to the bottom of this tomorrow if nobody else does

Kayek14 commented 1 year ago

Just discovered that i was losing power over time while sitting in a cyborg charger. After re-entering it and charging back to full i never lost power again.

Doru991 commented 1 year ago

After some debugging, the bug is actually weirder than I thought. It's calling a method that should normally be called when the battery is removed whenever you select/unselect a module, but I can't figure out why

Kayek14 commented 11 months ago

Resolved.