mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-20 07:02:05 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user