mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
fix: upgrades parts now effect ore_redemption machine (#21650)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user