mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 15:14:27 +01:00
RP-revconvert bugfix
Now only humans that are logged in, alive, and not already a revolutionary (no special_role) show up in the list. Instead of EVERY mob type (simple_animals, borgs, etc.)
This commit is contained in:
@@ -155,9 +155,17 @@
|
||||
|
||||
return 1
|
||||
|
||||
/mob/living/carbon/human/proc/RevConvert(mob/M as mob in oview(src))
|
||||
/mob/living/carbon/human/proc/RevConvert()
|
||||
set name = "Rev-Convert"
|
||||
set category = "IC"
|
||||
var/list/Possible = list()
|
||||
for (var/mob/living/carbon/human/P in oview(src))
|
||||
if(!stat && P.client && P.mind && !P.mind.special_role)
|
||||
Possible += P
|
||||
if(!Possible.len)
|
||||
src << "\red There doesn't appear to be anyone available for you to convert here."
|
||||
return
|
||||
var/mob/living/carbon/human/M = input("Select a person to convert", "Viva la revolution!", null) as mob in Possible
|
||||
if(((src.mind in ticker.mode:head_revolutionaries) || (src.mind in ticker.mode:revolutionaries)))
|
||||
if((M.mind in ticker.mode:head_revolutionaries) || (M.mind in ticker.mode:revolutionaries))
|
||||
src << "\red <b>[M] is already be a revolutionary!</b>"
|
||||
@@ -250,4 +258,4 @@
|
||||
rev_obj.target = M.mind
|
||||
rev_obj.explanation_text = "Assassinate, convert or capture [M.real_name], the [M.mind.assigned_role]."
|
||||
rev_mind.objectives += rev_obj
|
||||
rev_mind.current << "\red A new Head of Staff, [M.real_name], the [M.mind.assigned_role] has appeared. Your objectives have been updated."
|
||||
rev_mind.current << "\red A new Head of Staff, [M.real_name], the [M.mind.assigned_role] has appeared. Your objectives have been updated."
|
||||
|
||||
Reference in New Issue
Block a user