[MIRROR] Signals and God (#11242)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-07-25 18:54:31 -07:00
committed by GitHub
parent 549c470ca1
commit 23a48feba4
35 changed files with 376 additions and 105 deletions

View File

@@ -409,8 +409,8 @@ GLOBAL_LIST_BOILERPLATE(all_singularities, /obj/singularity)
radiation = round(((src.energy-150)/50)*5,1)
SSradiation.radiate(src, radiation) //Always radiate at max, so a decent dose of radiation is applied
for(var/mob/living/M in view(toxrange, src.loc))
if(M.status_flags & GODMODE)
continue
if(SEND_SIGNAL(M, COMSIG_CHECK_FOR_GODMODE) & COMSIG_GODMODE_CANCEL)
return 0 // Cancelled by a component
toxdamage = (toxdamage - (toxdamage*M.getarmor(null, "rad")))
M.apply_effect(toxdamage, TOX)
return
@@ -420,8 +420,8 @@ GLOBAL_LIST_BOILERPLATE(all_singularities, /obj/singularity)
for(var/mob/living/carbon/M in oviewers(8, src))
if(istype(M, /mob/living/carbon/brain)) //Ignore brains
continue
if(M.status_flags & GODMODE)
continue
if(SEND_SIGNAL(M, COMSIG_CHECK_FOR_GODMODE) & COMSIG_GODMODE_CANCEL)
return 0 // Cancelled by a component
if(M.stat == CONSCIOUS)
if (ishuman(M))
var/mob/living/carbon/human/H = M