[MIRROR] Convert species, organ_data, and rlimb_data to TG (#12570)

This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-03-21 14:19:04 +01:00
committed by GitHub
parent 30f5891bfa
commit 80fcaab9dc
32 changed files with 343 additions and 193 deletions
+2 -1
View File
@@ -332,7 +332,8 @@
if(owner)
handle_organ_mod_special()
if(!ignore_prosthetic_prefs && owner && owner.client && owner.client.prefs && owner.client.prefs.read_preference(/datum/preference/name/real_name) == owner.real_name)
var/status = owner.client.prefs.organ_data[organ_tag]
var/list/organ_data = owner.client.prefs.read_preference(/datum/preference/organ_data)
var/status = organ_data?[organ_tag]
if(status == FBP_ASSISTED)
mechassist()
else if(status == FBP_MECHANICAL)
+4 -2
View File
@@ -667,11 +667,13 @@ This function completely restores a damaged organ to perfect condition.
if(owner && !ignore_prosthetic_prefs)
if(owner.client && owner.client.prefs && owner.client.prefs.read_preference(/datum/preference/name/real_name) == owner.real_name)
var/status = owner.client.prefs.organ_data[organ_tag]
var/list/organ_data = owner.client.prefs.read_preference(/datum/preference/organ_data)
var/status = organ_data?[organ_tag]
if(status == "amputated")
remove_rejuv()
else if(status == "cyborg")
var/robodata = owner.client.prefs.rlimb_data[organ_tag]
var/list/rlimb_data = owner.client.prefs.read_preference(/datum/preference/rlimb_data)
var/robodata = rlimb_data?[organ_tag]
if(robodata)
robotize(robodata)
else