Skip to content

Commit

Permalink
announce and smoll progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
SSensum committed Mar 6, 2024
1 parent fb246f4 commit 98ccfc9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tff_modular/modules/silicon_laws_tweaks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Эта папка-модуль создана для изменений связанных с законами для ИИ и киборгов.

Сюда вы можете добавить кастомные законы, изменения процесса загрузки, а также иные вещи связанные с законами и поведением силиконов.
18 changes: 18 additions & 0 deletions tff_modular/modules/silicon_laws_tweaks/code/upload.dm
Original file line number Diff line number Diff line change
@@ -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
. = ..()
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 98ccfc9

Please sign in to comment.