mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Takes a pass at updating ATMOSPHERICS to take advantage of the new powernet changes. Also removes var/on definitions from many atmos machines. Machines generally shouldn't be doing "on" things if they aren't using power, and most players don't expect a machine to use power if it isn't "on," so I guess this is fair game. Also, further refactoring.
19 lines
531 B
Plaintext
19 lines
531 B
Plaintext
/obj/machinery/atmospherics/binary/pump/high_power
|
|
icon = 'icons/atmos/volume_pump.dmi'
|
|
icon_state = "map_off"
|
|
level = 1
|
|
|
|
name = "high power gas pump"
|
|
desc = "A pump. Has double the power rating of the standard gas pump."
|
|
|
|
power_rating = 15000 //15000 W ~ 20 HP
|
|
|
|
/obj/machinery/atmospherics/binary/pump/high_power/on
|
|
use_power = 1
|
|
icon_state = "map_on"
|
|
|
|
/obj/machinery/atmospherics/binary/pump/high_power/update_icon()
|
|
if(!powered())
|
|
icon_state = "off"
|
|
else
|
|
icon_state = "[use_power ? "on" : "off"]" |