mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-15 18:23:33 +01:00
[MIRROR] More globals (#12341)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
38e634dce7
commit
d031fa3c4e
@@ -31,7 +31,7 @@ GLOBAL_LIST_EMPTY(prevent_respawns)
|
||||
|
||||
//Job slot cleanup
|
||||
var/job = src.mind.assigned_role
|
||||
job_master.FreeRole(job)
|
||||
GLOB.job_master.FreeRole(job)
|
||||
|
||||
//Their objectives cleanup
|
||||
if(src.mind.objectives.len)
|
||||
|
||||
@@ -579,7 +579,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
if(check_rights_for(src.client, R_ADMIN|R_FUN|R_EVENT))
|
||||
return 0
|
||||
|
||||
return (T && T.holy) && (is_manifest || (mind in cult.current_antagonists))
|
||||
return (T && T.holy) && (is_manifest || (mind in GLOB.cult.current_antagonists))
|
||||
|
||||
/mob/observer/dead/verb/jumptomob() //Moves the ghost instead of just changing the ghosts's eye -Nodrak
|
||||
set category = "Ghost.Game"
|
||||
@@ -691,7 +691,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
|
||||
var/ghosts_can_write
|
||||
if(SSticker.mode.name == "cult")
|
||||
if(cult.current_antagonists.len > CONFIG_GET(number/cult_ghostwriter_req_cultists))
|
||||
if(GLOB.cult.current_antagonists.len > CONFIG_GET(number/cult_ghostwriter_req_cultists))
|
||||
ghosts_can_write = 1
|
||||
|
||||
if(!ghosts_can_write && !check_rights(R_ADMIN|R_EVENT|R_FUN, 0)) //Let's allow for admins to write in blood for events and the such.
|
||||
|
||||
Reference in New Issue
Block a user