Merge pull request #6502 from Citadel-Station-13/upstream-merge-37363

[MIRROR] Makes radiation collectors buildable
This commit is contained in:
LetterJay
2018-04-27 00:10:52 -05:00
committed by GitHub
4 changed files with 33 additions and 1 deletions
@@ -15,6 +15,7 @@
// use_power = NO_POWER_USE
max_integrity = 350
integrity_failure = 80
circuit = /obj/item/circuitboard/machine/rad_collector
var/obj/item/tank/internals/plasma/loaded_tank = null
var/last_power = 0
var/active = 0
@@ -112,6 +113,9 @@
if(loaded_tank)
to_chat(user, "<span class='warning'>There's already a plasma tank loaded!</span>")
return TRUE
if(panel_open)
to_chat(user, "<span class='warning'>Close the maintenance panel first!</span>")
return TRUE
if(!user.transferItemToLoc(W, src))
return
loaded_tank = W
@@ -133,6 +137,13 @@
default_unfasten_wrench(user, I, 0)
return TRUE
/obj/machinery/power/rad_collector/screwdriver_act(mob/living/user, obj/item/I)
if(loaded_tank)
to_chat(user, "<span class='warning'>Remove the plasma tank first!</span>")
else
default_deconstruction_screwdriver(user, icon_state, icon_state, I)
return TRUE
/obj/machinery/power/rad_collector/crowbar_act(mob/living/user, obj/item/I)
if(loaded_tank)
if(locked)
@@ -140,6 +151,8 @@
return TRUE
eject()
return TRUE
if(default_deconstruction_crowbar(I))
return TRUE
to_chat(user, "<span class='warning'>There isn't a tank loaded!</span>")
return TRUE