mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-15 01:46:30 +01:00
Materials subsystem, material defines instead of strings, structure materials. (#8447)
The shitcode crusade begins.
This commit is contained in:
@@ -396,7 +396,7 @@
|
||||
if(can_make % 2 > 0)
|
||||
can_make--
|
||||
|
||||
var/material/M = get_material_by_name(O.compresses_to)
|
||||
var/material/M = SSmaterials.get_material_by_name(O.compresses_to)
|
||||
|
||||
if(!istype(M) || !can_make || ores_stored[metal] < 1)
|
||||
continue
|
||||
@@ -413,7 +413,7 @@
|
||||
else if(ores_processing[metal] == 1 && O.smelts_to) //Smelting.
|
||||
var/can_make = Clamp(ores_stored[metal], 0, sheets_per_tick - sheets)
|
||||
|
||||
var/material/M = get_material_by_name(O.smelts_to)
|
||||
var/material/M = SSmaterials.get_material_by_name(O.smelts_to)
|
||||
if(!istype(M) || !can_make || ores_stored[metal] < 1)
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user