Random spawn mobs now have random cultures, hair, and skin tone. (#18120)

* Random spawn mobs now have random cultures, hair, and skin tone.

* fixes + trioxin

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2024-01-05 17:48:13 +00:00
committed by GitHub
co-authored by Matt Atlas
parent a424aedae1
commit 65d32eabd6
13 changed files with 145 additions and 42 deletions
@@ -20,3 +20,16 @@
/singleton/origin_item/proc/on_apply(var/mob/living/carbon/human/H)
for(var/trait in origin_traits)
ADD_TRAIT(H, trait, CULTURE_TRAIT)
/mob/living/carbon/human/proc/set_culture(var/singleton/origin_item/OI)
if(!istype(OI))
crash_with("Invalid culture supplied: [OI]!")
culture = OI
OI.on_apply(src)
/mob/living/carbon/human/proc/set_origin(var/singleton/origin_item/OI)
if(!istype(OI))
crash_with("Invalid origin supplied: [OI]!")
origin = OI
OI.on_apply(src)