Function socketed_aspect

Source
pub fn socketed_aspect<'a>(
    config: &'a GameConfig,
    collection: &ArtifactCollection,
    socket: ArtifactSocketSlot,
) -> Option<(&'a ArtifactStoneTemplate, i64)>
Expand description

The stone in socket together with its upgrade level, or None when the socket is empty.

A stone whose template vanished from the config (content pulled from under a live collection) is skipped and logged, never fatal — same rule the stone runtime uses.