Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

puts a mutex on protean blob transforms #5989

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions code/modules/species/protean/protean_blob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@
/mob/living/carbon/human/proc/nano_intoblob()
if(loc == /obj/item/hardsuit/protean)
return
if(transforming)
return
transforming = TRUE
handle_grasp() //It's possible to blob out before some key parts of the life loop. This results in things getting dropped at null. TODO: Fix the code so this can be done better.
remove_micros(src, src) //Living things don't fare well in roblobs.

Expand Down Expand Up @@ -362,6 +365,8 @@
blob.can_be_drop_prey = P.can_be_drop_prey
blob.can_be_drop_pred = P.can_be_drop_pred

transforming = FALSE

//Return our blob in case someone wants it
return blob

Expand Down Expand Up @@ -432,6 +437,9 @@
return
if(istype(blob.loc, /obj/item/hardsuit/protean))
return
if(transforming)
return
transforming = TRUE

buckled?.unbuckle_mob(src, BUCKLE_OP_FORCE)
unbuckle_all_mobs(BUCKLE_OP_FORCE)
Expand Down Expand Up @@ -495,6 +503,7 @@
qdel(blob)

//Return ourselves in case someone wants it
transforming = FALSE
return src

/mob/living/simple_mob/protean_blob/say_understands()
Expand Down