Inserted tongues and HUD implants no longer exist outside the body. (#71737)

## About The Pull Request

Fixes an odd bug reported in #71699. Due to a minor error, tongues and
HUD implants, when inserted with organ manipulation, would _also_ drop
on the floor. This was not duplication, as originally suggested, but was
in fact the actual organ inserted. This could lead to _extremely_ odd
behavior, where you could do things like steal someone's tongue and eat
it later to remotely remove it from them. This no longer happens.
## Why It's Good For The Game

Organs should not exist outside of the body once they've been inserted.
Mind you, it could be _interesting_ if there was an intentional way to
do something like this (holding someone's organs hostage or something of
the sort), but as a bug it's both obtrusive and confusing.
## Changelog
🆑
fix: Fixed a bug that made certain inserted organs drop on the floor.
/🆑
This commit is contained in:
lizardqueenlexi
2022-12-06 18:10:13 +01:00
committed by GitHub
parent bcb5e8403b
commit fc576c8656
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -16,7 +16,7 @@
var/HUD_trait = null
/obj/item/organ/internal/cyberimp/eyes/hud/Insert(mob/living/carbon/eye_owner, special = 0, drop_if_replaced = FALSE)
..()
. = ..()
if(HUD_type)
var/datum/atom_hud/hud = GLOB.huds[HUD_type]
hud.show_to(eye_owner)
@@ -29,7 +29,7 @@
hud.hide_from(eye_owner)
if(HUD_trait)
REMOVE_TRAIT(eye_owner, HUD_trait, ORGAN_TRAIT)
..()
return ..()
/obj/item/organ/internal/cyberimp/eyes/hud/medical
name = "Medical HUD implant"
+1 -1
View File
@@ -51,7 +51,7 @@
return speech_args[SPEECH_MESSAGE]
/obj/item/organ/internal/tongue/Insert(mob/living/carbon/tongue_owner, special = FALSE, drop_if_replaced = TRUE)
..()
. = ..()
ADD_TRAIT(tongue_owner, TRAIT_SPEAKS_CLEARLY, SPEAKING_FROM_TONGUE)
if (modifies_speech)
RegisterSignal(tongue_owner, COMSIG_MOB_SAY, PROC_REF(handle_speech))