From 4e91b2b655bcd85d1a8ae20683ee621bd8ed6157 Mon Sep 17 00:00:00 2001 From: Incoming Date: Tue, 5 Aug 2014 14:11:45 -0400 Subject: [PATCH] Simplifies the species picking Adds an update_icons() to minimize the effects of #4252, but it's still a problem --- code/modules/projectiles/projectile/magic.dm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/code/modules/projectiles/projectile/magic.dm b/code/modules/projectiles/projectile/magic.dm index d5db0e549cf..efc4d0d1800 100644 --- a/code/modules/projectiles/projectile/magic.dm +++ b/code/modules/projectiles/projectile/magic.dm @@ -199,12 +199,9 @@ proc/wabbajack(mob/living/M) var/mob/living/carbon/human/H = new_mob ready_dna(H) if(H.dna && prob(50)) - var/list/randspecies = list() - for(var/t in typesof(/datum/species) - /datum/species) // returns a bunch of types - var/datum/species/temp = new t() - randspecies += "[temp.type]" - var/datum/species/new_species = pick(randspecies) + var/datum/species/new_species = pick(typesof(/datum/species) - /datum/species) H.dna.species = new new_species() + H.update_icons() else return