Files
vgstation13/code/modules/unit_tests/supermatter_airflow.dm
jjpark-kb fe31cb0664 SMs will now dust you if it runs into you (#28359)
* SMs will now dust you if it runs into you

* including the unit tests

* attempt two at merging the unit tests

* every gosh dang time, indentation fix
2020-12-18 18:17:40 -06:00

12 lines
394 B
Plaintext

/datum/unit_test/supermatter/start()
/datum/unit_test/supermatter/airflow_hit/start()
var/turf/pos = locate(101, 100, 1) // Nice place with a good atmosphere
var/mob/living/carbon/human/human = new(pos)
var/obj/machinery/power/supermatter/shard/shard = new(pos)
shard.airflow_hit(human)
assert_eq(human.stat, DEAD)
human = new(pos)
human.airflow_hit(shard)
assert_eq(human.stat, DEAD)