[MIRROR] Use a common list for acceptable silo materials (#26817)

* Use a common list for acceptable silo materials (#81790)

## About The Pull Request
This list containing the same material values was copy pasted all over.
It's already cached in the subsystem so let's just use that.

Renamed ore category into silo category.

## Changelog
🆑
code: Use a common list for acceptable silo materials for some stuff.
Renamed ore category into silo category.
/🆑

* Use a common list for acceptable silo materials

---------

Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-03-09 20:26:24 +01:00
committed by GitHub
parent e04cd7d8bb
commit 9079534cf1
7 changed files with 27 additions and 85 deletions
+2 -13
View File
@@ -147,21 +147,10 @@
/obj/machinery/mineral/processing_unit/Initialize(mapload)
. = ..()
proximity_monitor = new(src, 1)
var/list/allowed_materials = list(
/datum/material/iron,
/datum/material/glass,
/datum/material/silver,
/datum/material/gold,
/datum/material/diamond,
/datum/material/plasma,
/datum/material/uranium,
/datum/material/bananium,
/datum/material/titanium,
/datum/material/bluespace,
)
materials = AddComponent( \
/datum/component/material_container, \
allowed_materials, \
SSmaterials.materials_by_category[MAT_CATEGORY_SILO], \
INFINITY, \
MATCONTAINER_EXAMINE, \
allowed_items = /obj/item/stack \