adds: gm tool for creating prop pdas convo for events

* Creates new proc in pda/messenger.dm to handle fake conversation creation
* Creates new eventkit datum and holder var on client for remembering identitities
* Creates new proc as eventkit R_FUN verb for managing prop identities
* Creates new proc on pda to create a fake event prop conversation in new eventkit
* Creates new topic in admin/view_variables/topic.dm and helper.dm to call new proc on pda
This commit is contained in:
Runa Dacino
2024-02-08 16:08:18 +01:00
parent 6237d0a6a2
commit e3f3e416b8
7 changed files with 128 additions and 3 deletions
+2 -1
View File
@@ -173,7 +173,8 @@ var/list/admin_verbs_fun = list(
/client/proc/narrate_mob, //VOREStation Add
/client/proc/narrate_mob_args, //VOREStation Add
/client/proc/getPlayerStatus, //VORESTation Add
/client/proc/manage_event_triggers
/client/proc/manage_event_triggers,
/client/proc/fake_pdaconvos
)
@@ -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))
@@ -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