From 98ccfc957358f1ddec01979c528babfa47007c49 Mon Sep 17 00:00:00 2001 From: Sensum <121913313+SSensum@users.noreply.github.com> Date: Wed, 6 Mar 2024 07:57:14 +0300 Subject: [PATCH] announce and smoll progress bar --- .../modules/silicon_laws_tweaks/README.md | 3 +++ .../modules/silicon_laws_tweaks/code/upload.dm | 18 ++++++++++++++++++ tgstation.dme | 1 + 3 files changed, 22 insertions(+) create mode 100644 tff_modular/modules/silicon_laws_tweaks/README.md create mode 100644 tff_modular/modules/silicon_laws_tweaks/code/upload.dm diff --git a/tff_modular/modules/silicon_laws_tweaks/README.md b/tff_modular/modules/silicon_laws_tweaks/README.md new file mode 100644 index 00000000000..db6cad58449 --- /dev/null +++ b/tff_modular/modules/silicon_laws_tweaks/README.md @@ -0,0 +1,3 @@ +# Эта папка-модуль создана для изменений связанных с законами для ИИ и киборгов. + +Сюда вы можете добавить кастомные законы, изменения процесса загрузки, а также иные вещи связанные с законами и поведением силиконов. diff --git a/tff_modular/modules/silicon_laws_tweaks/code/upload.dm b/tff_modular/modules/silicon_laws_tweaks/code/upload.dm new file mode 100644 index 00000000000..b21c1fc32e6 --- /dev/null +++ b/tff_modular/modules/silicon_laws_tweaks/code/upload.dm @@ -0,0 +1,18 @@ +/obj/machinery/computer/upload/Initialize(mapload) + . = ..() + if(!mapload && is_station_level(z)) + priority_announce( + text = "We detected a new [name]. \n\ + \n\ + It seems that signal came from [get_area_name(src)]. \n\ + As a reminder, equipment such as [name] can be tracked using GPS device. \n\ + \n\ + Have a secure day.", + sender_override = "Nanotrasen Cyber Security", + color_override = "red") + +/obj/machinery/computer/upload/attackby(obj/item/O, mob/user, params) + if(istype(O, /obj/item/ai_module)) + if(!do_after(user, 6 SECONDS, target = user)) + return FALSE + . = ..() diff --git a/tgstation.dme b/tgstation.dme index 8b909446be8..258f8251407 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -8233,6 +8233,7 @@ #include "tff_modular\modules\redsec_reskins\code\beret_reskin.dm" #include "tff_modular\modules\redsec_reskins\code\hood_reskin.dm" #include "tff_modular\modules\redsec_reskins\code\redsec.dm" +#include "tff_modular\modules\silicon_laws_tweaks\code\upload.dm" #include "tff_modular\modules\smites\femboyfication.dm" #include "tff_modular\modules\teshari_reborn\code\teshari.dm" #include "tff_modular\modules\teshari_reborn\code\teshari_bodypart.dm"