R&D Rework PT1 - The network refactor (#26420)

* R&D Rework PT1

* Give robotics access too

* Run prettier

* More lints

* This is INCREDIBLY ironic

* Re-add blacklisting

* Oops

* Review changes

* Some fixes

* Fix outstanding issues

* Warriorstar fixes

* Tiny tweak
This commit is contained in:
AffectedArc07
2024-09-08 16:38:17 +00:00
committed by GitHub
parent e87982e794
commit 03bc64ad13
34 changed files with 1773 additions and 724 deletions
+33 -1
View File
@@ -66,7 +66,8 @@ GLOBAL_LIST_INIT(admin_verbs_admin, list(
/client/proc/start_vote,
/client/proc/ping_all_admins,
/client/proc/show_watchlist,
/client/proc/debugstatpanel
/client/proc/debugstatpanel,
/client/proc/create_rnd_restore_disk
))
GLOBAL_LIST_INIT(admin_verbs_ban, list(
/client/proc/ban_panel,
@@ -1229,3 +1230,34 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list(
vis.set_content(ui_dat.Join(""))
vis.open(FALSE)
/client/proc/create_rnd_restore_disk()
set name = "Create RnD Backup Restore Disk"
set category = "Event" // Im putting this in event because the name is long and will offset everything
if(!check_rights(R_ADMIN))
return
var/list/targets = list()
for(var/rnc_uid in SSresearch.backups)
var/datum/rnd_backup/B = SSresearch.backups[rnc_uid]
targets["[B.last_name] - [B.last_timestamp]"] = rnc_uid
var/choice = input(src, "Select a backup to restore", "RnD Backup Restore") as null|anything in targets
if(!choice || !(choice in targets))
return
var/actual_target = targets[choice]
if(!(actual_target in SSresearch.backups))
return
var/datum/rnd_backup/B = SSresearch.backups[actual_target]
var/confirmation = alert("Are you sure you want to restore this RnD backup? The disk will spawn below your character.", "Are you sure?", "Yes", "No")
if(confirmation != "Yes")
return
B.to_backup_disk(get_turf(usr))