Fixes Tumors Not Being Able To Be Removed with Surgery (#19700)

The 'infest_with_parasite' proc was setting the 'parent_organ' variable
of new tumors to the src organ reference. Changed to set the
'parent_organ' variable to the 'limb_name' of the src which allows
surgery code to find it.
This commit is contained in:
Evandorf
2024-07-26 05:55:51 -05:00
committed by GitHub
parent 5dd0832b83
commit 74f43d2e7d
2 changed files with 60 additions and 2 deletions
@@ -87,11 +87,11 @@
switch(parasite_type) //such a shitty way to do this but i couldnt get a better alternative to work in a sane amount of time :/
if("malignant tumour")
var/obj/item/organ/internal/parasite/malignant_tumour/P = new()
P.parent_organ = organ_to_infest
P.parent_organ = organ_to_infest.limb_name
P.replaced(H, organ_to_infest)
P.generate_name()
if("benign tumour")
var/obj/item/organ/internal/parasite/benign_tumour/P = new()
P.parent_organ = organ_to_infest
P.parent_organ = organ_to_infest.limb_name
P.replaced(H, organ_to_infest)
P.generate_name()