Files
vgstation13/code/modules/unit_tests/autolathe.dm
adrian b4a9c52a85 Some small fixes (#27448)
* Who the fuck overdoses a goliath with honk serum?

* Fixes two bad food spawners

* More descriptive test name

* I lost track of this runtime.

* whatever

* Fixes runtime in spreading_growth.dm,20: bad index. Null is a valid value here
2020-08-09 14:31:38 +02:00

12 lines
625 B
Plaintext

/datum/unit_test/autolathe/start()
return
/datum/unit_test/autolathe/test_recycling/start()
var/turf/centre = locate(100, 100, 1) // Nice place with a good atmosphere and shit
var/mob/living/carbon/human/test_subject = new(centre)
var/obj/machinery/r_n_d/fabricator/mechanic_fab/autolathe/autolathe = new(centre)
var/obj/machinery/r_n_d/fabricator/mechanic_fab/autolathe/ammolathe/ammolathe = new(centre)
var/obj/item/weapon/light/tube/large/test_object = new(centre)
assert_eq(autolathe.attackby(test_object, test_subject), 1)
assert_eq(ammolathe.attackby(test_object, test_subject), 0)