mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-24 16:41:48 +00:00
* Thermomachine rework * Create gun_hud_component.dm * Update gun_hud_component.dm * Revert "Update gun_hud_component.dm" This reverts commit 50afb747c3a3c6935d5ae121d13475fd0503dd7a. * Revert "Create gun_hud_component.dm" This reverts commit bd5da24bc9bcb62afe074456c7fbb7a5a0ff648f. Co-authored-by: Ghilker <42839747+Ghilker@users.noreply.github.com> Co-authored-by: Gandalf2k15 <jzo123@hotmail.com>
13 lines
667 B
Plaintext
13 lines
667 B
Plaintext
/// Ensures that when disassembling a machine, all the parts are given back
|
|
/datum/unit_test/machine_disassembly/Run()
|
|
var/obj/machinery/freezer = allocate(/obj/machinery/atmospherics/components/binary/thermomachine/freezer)
|
|
|
|
var/turf/freezer_location = freezer.loc
|
|
freezer.deconstruct()
|
|
|
|
// Check that the components are created
|
|
TEST_ASSERT(locate(/obj/item/stock_parts/micro_laser) in freezer_location, "Couldn't find micro-laser when disassembling freezer")
|
|
|
|
// Check that the circuit board itself is created
|
|
TEST_ASSERT(locate(/obj/item/circuitboard/machine/thermomachine) in freezer_location, "Couldn't find the circuit board when disassembling freezer")
|