diff --git a/code/game/objects/items/tools/multitool.dm b/code/game/objects/items/tools/multitool.dm index b8151e40b99..f0d1a98fabd 100644 --- a/code/game/objects/items/tools/multitool.dm +++ b/code/game/objects/items/tools/multitool.dm @@ -105,7 +105,7 @@ icon_state = "multitool_syndi" belt_icon = "multitool_syndi" toolspeed = 0.95 // dangerously fast... not like multitools use speed anyways - origin_tech = "magnets=1;engineering=2,syndicate=1" + origin_tech = "magnets=1;engineering=2;syndicate=1" /obj/item/multitool/ai_detect/admin desc = "Used for pulsing wires to test which to cut. Not recommended by doctors. Has a strange tag that says 'Grief in Safety'" //What else should I say for a meme item? diff --git a/code/modules/unit_tests/_unit_tests.dm b/code/modules/unit_tests/_unit_tests.dm index 5147bf47b6e..dd0bbd0ed9c 100644 --- a/code/modules/unit_tests/_unit_tests.dm +++ b/code/modules/unit_tests/_unit_tests.dm @@ -11,6 +11,7 @@ #include "log_format.dm" #include "map_templates.dm" #include "map_tests.dm" +#include "origin_tech.dm" #include "purchase_reference_test.dm" #include "reagent_id_typos.dm" #include "rustg_version.dm" diff --git a/code/modules/unit_tests/origin_tech.dm b/code/modules/unit_tests/origin_tech.dm new file mode 100644 index 00000000000..177c89b36b9 --- /dev/null +++ b/code/modules/unit_tests/origin_tech.dm @@ -0,0 +1,12 @@ +// Unit test to ensure people have appropriately set up their origin_techs in items, ensuring they give the appropriate resources in RnD breakdown +/datum/unit_test/origin_tech/Run() + var/regex/nums = regex("^\[0-9]+") + for(var/tpath in subtypesof(/obj/item)) + var/obj/item/I = tpath + var/tech_str = initial(I.origin_tech) + + var/list/tech_list = params2list(tech_str) + + for(var/k in tech_list) + if(length(nums.Replace(tech_list[k], "")) > 0) + Fail("Invalid origin tech for [tpath]: [tech_str]")