mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-20 06:32:56 +00:00
* Bitrunning hotfix 3 * Update netpod.dm * Fixes modular paths * Fixes modular paths * Moves the food a bit --------- Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com> Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>
16 lines
695 B
Plaintext
16 lines
695 B
Plaintext
/// Ensures settings on vdoms are correct
|
|
/datum/unit_test/bitrunner_vdom_settings
|
|
|
|
/datum/unit_test/bitrunner_vdom_settings/Run()
|
|
var/obj/structure/closet/crate/secure/bitrunning/decrypted/cache = allocate(/obj/structure/closet/crate/secure/bitrunning/decrypted)
|
|
|
|
for(var/path in subtypesof(/datum/lazy_template/virtual_domain))
|
|
var/datum/lazy_template/virtual_domain/vdom = new path
|
|
TEST_ASSERT_NOTNULL(vdom.key, "[path] should have a key")
|
|
TEST_ASSERT_NOTNULL(vdom.map_name, "[path] should have a map name")
|
|
|
|
if(!length(vdom.extra_loot))
|
|
continue
|
|
|
|
TEST_ASSERT_EQUAL(cache.spawn_loot(vdom.extra_loot), TRUE, "[path] didn't spawn loot. Extra loot should be an associative list")
|