Blob Maintenance: Stairs are Hard (#9146)

* Fix: Blobs respect gravity if not otherwise prevented.
Tweak: Blobs do not directly interact with stairs
Tweak: Blobs, when expanding against a stair's middle structure, can grow up Z-levels if the turf allows.
Tweak: Blobs, if controlled by a player, may grow upward or downward, if the turfs allow.
Fix: Blob Overmind is no longer affected by gravity.

* Fringe case deleted blobs are null-loc'd for GC so they are not stuck in-map.
Railing checks properly function.
This commit is contained in:
Mechoid
2023-07-23 16:04:37 -07:00
committed by GitHub
parent 9738fe87f4
commit 0f3172ad86
6 changed files with 111 additions and 41 deletions

View File

@@ -144,7 +144,7 @@ var/global/list/blob_cores = list()
// overmind.update_health_hud()
pulse_area(overmind, 15, BLOB_CORE_PULSE_RANGE, BLOB_CORE_EXPAND_RANGE)
for(var/obj/structure/blob/normal/B in range(1, src))
if(prob(5))
if(B.overmind == overmind && prob(5))
B.change_to(/obj/structure/blob/shield/core, overmind)
overmind.blob_type.on_core_process(src)