Cooking Codex (#18220)

* hmm

* cooking

* need a medic bag

* a

* cc

* a

* huh

* k

* oops

* Update codex.dm

* hmm

* ahhhhhhhh

* tests rerun please

---------

Co-authored-by: DreamySkrell <>
This commit is contained in:
DreamySkrell
2024-01-30 10:56:57 +00:00
committed by GitHub
co-authored by DreamySkrell <>
parent 110b1d67b6
commit 45390466f7
15 changed files with 305 additions and 62 deletions
@@ -243,6 +243,7 @@
COMPUTER_APP_PRESET_SYSTEM,
COMPUTER_APP_PRESET_HORIZON_CIVILIAN,
new /datum/computer_file/program/game/arcade(comp),
new /datum/computer_file/program/cooking_codex(comp),
)
return flatten_list(_prg_list)
@@ -0,0 +1,25 @@
/datum/computer_file/program/cooking_codex
filename = "cookcodex"
filedesc = "Cooking Codex"
program_icon_state = "generic"
program_key_icon_state = "teal_key"
extended_desc = "Useful program to view cooking recipes."
size = 2
required_access_download = null
requires_ntnet = FALSE
available_on_ntnet = TRUE
tgui_id = "CookingCodex"
/datum/computer_file/program/cooking_codex/ui_data(mob/user)
var/list/data = list()
// Gather data for computer header
var/headerdata = get_header_data(data["_PC"])
if(headerdata)
data["_PC"] = headerdata
. = data
return data
/datum/computer_file/program/cooking_codex/ui_static_data(mob/user)
var/list/data = list()
data["recipes"] = SScodex.cooking_codex_data
return data
@@ -21,6 +21,6 @@
// Here goes listification
if(!data["reactions"])
data["reactions"] = SSchemistry.codex_data
data["reactions"] = SScodex.chemistry_codex_data
return data