several fixes inc #233

Fixes icon creation issue in certain situations such as humanising
monkeys and cloning
Fixes humanized monkeys reverting to monkey name after being used for
cloning
Fixes humanized monkeys being made as human parent object instead of
human/race
This commit is contained in:
VampyrBytes
2014-08-01 06:38:01 +01:00
parent f900578f25
commit ea07c3b06b
3 changed files with 21 additions and 15 deletions
+5 -1
View File
@@ -108,7 +108,10 @@
var/mob/living/carbon/human/O
if(Mo.greaterform)
O = new(src, Mo.greaterform)
var/greatform = lowertext(Mo.greaterform)
var/typepath = "/mob/living/carbon/human/"
typepath += greatform
O = new typepath(src, greatform)
else
O = new(src)
@@ -152,6 +155,7 @@
continue
else
O.real_name = randomname
O.dna.real_name = randomname
i++
O.UpdateAppearance()
O.take_overall_damage(M.getBruteLoss(), M.getFireLoss())