mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
maybe this-a-work?
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/datum/unit_test/origin_tech_test/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]")
|
||||
Reference in New Issue
Block a user