mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
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:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user