fix: upgrades parts now effect ore_redemption machine (#21650)

This commit is contained in:
larentoun
2023-07-14 03:56:24 +09:00
committed by GitHub
parent 2ddbf8e6fd
commit ef35a172ee
+7 -12
View File
@@ -135,18 +135,13 @@
return ..()
/obj/machinery/mineral/ore_redemption/RefreshParts()
var/P = 1
var/S = 1
for(var/sp in component_parts)
var/obj/item/stock_parts/SP = sp
if(!istype(SP))
continue
switch(SP.type)
if(/obj/item/stock_parts/micro_laser)
P = BASE_POINT_MULT + (POINT_MULT_ADD_PER_RATING * SP.rating)
if(/obj/item/stock_parts/matter_bin)
S = BASE_SHEET_MULT + (SHEET_MULT_ADD_PER_RATING * SP.rating)
// Manipulators do nothing
var/P = BASE_POINT_MULT
var/S = BASE_SHEET_MULT
for(var/obj/item/stock_parts/micro_laser/M in component_parts)
P += POINT_MULT_ADD_PER_RATING * M.rating
for(var/obj/item/stock_parts/matter_bin/M in component_parts)
S += SHEET_MULT_ADD_PER_RATING * M.rating
// Manipulators do nothing
// Update our values
point_upgrade = P
sheet_per_ore = S