mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-09 16:09:15 +00:00
About The Pull Request Adds cancel buttons to input boxes that didn't have them before. Why It's Good For The Game Good UX. Changelog cl add: More cancel buttons. /cl
14 lines
525 B
Plaintext
14 lines
525 B
Plaintext
/proc/machine_upgrade(obj/machinery/M in world)
|
|
set name = "Tweak Component Ratings"
|
|
set category = "Debug"
|
|
if (!istype(M))
|
|
return
|
|
|
|
var/new_rating = input("Enter new rating:","Num") as num|null
|
|
if(new_rating && M.component_parts)
|
|
for(var/obj/item/stock_parts/P in M.component_parts)
|
|
P.rating = new_rating
|
|
M.RefreshParts()
|
|
|
|
SSblackbox.record_feedback("nested tally", "admin_toggle", 1, list("Machine Upgrade", "[new_rating]")) //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|