pub fn get_item_by_code<'a>(
config: &'a GameConfig,
lookups: &ContentLookups,
code: i64,
) -> Option<&'a ItemTemplate>Expand description
Native port of content::get_item_by_code(code): find the item template
whose next_mimic_item_code equals code, via
ContentLookups::item_id_by_mimic_code (built at init from
ItemTemplate::next_mimic_item_code). Returns the matching config
returns the content_raw item map (the chest script then reads item.id).