Removed Chem Drain Circuit - We don't have Chempiles
This commit is contained in:
@@ -695,74 +695,6 @@
|
||||
activate_pin(2)
|
||||
busy = FALSE
|
||||
|
||||
|
||||
// - Drain circuit - //
|
||||
/obj/item/integrated_circuit/reagent/drain
|
||||
name = "chemical drain circuit"
|
||||
desc = "This circuit either eliminates reagents by creating a puddle or can suck up chemicals on tiles."
|
||||
icon_state = "injector"
|
||||
extended_desc = "Set mode to FALSE to eliminate reagents and TRUE to drain."
|
||||
|
||||
volume = 20
|
||||
|
||||
complexity = 10
|
||||
inputs = list(
|
||||
"mode" = IC_PINTYPE_BOOLEAN
|
||||
)
|
||||
outputs = list(
|
||||
"volume" = IC_PINTYPE_NUMBER,
|
||||
"self reference" = IC_PINTYPE_SELFREF
|
||||
)
|
||||
activators = list(
|
||||
"drain" = IC_PINTYPE_PULSE_IN,
|
||||
"on drained" = IC_PINTYPE_PULSE_OUT,
|
||||
"on fail" = IC_PINTYPE_PULSE_OUT
|
||||
)
|
||||
spawn_flags = IC_SPAWN_DEFAULT|IC_SPAWN_RESEARCH
|
||||
power_draw_per_use = 15
|
||||
|
||||
|
||||
/obj/item/integrated_circuit/reagent/drain/Initialize()
|
||||
.=..()
|
||||
set_pin_data(IC_OUTPUT,2, src)
|
||||
|
||||
|
||||
/obj/item/integrated_circuit/reagent/drain/do_work()
|
||||
if(get_pin_data(IC_OUTPUT, 1, reagents.total_volume))
|
||||
if(!reagents || !reagents.total_volume)
|
||||
push_data()
|
||||
activate_pin(3)
|
||||
return
|
||||
// Put the reagents on the floortile the assembly is on
|
||||
reagents.reaction(get_turf(src))
|
||||
reagents.clear_reagents()
|
||||
push_data()
|
||||
activate_pin(2)
|
||||
return
|
||||
|
||||
else
|
||||
if(reagents)
|
||||
if(reagents.total_volume >= volume)
|
||||
push_data()
|
||||
activate_pin(3)
|
||||
return
|
||||
// Favorably, drain it from a chemicals pile, else, try something different
|
||||
var/obj/effect/decal/cleanable/drainedchems = locate(/obj/effect/decal/cleanable) in get_turf(src)
|
||||
if(!drainedchems || !drainedchems.reagents || drainedchems.reagents.total_volume == 0)
|
||||
push_data()
|
||||
activate_pin(3)
|
||||
return
|
||||
drainedchems.reagents.trans_to(src, 30, 0.5)
|
||||
if(drainedchems.reagents.total_volume == 0)
|
||||
qdel(drainedchems)
|
||||
push_data()
|
||||
activate_pin(2)
|
||||
|
||||
|
||||
/obj/item/integrated_circuit/reagent/drain/on_reagent_change(changetype)
|
||||
push_vol()
|
||||
|
||||
|
||||
// - Beaker Connector - //
|
||||
/obj/item/integrated_circuit/input/beaker_connector
|
||||
category_text = "Reagent"
|
||||
|
||||
Reference in New Issue
Block a user