mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -665,7 +665,7 @@ var/list/ai_verbs_default = list(
|
||||
else
|
||||
to_chat(src, SPAN_WARNING("You do not have a custom sprite!"))
|
||||
if("loadout character")
|
||||
var/mob/living/carbon/human/H = SSmob.get_mannequin(usr.client.ckey)
|
||||
var/mob/living/carbon/human/H = SSmobs.get_mannequin(usr.client.ckey)
|
||||
holo_icon.appearance = H.appearance
|
||||
else
|
||||
set_hologram_unique(icon('icons/mob/AI.dmi', input))
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
dust()
|
||||
|
||||
/mob/living/simple_animal/rat/Destroy()
|
||||
SSmob.all_rats -= src
|
||||
SSmobs.all_rats -= src
|
||||
|
||||
return ..()
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
holder_type = /obj/item/holder/rat/irish
|
||||
|
||||
|
||||
SSmob.all_rats += src
|
||||
SSmobs.all_rats += src
|
||||
|
||||
/mob/living/simple_animal/rat/speak_audio()
|
||||
squeak_soft(0)
|
||||
@@ -251,7 +251,7 @@
|
||||
if(client)
|
||||
client.time_died_as_rat = world.time
|
||||
|
||||
SSmob.all_rats -= src
|
||||
SSmobs.all_rats -= src
|
||||
|
||||
..()
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
|
||||
/proc/announceToRodents(var/message)
|
||||
for(var/R in SSmob.all_rats)
|
||||
for(var/R in SSmobs.all_rats)
|
||||
to_chat(R, message)
|
||||
|
||||
/mob/living/simple_animal/rat/king
|
||||
|
||||
@@ -60,8 +60,8 @@
|
||||
)
|
||||
var/obj/item/organ/external/G = H.get_organ(BP_GROIN)
|
||||
G.droplimb(0,DROPLIMB_EDGE)
|
||||
if(SSmob.greatasses.len)
|
||||
var/obj/structure/greatworm/S = pick(SSmob.greatasses)
|
||||
if(SSmobs.greatasses.len)
|
||||
var/obj/structure/greatworm/S = pick(SSmobs.greatasses)
|
||||
H.forceMove(S.loc)
|
||||
else
|
||||
H.gib()
|
||||
@@ -126,14 +126,14 @@
|
||||
|
||||
/mob/living/simple_animal/hostile/greatworm/Initialize()
|
||||
. = ..()
|
||||
SSmob.greatworms += src
|
||||
SSmobs.greatworms += src
|
||||
loot_count = 4+(rand(0,4))
|
||||
var/obj/item/trap/sarlacc/L = new /obj/item/trap/sarlacc(src.loc)
|
||||
L.originator = src
|
||||
sarlacc = L
|
||||
|
||||
/mob/living/simple_animal/hostile/greatworm/Destroy()
|
||||
SSmob.greatworms -= src
|
||||
SSmobs.greatworms -= src
|
||||
if(sarlacc)
|
||||
qdel(sarlacc)
|
||||
sarlacc = null
|
||||
@@ -349,9 +349,9 @@
|
||||
|
||||
/mob/living/simple_animal/hostile/greatwormking/Destroy()
|
||||
playsound(src.loc, 'sound/hallucinations/wail.ogg', 200, 1, usepressure = 0)
|
||||
for(var/mob/living/L in SSmob.greatworms)
|
||||
for(var/mob/living/L in SSmobs.greatworms)
|
||||
L.death()
|
||||
for(var/obj/structure/S in SSmob.greatasses)
|
||||
for(var/obj/structure/S in SSmobs.greatasses)
|
||||
qdel(S)
|
||||
return ..()
|
||||
|
||||
@@ -412,9 +412,9 @@
|
||||
|
||||
/obj/structure/greatworm/Initialize()
|
||||
. = ..()
|
||||
SSmob.greatasses += src
|
||||
SSmobs.greatasses += src
|
||||
|
||||
/obj/structure/greatworm/Destroy()
|
||||
SSmob.greatasses -= src
|
||||
SSmobs.greatasses -= src
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
|
||||
player_list |= src
|
||||
update_Login_details()
|
||||
SSfeedback.update_status()
|
||||
SSstatistics.update_status()
|
||||
|
||||
client.images.Cut() //remove the images such as AIs being unable to see runes
|
||||
client.screen.Cut() //remove hud items just in case
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
player_list -= src
|
||||
disconnect_time = world.realtime
|
||||
log_access("Logout: [key_name(src)]",ckey=key_name(src))
|
||||
SSfeedback.update_status()
|
||||
SSstatistics.update_status()
|
||||
if(client)
|
||||
clear_important_client_contents(client)
|
||||
|
||||
|
||||
@@ -1074,20 +1074,20 @@ var/list/intents = list(I_HELP,I_DISARM,I_GRAB,I_HURT)
|
||||
// It's not worth adding a proc for every single one of these types.
|
||||
/mob/living/simple_animal/find_type()
|
||||
. = ..()
|
||||
if (is_type_in_typecache(src, SSmob.mtl_synthetic))
|
||||
if (is_type_in_typecache(src, SSmobs.mtl_synthetic))
|
||||
. |= TYPE_SYNTHETIC
|
||||
|
||||
if (is_type_in_typecache(src, SSmob.mtl_weird))
|
||||
if (is_type_in_typecache(src, SSmobs.mtl_weird))
|
||||
. |= TYPE_WEIRD
|
||||
|
||||
if (is_type_in_typecache(src, SSmob.mtl_incorporeal))
|
||||
if (is_type_in_typecache(src, SSmobs.mtl_incorporeal))
|
||||
. |= TYPE_INCORPOREAL
|
||||
|
||||
// If it's not TYPE_SYNTHETIC, TYPE_WEIRD or TYPE_INCORPOREAL, we can assume it's TYPE_ORGANIC.
|
||||
if (!(. & (TYPE_SYNTHETIC|TYPE_WEIRD|TYPE_INCORPOREAL)))
|
||||
. |= TYPE_ORGANIC
|
||||
|
||||
if (is_type_in_typecache(src, SSmob.mtl_humanoid))
|
||||
if (is_type_in_typecache(src, SSmobs.mtl_humanoid))
|
||||
. |= TYPE_HUMANOID
|
||||
|
||||
#undef SAFE_PERP
|
||||
|
||||
Reference in New Issue
Block a user