mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-21 21:10:30 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user