mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 16:10:02 +01:00
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:
co-authored by
DreamySkrell <>
parent
110b1d67b6
commit
45390466f7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user