vgstation-coders / vgstation13

Butts
GNU Affero General Public License v3.0
264 stars 543 forks source link

Battery Sprite Updating #36852

Open D3athrow-Issues opened 1 month ago

D3athrow-Issues commented 1 month ago

(WEB REPORT BY: riekland REMOTE: 172.93.101.77:7777) When EMP'd, batteries laying around not inside things have their charges depleted as expected, but the overlay light (green, orange, red, off) doesn't change, resulting in cruel mirages for people that don't shift+click everything they touch like they're being gangstalked.

jwhitak commented 1 month ago

The cell doesn't call updateicon() when the amount of charge on the cell changes. In fact, it only ever calls it when initially created. Updateicon's only called by objects outside of the cell. This is an easy fix - add an updateicon() call to the emp_act proc.