mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Re-enable xenomorph jobbans.
This commit is contained in:
@@ -195,7 +195,9 @@
|
||||
vents += temp_vent
|
||||
|
||||
var/list/candidates = get_active_candidates(ROLE_ALIEN,buffer=ALIEN_SELECT_AFK_BUFFER, poll=1)
|
||||
|
||||
for(var/mob/M in candidates)
|
||||
if(jobban_isbanned(M, "xenomorph"))
|
||||
candidates -= M
|
||||
if(prob(40)) spawncount++ //sometimes, have two larvae spawn instead of one
|
||||
while((spawncount >= 1) && vents.len && candidates.len)
|
||||
|
||||
|
||||
@@ -332,7 +332,7 @@ datum/admins/proc/DB_ban_unban_by_id(var/id)
|
||||
output += "<option value='[j]'>[j]</option>"
|
||||
for(var/j in nonhuman_positions)
|
||||
output += "<option value='[j]'>[j]</option>"
|
||||
for(var/j in list("traitor","changeling","operative","revolutionary","cultist","wizard"))
|
||||
for(var/j in list("traitor","changeling","operative","revolutionary","cultist","wizard", "Dionaea", "Xenomorph"))
|
||||
output += "<option value='[j]'>[j]</option>"
|
||||
|
||||
// AUTOFIXED BY fix_string_idiocy.py
|
||||
|
||||
@@ -757,13 +757,13 @@
|
||||
jobs += "<td width='20%'><a href='?src=\ref[src];jobban3=malf AI;jobban4=\ref[M]'><font color=red>[replacetext("Malf AI", " ", " ")]</font></a></td>"
|
||||
else
|
||||
jobs += "<td width='20%'><a href='?src=\ref[src];jobban3=malf AI;jobban4=\ref[M]'>[replacetext("Malf AI", " ", " ")]</a></td>"
|
||||
|
||||
*/
|
||||
//Alien
|
||||
if(jobban_isbanned(M, "alien candidate") || isbanned_dept)
|
||||
jobs += "<td width='20%'><a href='?src=\ref[src];jobban3=alien candidate;jobban4=\ref[M]'><font color=red>[replacetext("Alien", " ", " ")]</font></a></td>"
|
||||
if(jobban_isbanned(M, "Xenomorph") || isbanned_dept)
|
||||
jobs += "<td width='20%'><a href='?src=\ref[src];jobban3=Xenomorph;jobban4=\ref[M]'><font color=red>[replacetext("Alien", " ", " ")]</font></a></td>"
|
||||
else
|
||||
jobs += "<td width='20%'><a href='?src=\ref[src];jobban3=alien candidate;jobban4=\ref[M]'>[replacetext("Alien", " ", " ")]</a></td>"
|
||||
|
||||
jobs += "<td width='20%'><a href='?src=\ref[src];jobban3=Xenomorph;jobban4=\ref[M]'>[replacetext("Alien", " ", " ")]</a></td>"
|
||||
/*
|
||||
//Infested Monkey
|
||||
if(jobban_isbanned(M, "infested monkey") || isbanned_dept)
|
||||
jobs += "<td width='20%'><a href='?src=\ref[src];jobban3=infested monkey;jobban4=\ref[M]'><font color=red>[replacetext("Infested Monkey", " ", " ")]</font></a></td>"
|
||||
|
||||
@@ -233,6 +233,7 @@ proc/cmd_admin_mute(mob/M as mob, mute_type, automute = 0)
|
||||
for(var/mob/M in get_active_candidates(ROLE_ALIEN))
|
||||
if(M.stat != DEAD) continue //we are not dead!
|
||||
if(M.client.is_afk()) continue //we are afk
|
||||
if(jobban_isbanned(M, "xenomorph")) continue
|
||||
candidates += M.ckey
|
||||
if(candidates.len)
|
||||
ckey = input("Pick the player you want to respawn as a xeno.", "Suitable Candidates") as null|anything in candidates
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
vents += temp_vent
|
||||
|
||||
var/list/candidates = get_active_candidates(ROLE_ALIEN, buffer=ALIEN_SELECT_AFK_BUFFER, poll=1)
|
||||
|
||||
for(var/mob/M in candidates)
|
||||
if(jobban_isbanned(M, "xenomorph"))
|
||||
candidates -= M
|
||||
while(spawncount > 0 && vents.len && candidates.len)
|
||||
var/obj/vent = pick(vents)
|
||||
var/mob/candidate = pick(candidates)
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
processing_objects.Add(src)
|
||||
|
||||
for(var/mob/dead/observer/O in get_active_candidates(ROLE_ALIEN,poll="[affected_mob] has been infected by \a [src]!"))
|
||||
if(O.client && O.client.desires_role(ROLE_ALIEN))
|
||||
if(O.client && O.client.desires_role(ROLE_ALIEN) && !jobban_isbanned(O, "xenomorph"))
|
||||
if(check_observer(O))
|
||||
O << "<span class=\"recruit\">You have automatically been signed up for \a [src]. (<a href='?src=\ref[O];jump=\ref[src]'>Teleport</a> | <a href='?src=\ref[src];signup=\ref[O]'>Retract</a>)</span>"
|
||||
ghost_volunteers += O
|
||||
@@ -127,7 +127,10 @@
|
||||
break
|
||||
if(!ghostpicked || !istype(ghostpicked))
|
||||
var/list/candidates = get_active_candidates(ROLE_ALIEN, buffer=ALIEN_SELECT_AFK_BUFFER, poll=1)
|
||||
if(!candidates.len)
|
||||
for(var/mob/M in candidates)
|
||||
if(jobban_isbanned(M, "xenomorph"))
|
||||
candidates -= M
|
||||
if(!candidates.len && !jobban_isbanned(affected_mob, "xenomorph"))
|
||||
picked = affected_mob.key //Pick the person who was infected
|
||||
else
|
||||
for(var/mob/dead/observer/O in candidates)
|
||||
@@ -138,6 +141,9 @@
|
||||
if(!picked)
|
||||
stage = 4 // Let's try again later.
|
||||
var/list/candidates = get_active_candidates(ROLE_ALIEN, buffer=ALIEN_SELECT_AFK_BUFFER, poll=1)
|
||||
for(var/mob/M in candidates)
|
||||
if(jobban_isbanned(M, "xenomorph"))
|
||||
candidates -= M
|
||||
for(var/mob/dead/observer/O in candidates) //Shiggy
|
||||
O << "<span class=\"recruit\">[affected_mob] is about to burst from \a [src]!. (<a href='?src=\ref[O];jump=\ref[src]'>Teleport</a> | <a href='?src=\ref[src];signup=\ref[O]'>Sign Up</a>)</span>"
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user