From a87ea29c841634335eea903afcc153029e9a1f64 Mon Sep 17 00:00:00 2001 From: Tkdrg Date: Mon, 28 Dec 2015 01:45:33 -0300 Subject: [PATCH] Adds a "dupe marked datum" option to Game Panel Useful when something bugs out in-game and you want to test it without fucking the original up, or maybe if you want to spam some varedited item quickly. --- code/modules/admin/admin.dm | 5 ++++- code/modules/admin/topic.dm | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 5549ea52383..101029b23e2 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -398,7 +398,10 @@ var/global/floorIsLava = 0 Create Mob
"} - usr << browse(dat, "window=admin2;size=210x180") + if(marked_datum && istype(marked_datum, /atom)) + dat += "Duplicate Marked Datum
" + + usr << browse(dat, "window=admin2;size=210x200") return /////////////////////////////////////////////////////////////////////////////////////////////////admins2.dm merge diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index b0d4ec4622c..875a7beb24f 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -1714,6 +1714,10 @@ if(!check_rights(R_SPAWN)) return return create_mob(usr) + else if(href_list["dupe_marked_datum"]) + if(!check_rights(R_SPAWN)) return + return DuplicateObject(marked_datum, perfectcopy=1, newloc=get_turf(usr)) + else if(href_list["object_list"]) //this is the laggiest thing ever if(!check_rights(R_SPAWN)) return