mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-10 17:04:36 +00:00
## About The Pull Request The next round of small changes to how bitrunning works - mostly from feedback, bug reports etc. - The loot crate delivery spot is now a buildable machine (the byteforge), making it replaceable in the event of a disaster - Same for netpods and quantum consoles. These boards are now researchable and buildable. - New icons for the byteforge and the health monitor - Some bug fixes around despawning avatars - Reimplements one of the bitrunning unit tests <details> <summary>Pictures ⬇️</summary> Host monitor  Byteforge  Spawning a crate  </details> ## Why It's Good For The Game Bitrunning bug fixes and personal requests Fixes #78571 Fixes an issue reported in discord - players stuck as gondola spawn ## Changelog 🆑 fix: Added extra checks to bitrunning domain cleanup so avatars are deleted properly. add: Quantum servers now look for a new machine called a byteforge to spawn loot on- no longer on an invisible landmark. This should make the rooms rebuildable after disasters. add: *Most* bitrunning machinery is now researchable and buildable via circuits in the engineering protolathe. /🆑
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")
|