mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Bitrunning hotfix 3 (#78818)
## 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. /🆑
This commit is contained in:
@@ -107,14 +107,14 @@
|
||||
|
||||
return shuffle(mutation_candidate_refs)
|
||||
|
||||
/// Locates any turfs with crate out landmarks
|
||||
/obj/machinery/quantum_server/proc/locate_receive_turfs()
|
||||
for(var/obj/effect/landmark/bitrunning/station_reward_spawn/spawner in GLOB.landmarks_list)
|
||||
if(IN_GIVEN_RANGE(src, spawner, MAX_DISTANCE))
|
||||
receive_turfs += get_turf(spawner)
|
||||
qdel(spawner)
|
||||
/// Locates any turfs with forges on them
|
||||
/obj/machinery/quantum_server/proc/get_nearby_forges()
|
||||
var/list/obj/machinery/byteforge/nearby_forges = list()
|
||||
|
||||
return length(receive_turfs) > 0
|
||||
for(var/obj/machinery/byteforge/forge in oview(MAX_DISTANCE, src))
|
||||
nearby_forges += forge
|
||||
|
||||
return nearby_forges
|
||||
|
||||
/// Finds any mobs with minds in the zones and gives them the bad news
|
||||
/obj/machinery/quantum_server/proc/notify_spawned_threats()
|
||||
@@ -132,10 +132,10 @@
|
||||
to_chat(baddie, span_userdanger("You have been flagged for deletion! Thank you for your service."))
|
||||
|
||||
/// Do some magic teleport sparks
|
||||
/obj/machinery/quantum_server/proc/spark_at_location(obj/crate)
|
||||
playsound(crate, 'sound/magic/blink.ogg', 50, TRUE)
|
||||
/obj/machinery/quantum_server/proc/spark_at_location(obj/cache)
|
||||
playsound(cache, 'sound/magic/blink.ogg', 50, TRUE)
|
||||
var/datum/effect_system/spark_spread/quantum/sparks = new()
|
||||
sparks.set_up(5, 1, get_turf(crate))
|
||||
sparks.set_up(5, 1, get_turf(cache))
|
||||
sparks.start()
|
||||
|
||||
#undef REDACTED
|
||||
|
||||
Reference in New Issue
Block a user