Blob tweaks.

The blob no longer holds the entire obj process hostage while it sleeps.
The blob now respects its own growth limit. Fixes #11627.
Blobs still grow in an X-shape but this should now be much less distinct.
This commit is contained in:
PsiOmegaDelta
2015-12-09 12:38:17 +01:00
parent 65b3ff0bea
commit 5ffa49d994

View File

@@ -120,7 +120,8 @@
if(prob(health))
expand(T)
return
B.pulse(forceLeft - 1, dirs)
if(forceLeft)
B.pulse(forceLeft - 1, dirs)
/obj/effect/blob/bullet_act(var/obj/item/projectile/Proj)
if(!Proj)
@@ -158,6 +159,7 @@
fire_resist = 2
expandType = /obj/effect/blob/shield
var/blob_may_process = 1
/obj/effect/blob/core/update_icon()
return
@@ -171,10 +173,16 @@
return ..()
/obj/effect/blob/core/process()
set waitfor = 0
if(!blob_may_process)
return
blob_may_process = 0
sleep(0)
pulse(20, list(NORTH, EAST))
pulse(20, list(NORTH, WEST))
pulse(20, list(SOUTH, EAST))
pulse(20, list(SOUTH, WEST))
blob_may_process = 1
/obj/effect/blob/shield
name = "strong blob"