Updates some cloner error messages to be clearer (#23029)

* Cloner error. Guess I will just morgue them then.

* Swapped around some logic regarding husking
This commit is contained in:
SchrodingersWolf
2023-10-29 19:52:18 +00:00
committed by GitHub
parent c59c62504a
commit 7f3416e028
+16 -8
View File
@@ -322,19 +322,23 @@
return
if(isnull(subject) || (!(ishuman(subject))) || (!subject.dna))
if(isalien(subject))
set_scan_temp("Xenomorphs are not scannable.", "bad")
set_scan_temp("Safety interlocks engaged. Nanotrasen Directive 7b forbids the cloning of biohazardous alien species.", "bad")
SStgui.update_uis(src)
return
// can add more conditions for specific non-human messages here
else
set_scan_temp("Subject species is not scannable.", "bad")
set_scan_temp("Subject species is not clonable.", "bad")
SStgui.update_uis(src)
return
if(subject.get_int_organ(/obj/item/organ/internal/brain))
var/obj/item/organ/internal/brain/Brn = subject.get_int_organ(/obj/item/organ/internal/brain)
if(istype(Brn))
if(Brn.dna.species.name == "Machine")
set_scan_temp("No organic tissue detected within subject. Alternative revival methods recommended.", "bad")
SStgui.update_uis(src)
return
if(NO_CLONESCAN in Brn.dna.species.species_traits)
set_scan_temp("[Brn.dna.species.name_plural] are not scannable.", "bad")
set_scan_temp("[Brn.dna.species.name_plural] are not clonable. Alternative revival methods recommended.", "bad")
SStgui.update_uis(src)
return
if(!subject.get_int_organ(/obj/item/organ/internal/brain))
@@ -342,17 +346,21 @@
SStgui.update_uis(src)
return
if(subject.suiciding)
set_scan_temp("Subject has committed suicide and is not scannable.", "bad")
set_scan_temp("Subject has committed suicide and is not clonable.", "bad")
SStgui.update_uis(src)
return
if(HAS_TRAIT(subject, TRAIT_BADDNA) && src.scanner.scan_level < 2)
set_scan_temp("Insufficient level of biofluids detected within subject. Scanner upgrades may be required to improve scan capabilities.", "bad")
SStgui.update_uis(src)
return
if(HAS_TRAIT(subject, TRAIT_HUSK) && src.scanner.scan_level < 2)
set_scan_temp("Subject is husked. Treat condition or upgrade scanning module to proceed with scan.", "bad")
SStgui.update_uis(src)
return
if((!subject.ckey) || (!subject.client))
set_scan_temp("Subject's brain is not responding. Further attempts after a short delay may succeed.", "bad")
SStgui.update_uis(src)
return
if(HAS_TRAIT(subject, TRAIT_BADDNA) && src.scanner.scan_level < 2)
set_scan_temp("Subject has incompatible genetic mutations.", "bad")
SStgui.update_uis(src)
return
if(!isnull(find_record(subject.ckey)))
set_scan_temp("Subject already in database.")
SStgui.update_uis(src)