Files
vgstation13/code/datums/gamemode/mixed.dm
MadmanMartian 4f84f6a029 role datums fixes and tweaks (#18277)
* * makes raging mages actually work
 * removes the 'protect master' objective, instead uses the protect objective
 * removes heavily redundant and useless vampire gamemode tweaks. master vampire is now handled through the role creating its own faction if one is not provided.
 * CreateRoles diversified, new filterAvailablePlayers proc, and now it actually works
 * Fixes mixed
 * Fixes syndicate agents becoming other sorts of syndicate agents, causing syndicate agent recursion
 * Fixes check antagonist for factions and roles not newlining after a role has been viewed

* moves rolecheck to faction, rather than having a snowflake check for traitor

* all my problems were because of a missed return 1

* more role fixes!

* removes debug
2018-05-17 01:52:21 +01:00

35 lines
1004 B
Plaintext

var/list/mixed_factions_allowed = list(
typesof(/datum/faction/wizard,
/datum/faction/syndicate/traitor),
)
var/list/mixed_roles_allowed = list(
/datum/role/vampire = 1,
/datum/role/changeling = 2,
)
/datum/gamemode/mixed
name = "Mixed"
/datum/gamemode/mixed/SetupFactions()
factions_allowed = mixed_factions_allowed
roles_allowed = mixed_roles_allowed
/datum/gamemode/mixed/traitorchan
name = "Traitorchan"
/datum/gamemode/mixed/traitorchan/SetupFactions()
factions_allowed = list(typesof(/datum/faction/syndicate/traitor))
roles_allowed = list(/datum/role/changeling)
/datum/gamemode/mixed/simple
name = "Simple Mixed"
/datum/gamemode/mixed/simple/SetupFactions()
factions_allowed = list(typesof(/datum/faction/syndicate/traitor))
roles_allowed = list(/datum/role/changeling, /datum/faction/vampire)
//would the easiest way to handle these be to just create the other gamemodes and let their code run, as opposed to adding their specific terms for faction creation again here?