Files
Bubberstation/code/modules/events/wizard/race.dm
SkyratBot 5a33abb773 [MIRROR] Event menu rewrite [MDB IGNORE] (#15396)
* Event menu rewrite

* Update topic.dm

* Update _event.dm

* Update event_chaos_system.dm

Co-authored-by: Profakos <profakos@gmail.com>
Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
2022-08-08 01:15:12 +01:00

31 lines
915 B
Plaintext

/datum/round_event_control/wizard/race //Lizard Wizard? Lizard Wizard.
name = "Race Swap"
weight = 0 //SKYRAT EDIT CHANGE - WIZARD CHANGE - ORIGINAL weight = 2
typepath = /datum/round_event/wizard/race
max_occurrences = 5
earliest_start = 0 MINUTES
description = "Gives everyone a random race."
/datum/round_event/wizard/race/start()
var/all_the_same = 0
var/all_species = list()
for(var/stype in subtypesof(/datum/species))
var/datum/species/S = stype
if(initial(S.changesource_flags) & RACE_SWAP)
all_species += stype
var/datum/species/new_species = pick(all_species)
if(prob(50))
all_the_same = 1
for(var/i in GLOB.human_list) //yes, even the dead
var/mob/living/carbon/human/H = i
H.set_species(new_species)
H.dna.unique_enzymes = H.dna.generate_unique_enzymes()
to_chat(H, span_notice("You feel somehow... different?"))
if(!all_the_same)
new_species = pick(all_species)