Files
Bubberstation/code/modules/unit_tests/machine_disassembly.dm
LemonInTheDark c63a210eb6 [MDB IGNORE] Removes ballast from thermomachines (#66411)
* Removes all thermal ballast piping from our maps

* Removes co2 recirculation from our maps, no reason to have it if ballast isn't a thing

* Removes all behavior that's linked to ballast

I don't think ballast is something that's useful to keep around, since
it functions to make cooling things harder for what amounts to no real
reason.

We still have space as an infinite source of cold, it's pointless to
gate it.

Anyway, this commit.

I'm removing all uses of two ports, cooling, efficency, work skipping, and
safeties.
This means dropping quite a lot of behavior.

There's no emag effect currently for instance, because it renabled some
previously buggy behavior that was caused by ballast, which I'm nuking.

Also doing away with metal h2, because even though I like the idea, it
has no purpose as of now.

Removing ballast has made a lot of the logic and checks that were done
in process_atmos pointless, so they can go too.
I'm keeping the barebones behavior of how power consumption works,
because I like it.

Efficency is going because it was almost always like 80% without
ballast, and I didn't think it was something worth having.
Cooling as a concept can go interestingly enough, because there's no
difference between heating and cooling, just the temperature we're
targeting.

I think that's about it? I'm also removing failure states, because they
too were linked to ballast

Oh, and I'm removing the redundant icon states and gags entries, since
well, they aren't used anymore. Also removed some from the js file
2022-04-24 21:27:28 -07:00

13 lines
666 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/unary/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")