mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Fixes cortical borer spawning.
This commit is contained in:
@@ -27,20 +27,23 @@ var/datum/antagonist/xenos/borer/borers
|
|||||||
player.objectives += new /datum/objective/borer_reproduce()
|
player.objectives += new /datum/objective/borer_reproduce()
|
||||||
player.objectives += new /datum/objective/escape()
|
player.objectives += new /datum/objective/escape()
|
||||||
|
|
||||||
/datum/antagonist/xenos/borer/proc/place_in_host(var/mob/living/simple_animal/borer/borer, var/mob/living/carbon/human/host)
|
|
||||||
borer.host = host
|
|
||||||
borer.host_brain.name = host.name
|
|
||||||
borer.host_brain.real_name = host.real_name
|
|
||||||
var/obj/item/organ/external/head = host.get_organ("head")
|
|
||||||
if(head) head.implants += borer
|
|
||||||
|
|
||||||
/datum/antagonist/xenos/borer/proc/get_hosts()
|
|
||||||
var/list/possible_hosts = list()
|
|
||||||
for(var/mob/living/carbon/human/H in mob_list)
|
|
||||||
if(H.stat != 2 && !(H.species.flags & IS_SYNTHETIC) && !H.has_brain_worms())
|
|
||||||
possible_hosts |= H
|
|
||||||
return possible_hosts
|
|
||||||
|
|
||||||
/datum/antagonist/xenos/borer/place_mob(var/mob/living/mob)
|
/datum/antagonist/xenos/borer/place_mob(var/mob/living/mob)
|
||||||
var/list/possible_hosts = get_hosts()
|
var/mob/living/simple_animal/borer/borer = mob
|
||||||
if(possible_hosts.len) place_in_host(mob, pick(possible_hosts))
|
if(istype(borer))
|
||||||
|
var/mob/living/carbon/human/host
|
||||||
|
for(var/mob/living/carbon/human/H in mob_list)
|
||||||
|
if(H.stat != 2 && !(H.species.flags & IS_SYNTHETIC) && !H.has_brain_worms())
|
||||||
|
host = H
|
||||||
|
break
|
||||||
|
if(istype(host))
|
||||||
|
var/obj/item/organ/external/head = host.get_organ("head")
|
||||||
|
if(head)
|
||||||
|
borer.host = host
|
||||||
|
head.implants += borer
|
||||||
|
borer.loc = head
|
||||||
|
if(!borer.host_brain)
|
||||||
|
borer.host_brain = new(borer)
|
||||||
|
borer.host_brain.name = host.name
|
||||||
|
borer.host_brain.real_name = host.real_name
|
||||||
|
return
|
||||||
|
..() // Place them at a vent if they can't get a host.
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ var/datum/antagonist/xenos/xenomorphs
|
|||||||
spawn_announcement = "Unidentified lifesigns detected coming aboard the station. Secure any exterior access, including ducting and ventilation."
|
spawn_announcement = "Unidentified lifesigns detected coming aboard the station. Secure any exterior access, including ducting and ventilation."
|
||||||
spawn_announcement_title = "Lifesign Alert"
|
spawn_announcement_title = "Lifesign Alert"
|
||||||
spawn_announcement_sound = 'sound/AI/aliens.ogg'
|
spawn_announcement_sound = 'sound/AI/aliens.ogg'
|
||||||
spawn_announcement_delay = 400
|
spawn_announcement_delay = 5000
|
||||||
|
|
||||||
/datum/antagonist/xenos/New(var/no_reference)
|
/datum/antagonist/xenos/New(var/no_reference)
|
||||||
..()
|
..()
|
||||||
|
|||||||
@@ -14,8 +14,6 @@ var/datum/antagonist/loyalists/loyalists
|
|||||||
victory_feedback_tag = "win - rev heads killed"
|
victory_feedback_tag = "win - rev heads killed"
|
||||||
loss_feedback_tag = "loss - heads killed"
|
loss_feedback_tag = "loss - heads killed"
|
||||||
flags = 0
|
flags = 0
|
||||||
max_antags = 1
|
|
||||||
max_antags_round = 1
|
|
||||||
|
|
||||||
// Inround loyalists.
|
// Inround loyalists.
|
||||||
faction_role_text = "Loyalist"
|
faction_role_text = "Loyalist"
|
||||||
@@ -24,6 +22,7 @@ var/datum/antagonist/loyalists/loyalists
|
|||||||
faction_welcome = "Preserve NanoTrasen's interests against the traitorous recidivists amongst the crew. Protect the heads of staff with your life."
|
faction_welcome = "Preserve NanoTrasen's interests against the traitorous recidivists amongst the crew. Protect the heads of staff with your life."
|
||||||
faction_indicator = "loyal"
|
faction_indicator = "loyal"
|
||||||
faction_invisible = 1
|
faction_invisible = 1
|
||||||
|
restricted_jobs = list("AI", "Cyborg")
|
||||||
|
|
||||||
/datum/antagonist/loyalists/New()
|
/datum/antagonist/loyalists/New()
|
||||||
..()
|
..()
|
||||||
|
|||||||
@@ -14,8 +14,6 @@ var/datum/antagonist/revolutionary/revs
|
|||||||
victory_feedback_tag = "win - heads killed"
|
victory_feedback_tag = "win - heads killed"
|
||||||
loss_feedback_tag = "loss - rev heads killed"
|
loss_feedback_tag = "loss - rev heads killed"
|
||||||
flags = ANTAG_SUSPICIOUS | ANTAG_VOTABLE
|
flags = ANTAG_SUSPICIOUS | ANTAG_VOTABLE
|
||||||
max_antags = 1
|
|
||||||
max_antags_round = 1
|
|
||||||
|
|
||||||
//Inround revs.
|
//Inround revs.
|
||||||
faction_role_text = "Revolutionary"
|
faction_role_text = "Revolutionary"
|
||||||
|
|||||||
@@ -229,7 +229,7 @@ var/global/list/additional_antag_types = list()
|
|||||||
var/enemy_count = 0
|
var/enemy_count = 0
|
||||||
if(antag_tags && antag_tags.len)
|
if(antag_tags && antag_tags.len)
|
||||||
for(var/antag_tag in antag_tags)
|
for(var/antag_tag in antag_tags)
|
||||||
var/datum/antagonist/antag = all_antag_types
|
var/datum/antagonist/antag = all_antag_types[antag_tag]
|
||||||
if(!antag)
|
if(!antag)
|
||||||
continue
|
continue
|
||||||
var/list/potential = list()
|
var/list/potential = list()
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
config_tag = "revolution"
|
config_tag = "revolution"
|
||||||
round_description = "Some crewmembers are attempting to start a revolution!"
|
round_description = "Some crewmembers are attempting to start a revolution!"
|
||||||
extended_round_description = "Revolutionaries - Remove the heads of staff from power. Convert other crewmembers to your cause using the 'Convert Bourgeoise' verb. Protect your leaders."
|
extended_round_description = "Revolutionaries - Remove the heads of staff from power. Convert other crewmembers to your cause using the 'Convert Bourgeoise' verb. Protect your leaders."
|
||||||
required_players = 0
|
required_players = 4
|
||||||
required_players_secret = 0
|
required_players_secret = 15
|
||||||
required_enemies = 0
|
required_enemies = 3
|
||||||
auto_recall_shuttle = 1
|
auto_recall_shuttle = 1
|
||||||
uplink_welcome = "AntagCorp Uplink Console:"
|
uplink_welcome = "AntagCorp Uplink Console:"
|
||||||
uplink_uses = 10
|
uplink_uses = 10
|
||||||
|
|||||||
Reference in New Issue
Block a user