Merge pull request #33320 from AutomaticFrenzy/patch/component-ratings
Fix runtimes using Tweak Component Ratings on non-machines
This commit is contained in:
committed by
CitadelStationBot
parent
e18457f92e
commit
38da8cb545
@@ -1,6 +1,9 @@
|
||||
/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
|
||||
if(new_rating && M.component_parts)
|
||||
for(var/obj/item/stock_parts/P in M.component_parts)
|
||||
|
||||
Reference in New Issue
Block a user