mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
fixes heaters/freezers and cryo tubes
This commit is contained in:
@@ -57,11 +57,14 @@
|
||||
icon_state = "freezer"
|
||||
return
|
||||
|
||||
/obj/machinery/atmospherics/components/unary/cold_sink/freezer/attack_ai(mob/user) return interact(user)
|
||||
/obj/machinery/atmospherics/components/unary/cold_sink/freezer/attack_ai(mob/user)
|
||||
return interact(user)
|
||||
|
||||
/obj/machinery/atmospherics/components/unary/cold_sink/freezer/attack_paw(mob/user) return interact(user)
|
||||
/obj/machinery/atmospherics/components/unary/cold_sink/freezer/attack_paw(mob/user)
|
||||
return interact(user)
|
||||
|
||||
/obj/machinery/atmospherics/components/unary/cold_sink/freezer/attack_paw(mob/user) return interact(user)
|
||||
/obj/machinery/atmospherics/components/unary/cold_sink/freezer/attack_hand(mob/user)
|
||||
return interact(user)
|
||||
|
||||
/obj/machinery/atmospherics/components/unary/cold_sink/freezer/interact(mob/user)
|
||||
if(stat & (NOPOWER|BROKEN))
|
||||
@@ -181,11 +184,14 @@
|
||||
icon_state = "heater"
|
||||
return
|
||||
|
||||
/obj/machinery/atmospherics/components/unary/heat_reservoir/heater/attack_ai(mob/user) return src.attack_hand(user)
|
||||
/obj/machinery/atmospherics/components/unary/heat_reservoir/heater/attack_ai(mob/user)
|
||||
return src.attack_hand(user)
|
||||
|
||||
/obj/machinery/atmospherics/components/unary/heat_reservoir/heater/attack_paw(mob/user) return src.attack_hand(user)
|
||||
/obj/machinery/atmospherics/components/unary/heat_reservoir/heater/attack_paw(mob/user)
|
||||
return src.attack_hand(user)
|
||||
|
||||
/obj/machinery/atmospherics/components/unary/heat_reservoir/heater/attack_paw(mob/user) return interact(user)
|
||||
/obj/machinery/atmospherics/components/unary/heat_reservoir/heater/attack_hand(mob/user)
|
||||
return interact(user)
|
||||
|
||||
/obj/machinery/atmospherics/components/unary/heat_reservoir/heater/interact(mob/user)
|
||||
var/datum/gas_mixture/air_contents = airs[AIR1]
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
*
|
||||
* @return nothing
|
||||
*/
|
||||
/obj/machinery/atmospherics/components/unary/cry_cell/ui_interact(mob/user, ui_key = "main", datum/nanoui/ui = null)
|
||||
/obj/machinery/atmospherics/components/unary/cryo_cell/ui_interact(mob/user, ui_key = "main", datum/nanoui/ui = null)
|
||||
if(user == occupant || user.stat || panel_open)
|
||||
return
|
||||
|
||||
|
||||
@@ -28,20 +28,20 @@ Housekeeping and pipe network stuff below
|
||||
..(node_connects)
|
||||
|
||||
/obj/machinery/atmospherics/components/unary/default_change_direction_wrench(mob/user, obj/item/weapon/wrench/W)
|
||||
if(..())
|
||||
return 0
|
||||
initialize_directions = dir
|
||||
if(!..())
|
||||
return
|
||||
SetInitDirections()
|
||||
var/obj/machinery/atmospherics/node = nodes[NODE1]
|
||||
if(node)
|
||||
node.disconnect(src)
|
||||
node = null
|
||||
nullifyPipenet(parents[PARENT1])
|
||||
atmosinit()
|
||||
node = nodes[NODE1]
|
||||
initialize()
|
||||
if(node)
|
||||
node.atmosinit()
|
||||
node.initialize()
|
||||
node.addMember(src)
|
||||
build_network()
|
||||
. = 1
|
||||
nodes[NODE1] = node
|
||||
. = 1
|
||||
Reference in New Issue
Block a user