mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 11:36:24 +01:00
Species types sources refactor (#42523)
There is now a bitflag that controls all the ways a species can be selected from the different methods of changing species, xeno spawn, pride mirror, magic mirror etc. The soviet and capitalist golems are no longer selectable from the pride or magic mirrors (just the badmin one) interesting thing I found, androids and synths (including military synth) are acheivable via xeno extracts!
This commit is contained in:
@@ -97,15 +97,14 @@
|
||||
name = "magic mirror"
|
||||
desc = "Turn and face the strange... face."
|
||||
icon_state = "magic_mirror"
|
||||
var/list/races_blacklist = list("skeleton", "agent", "angel", "military_synth", "memezombies", "clockwork golem servant", "android", "synth", "mush", "zombie")
|
||||
var/list/choosable_races = list()
|
||||
|
||||
/obj/structure/mirror/magic/New()
|
||||
if(!choosable_races.len)
|
||||
for(var/speciestype in subtypesof(/datum/species))
|
||||
var/datum/species/S = new speciestype()
|
||||
if(!(S.id in races_blacklist))
|
||||
choosable_races += S.id
|
||||
var/datum/species/S = speciestype
|
||||
if(initial(S.changesource_flags) & MIRROR_MAGIC)
|
||||
choosable_races += initial(S.id)
|
||||
..()
|
||||
|
||||
/obj/structure/mirror/magic/lesser/New()
|
||||
@@ -114,8 +113,9 @@
|
||||
|
||||
/obj/structure/mirror/magic/badmin/New()
|
||||
for(var/speciestype in subtypesof(/datum/species))
|
||||
var/datum/species/S = new speciestype()
|
||||
choosable_races += S.id
|
||||
var/datum/species/S = speciestype
|
||||
if(initial(S.changesource_flags) & MIRROR_BADMIN)
|
||||
choosable_races += initial(S.id)
|
||||
..()
|
||||
|
||||
/obj/structure/mirror/magic/attack_hand(mob/user)
|
||||
|
||||
Reference in New Issue
Block a user