mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 06:00:23 +01:00
del VBOs with questionable sourcing (#18924)
* del VBOs with questionable sourcing * . * unit test the usages * move * remove these as well * remove from lists * daian.... --------- Co-authored-by: C.L. <killer65311@gmail.com>
This commit is contained in:
@@ -105,6 +105,7 @@
|
||||
#include "map_tests.dm"
|
||||
#include "mapping.dm"
|
||||
#include "material_tests.dm"
|
||||
#include "mob_vbo_test.dm"
|
||||
// #include "nuke_cinematic.dm" // TODO: This is probably fixed later on
|
||||
#include "poster_tests.dm"
|
||||
// #include "preferences.dm" // This unit test is missing some other stuff
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/// Tests that all mobs with assigned bellies use valid datums
|
||||
/datum/unit_test/mobs_use_valid_belly_overlays
|
||||
|
||||
/datum/unit_test/mobs_use_valid_belly_overlays/Run()
|
||||
for(var/mob/living/simple_mob/test_path as anything in typesof(/mob/living/simple_mob))
|
||||
if(!initial(test_path.vore_active))
|
||||
continue
|
||||
var/mob/living/simple_mob/test_mob = new test_path()
|
||||
test_mob.init_vore(TRUE)
|
||||
for(var/obj/belly/mob_belly in test_mob.vore_organs)
|
||||
var/test_fullscreen = mob_belly.belly_fullscreen
|
||||
if(!length(test_fullscreen))
|
||||
continue
|
||||
var/datum/belly_overlays/test_overlay = text2path("/datum/belly_overlays/[lowertext(test_fullscreen)]")
|
||||
if(test_overlay)
|
||||
continue
|
||||
TEST_FAIL("[test_mob] uses a non existing belly_fullscreen [test_fullscreen].")
|
||||
qdel(test_mob)
|
||||
Reference in New Issue
Block a user