mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 13:05:36 +01:00
Simplifies the species picking
Adds an update_icons() to minimize the effects of #4252, but it's still a problem
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user