mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Added a button admins can press to motivate mechanics to perform their duties (#27361)
* mechanic motivation collar * now works as internals * add logging * add zlevel check, require 80% charge
This commit is contained in:
@@ -44,6 +44,17 @@ var/datum/subsystem/more_init/SSmore_init
|
||||
S.init_cams()
|
||||
|
||||
init_wizard_apprentice_setups()
|
||||
machinery_rating_cache = cache_machinery_components_rating()
|
||||
|
||||
/proc/cache_machinery_components_rating()
|
||||
var/list/cache = list()
|
||||
for(var/obj/machinery/machine in all_machines)
|
||||
if(!cache[machine.type])
|
||||
var/rating = 0
|
||||
for(var/obj/item/weapon/stock_parts/SP in machine.component_parts)
|
||||
rating += SP.rating
|
||||
cache[machine.type] = rating
|
||||
return cache
|
||||
|
||||
/proc/init_wizard_apprentice_setups()
|
||||
for (var/setup_type in subtypesof(/datum/wizard_apprentice_setup))
|
||||
|
||||
Reference in New Issue
Block a user