Files
S.P.L.U.R.T-Station-13/code/modules/unit_tests/anchored_mobs.dm
2020-09-05 11:13:14 +08:00

10 lines
328 B
Plaintext

/datum/unit_test/anchored_mobs/Run()
var/list/L = list()
for(var/i in typesof(/mob))
var/mob/M = i
if(initial(M.anchored))
L += "[i]"
if(!L.len)
return //passed!
Fail("The following mobs are defined as anchored. This is incompatible with the new move force/resist system and needs to be revised.: [L.Join(" ")]")