Bugfix: Adds UI button for blob splitting (#15907)

* A real Blob Ross!

* Adds a check for offspring and if blob has split
This commit is contained in:
DogsParadise
2021-05-02 16:46:12 +02:00
committed by GitHub
parent 3b0e91892c
commit 58d7054e92
3 changed files with 8 additions and 4 deletions
+7 -3
View File
@@ -132,6 +132,8 @@
if(isovermind(usr))
var/mob/camera/blob/B = usr
B.split_consciousness()
if(B.split_used) // Destroys split proc if the split is succesfully used
qdel(src)
/datum/hud/blob_overmind/New(mob/user)
..()
@@ -194,6 +196,8 @@
using.screen_loc = ui_storage2
static_inventory += using
using = new /obj/screen/blob/Split()
using.screen_loc = ui_acti
static_inventory += using
var/mob/camera/blob/B = user
if(!B.is_offspring) // Checks if the blob is an offspring, to not create split button if it is
using = new /obj/screen/blob/Split()
using.screen_loc = ui_acti
static_inventory += using
+1 -1
View File
@@ -117,13 +117,13 @@
if(C && !QDELETED(src))
var/mob/camera/blob/B = new(loc)
B.is_offspring = is_offspring
B.key = C.key
B.blob_core = src
overmind = B
color = overmind.blob_reagent_datum.color
if(B.mind && !B.mind.special_role)
B.mind.make_Overmind()
B.is_offspring = is_offspring
/obj/structure/blob/core/proc/lateblobtimer()
addtimer(CALLBACK(src, .proc/lateblobcheck), 50)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB