mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 22:12:58 +01:00
DNA2 fix.
Before: If you shoved a skrell, cat, or any species other then human in the cloner, they came out human. After: Cloning works like it should.
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
|
||||
if(!dna)
|
||||
dna = new /datum/dna(null)
|
||||
dna.species=species.name
|
||||
|
||||
for(var/i=0;i<7;i++) // 2 for medHUDs and 5 for secHUDs
|
||||
hud_list += image('icons/mob/hud.dmi', src, "hudunknown")
|
||||
@@ -1185,8 +1186,14 @@
|
||||
|
||||
/mob/living/carbon/human/proc/set_species(var/new_species)
|
||||
|
||||
if(!new_species)
|
||||
new_species = "Human"
|
||||
if(!dna)
|
||||
if(!new_species)
|
||||
new_species = "Human"
|
||||
else
|
||||
if(!new_species)
|
||||
new_species = dna.species
|
||||
else
|
||||
dna.species = new_species
|
||||
|
||||
if(species && (species.name && species.name == new_species))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user