Update cooking_machine.dm (#29163)

Changes the logic to calculate the average of the machine parts rating, rather than just their sum
This commit is contained in:
MKardinal
2025-05-22 18:50:57 +00:00
committed by GitHub
parent 9329d265ab
commit 0d2493bb98
@@ -60,9 +60,11 @@ RESTRICT_TYPE(/obj/machinery/cooking)
/obj/machinery/cooking/RefreshParts()
. = ..()
var/man_rating = 0
var/part_count = 0
for(var/obj/item/stock_parts/stock_part in component_parts)
man_rating += stock_part.rating
quality_mod = round(man_rating / 2)
part_count++
quality_mod = floor(man_rating / part_count)
/// Retrieve which burning surface on the machine is being accessed.
/obj/machinery/cooking/proc/clickpos_to_surface(modifiers)