Goonstation Forums
[Feature] Reagent heater: use same UI for borgs and humans - Printable Version

+- Goonstation Forums (https://forum.ss13.co)
+-- Forum: Discussion (https://forum.ss13.co/forumdisplay.php?fid=6)
+--- Forum: Patches (https://forum.ss13.co/forumdisplay.php?fid=30)
+---- Forum: Implemented (https://forum.ss13.co/forumdisplay.php?fid=31)
+---- Thread: [Feature] Reagent heater: use same UI for borgs and humans (/showthread.php?tid=6032)



[Feature] Reagent heater: use same UI for borgs and humans - Isilkor - 03-07-2016

Unlike normal scientists, cyborgs attempting to heat a beaker were presented with a special UI, based on input(). This has several drawbacks: users not familiar with playing borg have to figure out how this new UI works, code is duplicated, and unexpected behaviors emerge. In particular, the old code would allow a human and a cyborg to use the heater at the same time, but not two cyborgs, and cyborgs were unable to change the target temperature or cancel heating/cooling without moving away from the heater.

Moving to a unified UI makes it easier for new cyborg players to quickly figure out what is going on, and resolves some edge cases regarding energy consumption. It also prevents humans and cyborgs from heating one beaker each, which seemed like an oversight to me (especially since it only works if the cyborg starts using the heater before the human inserts a beaker); instead, cyborgs will now insert the beaker into the machine like humans do. Unlike normal beakers, only the cyborg can eject its own beaker; on ejection, the beaker will be removed from the heater but not be spawned on the map - it stays in the cyborg's module at all times. The beaker is also automatically ejected when the cyborg moves away from the heater or is deleted, for example as a result of the chest part breaking.

Branch comparepatch