Assisted organ fix (#16315)

* Assisted Organ Fix

Fixes assisted organs being turned into mechanical variants. i.e. Currently choosing an assisted heart gives you an assisted circulatory pump, not a pacemaker.

* This should probably use the define.

* copy-paste error
This commit is contained in:
Sparky
2023-05-12 18:21:29 +00:00
committed by GitHub
parent 7804b9c81d
commit af68a3ae89
2 changed files with 15 additions and 5 deletions
+9 -5
View File
@@ -360,12 +360,16 @@
name = robotic_name
/obj/item/organ/proc/mechassist() //Used to add things like pacemakers, etc
robotize()
status = ORGAN_ASSISTED
robotic = 1
if(!robotize_type)
name = initial(name)
icon_state = initial(icon_state)
robotic = ROBOTIC_ASSISTED
switch(organ_tag)
if(BP_HEART)
name = "pacemaker-assisted [initial(name)]"
if(BP_EYES)
name = "retinal overlayed [initial(name)]"
else
name = "mechanically assisted [initial(name)]"
icon_state = initial(icon_state)
/obj/item/organ/emp_act(var/severity)
if(!(status & ORGAN_ASSISTED))