mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 07:27:57 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user