mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 12:02:31 +01:00
Bartending Codex
This commit is contained in:
@@ -204,8 +204,7 @@
|
||||
/datum/modular_computer_app_presets/civilian/New()
|
||||
. = ..()
|
||||
program_list += COMPUTER_APP_PRESET_SYSTEM + COMPUTER_APP_PRESET_HORIZON_CIVILIAN
|
||||
program_list += list(/datum/computer_file/program/game/arcade, /datum/computer_file/program/cooking_codex)
|
||||
|
||||
program_list += list(/datum/computer_file/program/game/arcade, /datum/computer_file/program/cooking_codex, /datum/computer_file/program/bartending_codex)
|
||||
|
||||
/datum/modular_computer_app_presets/civilian/janitor
|
||||
name = "janitor"
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/datum/computer_file/program/bartending_codex
|
||||
filename = "barcodex"
|
||||
filedesc = "Bartending Codex"
|
||||
program_icon_state = "generic"
|
||||
program_key_icon_state = "teal_key"
|
||||
extended_desc = "Useful program to view cocktail recipes and how to make them."
|
||||
size = 2
|
||||
required_access_download = null
|
||||
requires_ntnet = FALSE
|
||||
available_on_ntnet = TRUE
|
||||
tgui_id = "ChemCodex"
|
||||
|
||||
/datum/computer_file/program/bartending_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
|
||||
|
||||
// Here goes listification
|
||||
if(!data["reactions"])
|
||||
data["reactions"] = SScodex.bartending_codex_data
|
||||
|
||||
return data
|
||||
Reference in New Issue
Block a user