Files
vgstation13/code/modules/unit_tests/autolathe.dm
kane-f aa65fe1f15 Allows protolathes to recycle materials (#32926)
* Allows protolathes to recycle materials

* Flips these

* New unit test, more accurate

* Now maybe

* This too

* Thing itself

* Just in case

* Indents

* Proper inheritance

Co-authored-by: kanef <kanef9x@protonmail.com>
2022-07-21 00:42:35 -05:00

16 lines
758 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/machinery/r_n_d/fabricator/protolathe/protolathe = new(centre)
var/obj/item/weapon/pickaxe/diamond/test_object = new(centre)
assert_eq(autolathe.attackby(test_object, test_subject), 1)
assert_eq(protolathe.attackby(test_object, test_subject), 0)
test_object = new(centre)
assert_eq(ammolathe.attackby(test_object, test_subject), 0)