adds maintenance loot debugging

This commit is contained in:
BurgerLUA
2023-06-29 10:48:06 -07:00
parent 4f46acb88d
commit 595279645d
4 changed files with 32 additions and 2 deletions

View File

@@ -257,6 +257,8 @@ GLOBAL_PROTECT(admin_verbs_debug)
/client/proc/reload_interactions, /*SKYRAT EDIT ADDITION*/
/client/proc/test_area_spawner, /*AUTOMAPPER - SKYRAT EDIT ADDITION*/
/client/proc/toggle_liquid_debug, /*SKYRAT EDIT ADDITION*/
/client/proc/debug_maintenance_loot //Bubberstation addition.
)
GLOBAL_LIST_INIT(admin_verbs_possess, list(/proc/possess, GLOBAL_PROC_REF(release)))
GLOBAL_PROTECT(admin_verbs_possess)

View File

@@ -87,7 +87,6 @@ GLOBAL_LIST_INIT(common_loot, list( //common: basic items
/obj/item/stock_parts/cell/high/empty = 25,
/obj/item/stock_parts/cell/lead = 200,
/obj/item/stock_parts/cell/potato = 100,
/obj/item/stock_parts/manipulator = 100,
/obj/item/stock_parts/matter_bin = 100,
/obj/item/stock_parts/micro_laser = 100,
/obj/item/stock_parts/scanning_module = 100,

View File

@@ -0,0 +1,28 @@
/client/proc/debug_maintenance_loot()
set category = "Debug"
set name = "Debug Missing Maintenance Loot"
if(!check_rights(R_DEBUG))
return
var/confirm = input("Are you sure you wish to debug maintenance loot? This process takes up a lot of the server's resources.","Debug Maintenance Loot","Cancel") as null|anything in list("Yes","No","Cancel")
if(confirm != "Yes")
return
log_admin("[key_name(src)] has started debugging maintenance loot.")
var/list/every_single_maintenance_item = list()
for(var/loot_list in GLOB.maintenance_loot)
for(var/loot_object in loot_list)
if(islist(loot_object))
for(var/k in loot_object)
every_single_maintenance_item[k] = TRUE
else
every_single_maintenance_item[loot_object] = TRUE
var/returning_data = "<h1>List of items not present in maintenance loot tables:</h1><br>"
for(var/k in subtypesof(/obj/item/))
if(!every_single_maintenance_item[k])
returning_data = "[returning_data]<br>[k]"
src << browse(returning_data, "window=maintenace_report")
SSblackbox.record_feedback("tally", "admin_verb", 1, "Debug Missing Maintenance Loot") // If you are copy-pasting this, ensure the 4th parameter is unique to the new proc!

View File

@@ -5441,11 +5441,11 @@
#include "interface\interface.dm"
#include "interface\menu.dm"
#include "interface\stylesheet.dm"
#include "interface\skin.dmf"
#include "interface\fonts\fonts_datum.dm"
#include "interface\fonts\grand_9k.dm"
#include "interface\fonts\tiny_unicode.dm"
#include "interface\fonts\vcr_osd_mono.dm"
#include "interface\skin.dmf"
#include "modular_skyrat\master_files\code\_globalvars\configuration.dm"
#include "modular_skyrat\master_files\code\_globalvars\religion.dm"
#include "modular_skyrat\master_files\code\_globalvars\lists\ambience.dm"
@@ -7162,6 +7162,7 @@
#include "modular_zubbers\code\game\objects\items\circuitboards\computer_circuitboards.dm"
#include "modular_zubbers\code\game\objects\items\food\misc.dm"
#include "modular_zubbers\code\modules\_defines.dm"
#include "modular_zubbers\code\modules\admin\verbs\debug.dm"
#include "modular_zubbers\code\modules\asset_cache\assets\arcade.dm"
#include "modular_zubbers\code\modules\clothing\head\helmet.dm"
#include "modular_zubbers\code\modules\clothing\head\jobs.dm"