Merge pull request #32753 from optimumtact/wegetityouvape

Smoke circuit only notifies admins on first use and reagent change
This commit is contained in:
Jordie
2017-11-16 19:10:53 +11:00
committed by CitadelStationBot
parent 286442cf4a
commit eaa1d752a8
@@ -26,8 +26,11 @@
volume = 100
power_draw_per_use = 20
var/smoke_radius = 5
var/notified = FALSE
/obj/item/integrated_circuit/reagent/smoke/on_reagent_change()
//reset warning
notified = FALSE
set_pin_data(IC_OUTPUT, 1, reagents.total_volume)
push_data()
@@ -43,12 +46,17 @@
S.attach(location)
playsound(location, 'sound/effects/smoke.ogg', 50, 1, -3)
if(S)
S.set_up(reagents, smoke_radius, location, 0)
S.set_up(reagents, smoke_radius, location, notified)
if(!notified)
//we have now notified
notified = TRUE
S.start()
if(reagents)
reagents.clear_reagents()
activate_pin(2)
/obj/item/integrated_circuit/reagent/injector
name = "integrated hypo-injector"
desc = "This scary looking thing is able to pump liquids into whatever it's pointed at."