[MIRROR] Machines now store their components in their contents. (#966)

* Machines now store their components in their contents. (#52970)

Machine parts are now located in the machine instead of nullspace.

* Machines now store their components in their contents.

Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
SkyratBot
2020-09-24 20:33:40 +02:00
committed by GitHub
parent 7c4299cdb9
commit ef28f115cc
25 changed files with 213 additions and 119 deletions
@@ -92,9 +92,15 @@
return
return ..()
/obj/machinery/skill_station/dropContents(list/subset)
/obj/machinery/skill_station/drop_contents()
. = ..()
inserted_skillchip = null
/obj/machinery/skill_station/drop_stored_items(list/subset = null)
// Don't drop the skillchip, it's directly inserted into the machine.
// drop_contents() will drop everything including the skillchip.
subset = contents - inserted_skillchip
return ..() //This is kinda annoying
return ..()
/obj/machinery/skill_station/proc/toggle_open(mob/user)
state_open ? close_machine() : open_machine()