From 9476f036a03a7c35cd25a1d820b8a1b157c3628c Mon Sep 17 00:00:00 2001
From: Fluffy <65877598+FluffyGhoster@users.noreply.github.com>
Date: Tue, 30 Jul 2024 00:49:37 +0200
Subject: [PATCH] Fixed cryopods causing an harddel on mobs (#19721)
Fixed cryopods causing an harddel on mobs
---
code/game/machinery/cryopod.dm | 17 ------
code/modules/admin/verbs/debug.dm | 2 -
.../fluffyghost-fixcryopodharddel.yml | 58 +++++++++++++++++++
3 files changed, 58 insertions(+), 19 deletions(-)
create mode 100644 html/changelogs/fluffyghost-fixcryopodharddel.yml
diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm
index ab4924106ac..0199cfef5ce 100644
--- a/code/game/machinery/cryopod.dm
+++ b/code/game/machinery/cryopod.dm
@@ -9,8 +9,6 @@
//Main cryopod console.
-GLOBAL_LIST_EMPTY(frozen_crew)
-
/obj/machinery/computer/cryopod
name = "cryogenic oversight console"
desc = "An interface between crew and the cryogenic storage oversight systems."
@@ -74,7 +72,6 @@ GLOBAL_LIST_EMPTY(frozen_crew)
dat += "
[storage_name]
"
dat += "Welcome, [user.real_name].
"
- dat += "View Storage Log
"
if(allow_items)
dat += "View Objects
"
dat += "Recover Object
"
@@ -92,19 +89,6 @@ GLOBAL_LIST_EMPTY(frozen_crew)
src.add_fingerprint(user)
- if(href_list["log"])
- if(!length(GLOB.frozen_crew))
- to_chat(user, SPAN_WARNING("Nothing has been stored recently."))
- return
- var/dat = "Recently Stored [storage_type]
"
- for(var/person in GLOB.frozen_crew)
- dat += " - [person]
"
- dat += "
"
-
- var/datum/browser/cryolog_win = new(user, "cryolog", "Cryogenic Storage Log")
- cryolog_win.set_content(dat)
- cryolog_win.open()
-
if(href_list["view"])
if(!allow_items)
return
@@ -397,7 +381,6 @@ GLOBAL_LIST_EMPTY(frozen_crew)
GLOB.global_announcer.autosay("[occupant.real_name], [occupant.mind.role_alt_title], [on_store_message] [on_store_location].", "[on_store_name]")
visible_message(SPAN_NOTICE("\The [src] hums and hisses as it moves [occupant] to [on_store_location]."))
playsound(loc, on_store_sound, 25)
- GLOB.frozen_crew += occupant
if(ishuman(occupant))
var/mob/living/carbon/human/H = occupant
if(H.ghost_spawner)
diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm
index e863441a0ad..7597dd179b9 100644
--- a/code/modules/admin/verbs/debug.dm
+++ b/code/modules/admin/verbs/debug.dm
@@ -397,8 +397,6 @@
to_chat(usr, jointext(GLOB.living_mob_list,", "))
if("Dead Mobs")
to_chat(usr, jointext(GLOB.dead_mob_list,", "))
- if("Frozen Mobs")
- to_chat(usr, jointext(GLOB.frozen_crew,", "))
if("Clients")
to_chat(usr, jointext(GLOB.clients,", "))
diff --git a/html/changelogs/fluffyghost-fixcryopodharddel.yml b/html/changelogs/fluffyghost-fixcryopodharddel.yml
new file mode 100644
index 00000000000..408b8bf8902
--- /dev/null
+++ b/html/changelogs/fluffyghost-fixcryopodharddel.yml
@@ -0,0 +1,58 @@
+################################
+# Example Changelog File
+#
+# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
+#
+# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
+# When it is, any changes listed below will disappear.
+#
+# Valid Prefixes:
+# bugfix
+# - (fixes bugs)
+# wip
+# - (work in progress)
+# qol
+# - (quality of life)
+# soundadd
+# - (adds a sound)
+# sounddel
+# - (removes a sound)
+# rscadd
+# - (adds a feature)
+# rscdel
+# - (removes a feature)
+# imageadd
+# - (adds an image or sprite)
+# imagedel
+# - (removes an image or sprite)
+# spellcheck
+# - (fixes spelling or grammar)
+# experiment
+# - (experimental change)
+# balance
+# - (balance changes)
+# code_imp
+# - (misc internal code change)
+# refactor
+# - (refactors code)
+# config
+# - (makes a change to the config files)
+# admin
+# - (makes changes to administrator tools)
+# server
+# - (miscellaneous changes to server)
+#################################
+
+# Your name.
+author: FluffyGhost
+
+# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
+delete-after: True
+
+# Any changes you've made. See valid prefix list above.
+# INDENT WITH TWO SPACES. NOT TABS. SPACES.
+# SCREW THIS UP AND IT WON'T WORK.
+# Also, this gets changed to [] after reading. Just remove the brackets when you add new shit.
+# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog.
+changes:
+ - bugfix: "Fixed cryopods causing an harddel on mobs."