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:
Kashargul
2025-12-21 00:52:58 +01:00
committed by GitHub
co-authored by C.L.
parent e9ea809529
commit 28fbc07539
43 changed files with 40 additions and 49 deletions
+1
View File
@@ -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
+18
View File
@@ -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)