mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] Finish Machinery new to init (#10439)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
23d8f3fc97
commit
c844cc3dee
@@ -73,11 +73,7 @@ var/global/list/obj/machinery/message_server/message_servers = list()
|
||||
var/datum/looping_sound/tcomms/soundloop // CHOMPStation Add: Hummy noises
|
||||
var/noisy = FALSE // CHOMPStation Add: Hummy noises
|
||||
|
||||
/obj/machinery/message_server/New()
|
||||
message_servers += src
|
||||
decryptkey = GenerateKey()
|
||||
send_pda_message("System Administrator", "system", "This is an automated message. The messaging system is functioning correctly.")
|
||||
|
||||
/obj/machinery/message_server/Initialize(mapload)
|
||||
// CHOMPAdd: PDA Messaging Server humming
|
||||
soundloop = new(list(src), FALSE)
|
||||
if(prob(60)) // 60% chance to change the midloop
|
||||
@@ -91,14 +87,15 @@ var/global/list/obj/machinery/message_server/message_servers = list()
|
||||
soundloop.mid_sounds = list('sound/machines/tcomms/tcomms_04.ogg' = 1)
|
||||
soundloop.mid_length = 30
|
||||
// CHOMPAdd End
|
||||
..()
|
||||
return
|
||||
. = ..()
|
||||
message_servers += src
|
||||
decryptkey = GenerateKey()
|
||||
send_pda_message("System Administrator", "system", "This is an automated message. The messaging system is functioning correctly.")
|
||||
|
||||
/obj/machinery/message_server/Destroy()
|
||||
message_servers -= src
|
||||
QDEL_NULL(soundloop) // CHOMPStation Add: Hummy noises
|
||||
..()
|
||||
return
|
||||
return ..()
|
||||
|
||||
/obj/machinery/message_server/examine(mob/user, distance, infix, suffix)
|
||||
. = ..()
|
||||
@@ -286,10 +283,11 @@ var/obj/machinery/blackbox_recorder/blackbox
|
||||
var/list/datum/feedback_variable/feedback = new()
|
||||
|
||||
//Only one can exist in the world!
|
||||
/obj/machinery/blackbox_recorder/New()
|
||||
/obj/machinery/blackbox_recorder/Initialize(mapload)
|
||||
. = ..()
|
||||
if(blackbox)
|
||||
if(istype(blackbox,/obj/machinery/blackbox_recorder))
|
||||
qdel(src)
|
||||
return INITIALIZE_HINT_QDEL
|
||||
blackbox = src
|
||||
|
||||
/obj/machinery/blackbox_recorder/Destroy()
|
||||
|
||||
@@ -111,8 +111,8 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
||||
C.files.AddDesign2Known(D)
|
||||
C.files.RefreshResearch()
|
||||
|
||||
/obj/machinery/computer/rdconsole/New()
|
||||
..()
|
||||
/obj/machinery/computer/rdconsole/Initialize(mapload)
|
||||
. = ..()
|
||||
files = new /datum/research(src) //Setup the research data holder.
|
||||
if(!id)
|
||||
for(var/obj/machinery/r_n_d/server/centcom/S in machines)
|
||||
|
||||
Reference in New Issue
Block a user