mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-23 07:56:40 +01:00
tgui reagent guidebook & tgui updates (#6161)
Co-authored-by: silicons <no@you.cat>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
//* This file is explicitly licensed under the MIT license. *//
|
||||
//* Copyright (c) 2023 Citadel Station developers. *//
|
||||
|
||||
/datum/prototype/guidebook_section/reagents
|
||||
title = "Reagents"
|
||||
id = "reagents"
|
||||
tgui_module = "TGUIGuidebookReagents"
|
||||
|
||||
/datum/prototype/guidebook_section/reagents/section_data()
|
||||
. = ..()
|
||||
var/list/reagents = list()
|
||||
var/list/reactions = list()
|
||||
for(var/id in SSchemistry.reagent_lookup)
|
||||
var/datum/reagent/reagent = SSchemistry.reagent_lookup[id]
|
||||
reagents[id] = reagent.tgui_guidebook_data()
|
||||
for(var/datum/chemical_reaction/reaction as anything in SSchemistry.chemical_reactions)
|
||||
reactions[reaction.id || "[reaction.name]" || "[reaction.type]"] = reaction.tgui_guidebook_data()
|
||||
.["reagents"] = reagents
|
||||
.["reactions"] = reactions
|
||||
Reference in New Issue
Block a user