mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 04:57:12 +01:00
Hopefully this works (#14948)
This commit is contained in:
+1
-5
@@ -891,12 +891,8 @@
|
||||
message_admins("[key_name_admin(usr)] has de-culted [key_name_admin(current)]")
|
||||
if("cultist")
|
||||
if(!(src in SSticker.mode.cult))
|
||||
if(!SSticker.mode.ascend_percent) // If the rise/ascend thresholds haven't been set (non-cult rounds)
|
||||
SSticker.mode.cult_objs.setup()
|
||||
SSticker.mode.cult_threshold_check()
|
||||
SSticker.mode.add_cultist(src)
|
||||
special_role = SPECIAL_ROLE_CULTIST
|
||||
to_chat(current, CULT_GREETING)
|
||||
SSticker.mode.add_cultist(src)
|
||||
to_chat(current, "<span class='cultitalic'>Assist your new compatriots in their dark dealings. Their goal is yours, and yours is theirs. You serve [SSticker.cultdat.entity_title2] above all else. Bring It back.</span>")
|
||||
log_and_message_admins("[key_name(usr)] has culted [key_name(current)]")
|
||||
if("dagger")
|
||||
|
||||
@@ -171,6 +171,10 @@ GLOBAL_LIST_EMPTY(all_cults)
|
||||
if(!istype(cult_mind))
|
||||
return FALSE
|
||||
|
||||
if(!ascend_percent) // If the rise/ascend thresholds haven't been set (non-cult rounds)
|
||||
cult_objs.setup()
|
||||
cult_threshold_check()
|
||||
|
||||
if(!(cult_mind in cult))
|
||||
cult += cult_mind
|
||||
cult_mind.current.faction |= "cult"
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
|
||||
var/list/mob/living/carbon/human/candidates = list()
|
||||
var/mob/living/carbon/human/H = null
|
||||
var/antnum = input(owner, "How many cultists you want to create? Enter 0 to cancel.","Amount:", 0) as num
|
||||
var/antnum = input(owner, "How many cultists do you want to create? Enter 0 to cancel.", "Amount:", 0) as num
|
||||
if(!antnum || antnum <= 0) // 5 because cultist can really screw balance over if spawned in high amount.
|
||||
return
|
||||
log_admin("[key_name(owner)] tried making a Cult with One-Click-Antag")
|
||||
@@ -171,15 +171,17 @@
|
||||
if(CandCheck(ROLE_CULTIST, applicant, temp))
|
||||
candidates += applicant
|
||||
|
||||
if(candidates.len)
|
||||
var/numCultists = min(candidates.len, antnum)
|
||||
if(length(candidates))
|
||||
var/numCultists = min(length(candidates), antnum)
|
||||
|
||||
for(var/i = 0, i<numCultists, i++)
|
||||
for(var/I in 1 to numCultists)
|
||||
H = pick(candidates)
|
||||
to_chat(H, CULT_GREETING)
|
||||
SSticker.mode.add_cultist(H.mind)
|
||||
SSticker.mode.equip_cultist(H)
|
||||
candidates.Remove(H)
|
||||
return 1
|
||||
return 0
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user