From a9c25caef335e69144daaefa04acb4b3b2be453f Mon Sep 17 00:00:00 2001 From: Iamgoofball Date: Sat, 6 Jun 2015 18:50:14 -0700 Subject: [PATCH] forgot the new admin debug verb --- code/modules/admin/verbs/machine_upgrade.dm | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 code/modules/admin/verbs/machine_upgrade.dm diff --git a/code/modules/admin/verbs/machine_upgrade.dm b/code/modules/admin/verbs/machine_upgrade.dm new file mode 100644 index 00000000000..9c1089c5fff --- /dev/null +++ b/code/modules/admin/verbs/machine_upgrade.dm @@ -0,0 +1,10 @@ +/proc/machine_upgrade(obj/machinery/M as obj in world) + set name = "Tweak Component Ratings" + set category = "Debug" + var/new_rating = input("Enter new rating:","Num") as num + if(new_rating && M.component_parts) + for(var/obj/item/weapon/stock_parts/P in M.component_parts) + P.rating = new_rating + M.RefreshParts() + + feedback_add_details("admin_verb","MU") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!