Adds Bartending Codex & Chem Codex touch-up (#22860)

Title

Also touches up the Chem Codex, by having catalysts, inhibitors and
temperature show up only if used by the reaction.
This should reduce a lot of dead space and info.
<img width="844" height="1033" alt="image"
src="https://github.com/user-attachments/assets/bb78c2a3-e9e4-4b95-9a86-64f2d14c8d8e"
/>
This commit is contained in:
Wowzewow (Wezzy)
2026-07-25 13:03:34 +00:00
committed by GitHub
parent c8fe437d94
commit 2c91c8bba4
10 changed files with 173 additions and 49 deletions
@@ -20,10 +20,16 @@
/obj/item/modular_computer/handheld/preset/civilian
_app_preset_type = /datum/modular_computer_app_presets/civilian
/obj/item/modular_computer/handheld/preset/civilian/bartender
_app_preset_type = /datum/modular_computer_app_presets/civilian/bartender
/obj/item/modular_computer/handheld/preset/civilian/bartender/Initialize()
. = ..()
card_slot.stored_item = new /obj/item/pen/fountain
/obj/item/modular_computer/handheld/preset/civilian/chef
_app_preset_type = /datum/modular_computer_app_presets/civilian/chef
/obj/item/modular_computer/handheld/preset/civilian/librarian/Initialize()
. = ..()
card_slot.stored_item = new /obj/item/pen/fountain
@@ -18,10 +18,16 @@
/obj/item/modular_computer/handheld/pda/civilian
_app_preset_type = /datum/modular_computer_app_presets/civilian
/obj/item/modular_computer/handheld/pda/civilian/bartender
_app_preset_type = /datum/modular_computer_app_presets/civilian/bartender
/obj/item/modular_computer/handheld/pda/civilian/bartender/Initialize()
. = ..()
card_slot.stored_item = new /obj/item/pen/fountain
/obj/item/modular_computer/handheld/pda/civilian/chef
_app_preset_type = /datum/modular_computer_app_presets/civilian/chef
/obj/item/modular_computer/handheld/pda/civilian/librarian
icon_add = "libb"
@@ -115,10 +115,16 @@
/obj/item/modular_computer/handheld/wristbound/preset/pda/civilian
_app_preset_type = /datum/modular_computer_app_presets/civilian
/obj/item/modular_computer/handheld/wristbound/preset/pda/civilian/bartender
_app_preset_type = /datum/modular_computer_app_presets/civilian/bartender
/obj/item/modular_computer/handheld/wristbound/preset/pda/civilian/bartender/Initialize()
. = ..()
card_slot.stored_item = new /obj/item/pen/fountain
/obj/item/modular_computer/handheld/wristbound/preset/pda/civilian/chef
_app_preset_type = /datum/modular_computer_app_presets/civilian/chef
/obj/item/modular_computer/handheld/wristbound/preset/pda/civilian/librarian/Initialize()
. = ..()
card_slot.stored_item = new /obj/item/pen/fountain
@@ -204,8 +204,25 @@
/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 += /datum/computer_file/program/game/arcade
/datum/modular_computer_app_presets/civilian/bartender
name = "bartender"
display_name = "Bartender"
description = "Contains programs for bartenders."
/datum/modular_computer_app_presets/civilian/bartender/New()
. = ..()
program_list += /datum/computer_file/program/bartending_codex
/datum/modular_computer_app_presets/civilian/chef
name = "chef"
display_name = "Chef"
description = "Contains programs for chefs."
/datum/modular_computer_app_presets/civilian/chef/New()
. = ..()
program_list += /datum/computer_file/program/cooking_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