Updates subsystem definitions to new standards. (#17470)

* My heart is dragging me down into...

...oblivion!

* drifting closer to the edge but she won't have me

* ever round me we are dead before we meet her

* for the last time

* wake up in sweat

* n

* fff

* uff

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2023-10-01 14:24:40 +00:00
committed by GitHub
co-authored by Matt Atlas
parent aff9d2a1f3
commit baeb7c6afd
127 changed files with 406 additions and 720 deletions
+4 -4
View File
@@ -28,15 +28,15 @@
/mob/abstract/eye/New()
ghostimage = image(src.icon,src,src.icon_state)
SSmob.ghost_darkness_images |= ghostimage //so ghosts can see the eye when they disable darkness
SSmob.ghost_sightless_images |= ghostimage //so ghosts can see the eye when they disable ghost sight
SSmobs.ghost_darkness_images |= ghostimage //so ghosts can see the eye when they disable darkness
SSmobs.ghost_sightless_images |= ghostimage //so ghosts can see the eye when they disable ghost sight
updateallghostimages()
..()
/mob/abstract/eye/Destroy()
if (ghostimage)
SSmob.ghost_darkness_images -= ghostimage
SSmob.ghost_sightless_images -= ghostimage
SSmobs.ghost_darkness_images -= ghostimage
SSmobs.ghost_sightless_images -= ghostimage
qdel(ghostimage)
ghostimage = null
updateallghostimages()
@@ -252,7 +252,7 @@
return chosenJob
/datum/preferences/proc/update_mannequin()
var/mob/living/carbon/human/dummy/mannequin/mannequin = SSmob.get_mannequin(client.ckey)
var/mob/living/carbon/human/dummy/mannequin/mannequin = SSmobs.get_mannequin(client.ckey)
mannequin.delete_inventory(TRUE)
mannequin.species.create_organs(mannequin)
if(gender)
@@ -48,7 +48,7 @@
set_stat(DEAD)
ghostimage = image(src.icon,src,src.icon_state)
SSmob.ghost_darkness_images |= ghostimage
SSmobs.ghost_darkness_images |= ghostimage
updateallghostimages()
var/turf/T
@@ -102,7 +102,7 @@
ghost_multitool = null
if (ghostimage)
SSmob.ghost_darkness_images -= ghostimage
SSmobs.ghost_darkness_images -= ghostimage
qdel(ghostimage)
ghostimage = null
updateallghostimages()
@@ -849,7 +849,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
return 1
/mob/proc/can_admin_interact()
return 0
return 0
/mob/abstract/observer/can_admin_interact()
return check_rights(R_ADMIN, 0, src)
@@ -896,12 +896,12 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if (!client)
return
if (seedarkness || !ghostvision)
client.images -= SSmob.ghost_darkness_images
client.images |= SSmob.ghost_sightless_images
client.images -= SSmobs.ghost_darkness_images
client.images |= SSmobs.ghost_sightless_images
else
//add images for the 60inv things ghosts can normally see when darkness is enabled so they can see them now
client.images -= SSmob.ghost_sightless_images
client.images |= SSmob.ghost_darkness_images
client.images -= SSmobs.ghost_sightless_images
client.images |= SSmobs.ghost_darkness_images
if (ghostimage)
client.images -= ghostimage //remove ourself