Prevents surgery on cult ghosts (#17514)

* prevents surgery on cult ghosts

* no choppy limb please
This commit is contained in:
S34N
2022-03-24 19:21:49 +00:00
committed by GitHub
parent 671b49dabd
commit 3cd8de4501
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -903,6 +903,8 @@ structure_check() searches for nearby cultist structures required for the invoca
new_human.alpha = 150 //Makes them translucent
new_human.equipOutfit(/datum/outfit/ghost_cultist) //give them armor
new_human.apply_status_effect(STATUS_EFFECT_SUMMONEDGHOST) //ghosts can't summon more ghosts, also lets you see actual ghosts
for(var/obj/item/organ/external/current_organ in new_human.bodyparts)
current_organ.limb_flags |= CANNOT_DISMEMBER //you can't chop of the limbs of a ghost, silly
ghosts++
playsound(src, 'sound/misc/exit_blood.ogg', 50, TRUE)
user.visible_message("<span class='warning'>A cloud of red mist forms above [src], and from within steps... a [new_human.gender == FEMALE ? "wo" : ""]man.</span>",
+4
View File
@@ -14,6 +14,10 @@
if(M == user)
return // no self surgery
if(M.has_status_effect(STATUS_EFFECT_SUMMONEDGHOST))
to_chat(user, "<span class='notice'>You realise that a ghost probably doesn't have any useful organs.</span>")
return //no cult ghost surgery please
if(istype(M, /mob/living/carbon/human))
H = M
affecting = H.get_organ(check_zone(selected_zone))