General housekeeping

Cleans up code in cloning.dm and exp_cloner.dm, adds a comment or two for clarity.
This commit is contained in:
Haha26315
2021-08-23 06:40:08 -04:00
parent a63fe99128
commit 395b73b56c
2 changed files with 10 additions and 12 deletions
+9 -8
View File
@@ -134,9 +134,12 @@
if(mess || attempting)
return FALSE
//only check for clone's mind if it's not experimental cloning
if(!experimental)
//runtime error protection
if(mindref)
clonemind = locate(mindref) in SSticker.minds
//only exit out of cloning with no mind if cloning is not experimental.
if(!experimental)
if(!istype(clonemind)) //not a mind
return FALSE
if(!QDELETED(clonemind.current))
@@ -216,12 +219,10 @@
attempting = FALSE
//sizecode stuff, check size of scanned individual to then pass in later. someone should turn size into a dna trait tbh
if(mindref)
clonemind = locate(mindref) in SSticker.minds
if(istype(clonemind))
var/mob/living/current = clonemind.current //gets body of current mind
if(!isnull(current))
size = current.size_multiplier * 100
if(istype(clonemind))
var/mob/living/current = clonemind.current //gets body of current mind
if(!isnull(current))
size = current.size_multiplier * 100
return TRUE
+1 -4
View File
@@ -295,11 +295,8 @@
playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, 0)
else
//disabled vars from how cloning.dm does it
//var/ckey = mob_occupant.ckey
//put here for ease of use / ability to change, rather than in the method call to growclone
var/name = mob_occupant.real_name
//var/id = copytext_char(md5(mob_occupant.real_name), 2, 6)
//var/UE = dna.unique_enzymes
var/mind = null
var/UI = dna.uni_identity
var/SE = dna.mutation_index