Fix smith machine sheet values (#28915)

This commit is contained in:
datlo
2025-04-15 15:00:35 +00:00
committed by GitHub
parent 597b297ea6
commit e3accaea35
5 changed files with 19 additions and 13 deletions
@@ -51,9 +51,9 @@
return TRUE
/obj/machinery/magma_crucible/RefreshParts()
var/sheet_mult = BASE_SHEET_MULT
var/sheet_mult = SMITHING_BASE_SHEET_MULT
for(var/obj/item/stock_parts/micro_laser/component in component_parts)
sheet_mult += SHEET_MULT_ADD_PER_RATING * component.rating
sheet_mult += SMITHING_SHEET_MULT_ADD_PER_RATING * component.rating
// Update our values
sheet_per_ore = sheet_mult
@@ -58,9 +58,9 @@
update_icon(UPDATE_OVERLAYS)
/obj/machinery/mineral/smart_hopper/RefreshParts()
var/point_mult = BASE_POINT_MULT
var/point_mult = SMITHING_BASE_POINT_MULT
for(var/obj/item/stock_parts/component in component_parts)
point_mult += POINT_MULT_ADD_PER_RATING * component.rating
point_mult += SMITHING_POINT_MULT_ADD_PER_RATING * component.rating
// Update our values
point_upgrade = point_mult
SStgui.update_uis(src)