[MIRROR] Adds a new tool for GMs to create props for events in form of fake PDA conversation logs (#7717)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2
2024-02-11 13:55:00 -07:00
committed by GitHub
parent 25ff4870ab
commit 9b0aa981ff
7 changed files with 127 additions and 2 deletions

View File

@@ -86,6 +86,11 @@
<option value='?_src_=vars;[HrefToken()];emp=\ref[src]'>Trigger EM pulse</option>
"}
/obj/item/device/pda/get_view_variables_options()
return ..() + {"
<option value='?_src_=vars;[HrefToken()];fakepdapropconvo=\ref[src]'>Add Fake Prop Conversation</option>
"}
/datum/proc/get_variables()
. = vars - VV_hidden()
if(!usr || !check_rights(R_ADMIN|R_DEBUG, FALSE))

View File

@@ -274,6 +274,15 @@
return
log_admin("[key_name(usr)] deleted all objects of type or subtype of [O_type] ([i] objects deleted) ")
message_admins("<span class='notice'>[key_name(usr)] deleted all objects of type or subtype of [O_type] ([i] objects deleted) </span>")
else if(href_list["fakepdapropconvo"])
if(!check_rights(R_FUN)) return
var/obj/item/device/pda/P = locate(href_list["fakepdapropconvo"])
if(!istype(P))
to_chat(usr, span_warning("This can only be done to instances of type /pda"))
return
P.createPropFakeConversation_admin(usr)
else if(href_list["rotatedatum"])
if(!check_rights(0)) return