[MIRROR] Simple xeno antagonist (#5961)
* Simple xeno antagonist * Merge pull request #36397 from AnturK/xeno_antag Simple xeno antagonist
This commit is contained in:
committed by
Poojawa
parent
063abf2a5d
commit
13709a7d34
@@ -0,0 +1,37 @@
|
||||
/datum/team/xeno
|
||||
name = "Aliens"
|
||||
|
||||
//Simply lists them.
|
||||
/datum/team/xeno/roundend_report()
|
||||
var/list/parts = list()
|
||||
parts += "<span class='header'>The [name] were:</span>"
|
||||
parts += printplayerlist(members)
|
||||
return "<div class='panel redborder'>[parts.Join("<br>")]</div>"
|
||||
|
||||
/datum/antagonist/xeno
|
||||
name = "Xenomorph"
|
||||
job_rank = ROLE_ALIEN
|
||||
show_in_antagpanel = FALSE
|
||||
var/datum/team/xeno/xeno_team
|
||||
|
||||
/datum/antagonist/xeno/create_team(datum/team/xeno/new_team)
|
||||
if(!new_team)
|
||||
for(var/datum/antagonist/xeno/X in GLOB.antagonists)
|
||||
if(!X.owner || !X.xeno_team)
|
||||
continue
|
||||
xeno_team = X.xeno_team
|
||||
return
|
||||
xeno_team = new
|
||||
else
|
||||
if(!istype(new_team))
|
||||
CRASH("Wrong xeno team type provided to create_team")
|
||||
xeno_team = new_team
|
||||
|
||||
/datum/antagonist/xeno/get_team()
|
||||
return xeno_team
|
||||
|
||||
//XENO
|
||||
/mob/living/carbon/alien/mind_initialize()
|
||||
..()
|
||||
if(!mind.has_antag_datum(/datum/antagonist/xeno))
|
||||
mind.add_antag_datum(/datum/antagonist/xeno)
|
||||
Reference in New Issue
Block a user