Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service Borger Upri- Kitchen Upgrades #74938

Merged
merged 39 commits into from May 3, 2023
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
b7d6498
Borger uprising
Dawnseer Apr 23, 2023
617b66d
Merge branch 'master' into ServiceBorgUpgrades
Dawnseer Apr 23, 2023
8fd6d5f
empty space n fix
Dawnseer Apr 23, 2023
498cbc6
Merge branch 'ServiceBorgUpgrades' of https://github.com/Dawnseer/tgs…
Dawnseer Apr 23, 2023
1be2dfa
Whoops
Dawnseer Apr 23, 2023
d7ad8fa
Come on now
Dawnseer Apr 23, 2023
bc810b1
Merge branch 'master' into ServiceBorgUpgrades
Dawnseer Apr 24, 2023
56436c6
Merge branch 'master' into ServiceBorgUpgrades
Dawnseer Apr 24, 2023
c838f91
Knifepin, service apparatus
Dawnseer Apr 24, 2023
4468051
Merge branch 'master' into ServiceBorgUpgrades
Dawnseer Apr 24, 2023
e7b0760
service apparatus sprite, oven interaction
Dawnseer Apr 24, 2023
3751061
Merge branch 'ServiceBorgUpgrades' of https://github.com/Dawnseer/tgs…
Dawnseer Apr 24, 2023
a1935aa
silicon knife to kitchen toolset
Dawnseer Apr 24, 2023
3360303
LINT
Dawnseer Apr 24, 2023
7efd4a9
Added papercups to the RSF
Dawnseer Apr 24, 2023
c06b9d2
Whoops
Dawnseer Apr 24, 2023
c9400aa
Merge branch 'master' into ServiceBorgUpgrades
Dawnseer Apr 24, 2023
7f80157
Update hypo.dm
Dawnseer Apr 25, 2023
62dad86
LINT
Dawnseer Apr 25, 2023
e08ca87
Merge branch 'master' into ServiceBorgUpgrades
Dawnseer Apr 25, 2023
6cc9521
Update kitchen.dmi
Dawnseer Apr 28, 2023
6af47c3
Update hypo.dm
Dawnseer Apr 28, 2023
d2328cb
Merge remote-tracking branch 'upstream/master' into ServiceBorgUpgrades
Dawnseer Apr 28, 2023
09bd53f
Merge branch 'master' into ServiceBorgUpgrades
Dawnseer Apr 30, 2023
482106d
AAAAAAAAAAAAA
Dawnseer Apr 30, 2023
3846fd2
Merge branch 'ServiceBorgUpgrades' of https://github.com/Dawnseer/tgs…
Dawnseer Apr 30, 2023
4aac79d
LINT
Dawnseer Apr 30, 2023
76ea2d0
MORE LINT
Dawnseer Apr 30, 2023
5ad47ca
Update kitchen.dm
Dawnseer Apr 30, 2023
2f27b42
Multi-line?
Dawnseer May 1, 2023
66cfa9c
comment
Dawnseer May 1, 2023
d8828e5
Last minute changes
Dawnseer May 1, 2023
7f2e736
Merge branch 'master' into ServiceBorgUpgrades
Dawnseer May 1, 2023
8eed643
More last minute changes
Dawnseer May 1, 2023
cdf160a
Merge branch 'ServiceBorgUpgrades' of https://github.com/Dawnseer/tgs…
Dawnseer May 1, 2023
8e12807
Even more last minute changes.
Dawnseer May 1, 2023
43f03b3
Anything for you
Dawnseer May 2, 2023
a655b5a
Merge branch 'master' into ServiceBorgUpgrades
Dawnseer May 2, 2023
b600a80
Just making it check again
Dawnseer May 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions code/__DEFINES/exosuit_fab.dm
Expand Up @@ -8,6 +8,8 @@
#define BORG_MODEL_MEDICAL (1<<3)
/// Module is compatible with Engineering Cyborg model
#define BORG_MODEL_ENGINEERING (1<<4)
/// Module is compatible with Service Cyborg model
#define BORG_MODEL_SERVICE (1<<5)

/// Module is compatible with Ripley Exosuit models
#define EXOSUIT_MODULE_RIPLEY (1<<0)
Expand Down
1 change: 1 addition & 0 deletions code/__DEFINES/research/research_categories.dm
Expand Up @@ -159,6 +159,7 @@
#define RND_SUBCATEGORY_MECHFAB_CYBORG_MODULES_JANITOR "/Janitorial Cyborgs"
#define RND_SUBCATEGORY_MECHFAB_CYBORG_MODULES_SECURITY "/Security Cyborgs"
#define RND_SUBCATEGORY_MECHFAB_CYBORG_MODULES_MINING "/Mining Cyborgs"
#define RND_SUBCATEGORY_MECHFAB_CYBORG_MODULES_SERVICE "/Service Cyborgs"

#define RND_CATEGORY_MODSUITS "/MOD Suits"
#define RND_SUBCATEGORY_MODUITS_CHASSIS "/Chassis"
Expand Down
2 changes: 1 addition & 1 deletion code/__DEFINES/tools.dm
Expand Up @@ -17,7 +17,7 @@
#define TOOL_BONESET "bonesetter"
#define TOOL_KNIFE "knife"
#define TOOL_BLOODFILTER "bloodfilter"
#define TOOL_ROLLINGPIN "rollingpin"
#define TOOL_ROLLINGPIN "rolling pin"
/// Can be used to scrape rust off an any atom; which will result in the Rust Component being qdel'd
#define TOOL_RUSTSCRAPER "rustscraper"

Expand Down
38 changes: 38 additions & 0 deletions code/game/objects/items/kitchen.dm
Expand Up @@ -102,6 +102,44 @@
. = ..()
AddElement(/datum/element/easily_fragmented, PLASTIC_BREAK_PROBABILITY)

/obj/item/knife/kitchen/silicon
name = "Kitchen Toolset"
icon_state = "sili_knife"
desc = "A breakthrough in synthetic engineering, this tool is a knife programmed to dull when not used for cooking purposes, and can exchange the blade for a rolling pin"
force = 0
throwforce = 0
sharpness = SHARP_EDGED
hitsound = 'sound/weapons/bladeslice.ogg'
attack_verb_continuous = list("prods", "whiffs", "scratches", "pokes")
attack_verb_simple = list("prod", "whiff", "scratch", "poke")
tool_behaviour = TOOL_KNIFE

/obj/item/knife/kitchen/silicon/examine()
. = ..()
. += " It's fitted with a [tool_behaviour] head."

/obj/item/knife/kitchen/silicon/attack_self(mob/user)
playsound(get_turf(user), 'sound/items/change_drill.ogg', 50, TRUE)
if(tool_behaviour != TOOL_ROLLINGPIN)
tool_behaviour = TOOL_ROLLINGPIN
to_chat(user, span_notice("You attach the rolling pin bit to the [src]."))
icon_state = "sili_rolling_pin"
force = 8
sharpness = NONE
hitsound = SFX_SWING_HIT
attack_verb_continuous = list("bashes", "batters", "bludgeons", "thrashes", "whacks")
attack_verb_simple = list("bash", "batter", "bludgeon", "thrash", "whack")

else
tool_behaviour = TOOL_KNIFE
to_chat(user, span_notice("You attach the knife bit to the [src]."))
icon_state = "sili_knife"
force = 0
sharpness = SHARP_EDGED
hitsound = 'sound/weapons/bladeslice.ogg'
attack_verb_continuous = list("prods", "whiffs", "scratches", "pokes")
attack_verb_simple = list("prod", "whiff", "scratch", "poke")

/obj/item/kitchen/rollingpin
name = "rolling pin"
desc = "Used to knock out the Bartender."
Expand Down
20 changes: 14 additions & 6 deletions code/game/objects/items/rcd/RSF.dm
Expand Up @@ -31,12 +31,20 @@ RSF
var/dispense_cost = 0
w_class = WEIGHT_CLASS_NORMAL
///An associated list of atoms and charge costs. This can contain a separate list, as long as it's associated item is an object
var/list/cost_by_item = list(/obj/item/reagent_containers/cup/glass/drinkingglass = 20,
/obj/item/paper = 10,
/obj/item/storage/dice = 200,
/obj/item/pen = 50,
/obj/item/clothing/mask/cigarette = 10,
)
var/list/cost_by_item = list(
/obj/item/reagent_containers/cup/glass/drinkingglass = 20,
/obj/item/reagent_containers/cup/glass/sillycup = 10,
/obj/item/paper = 10,
/obj/item/storage/dice = 200,
/obj/item/toy/cards/deck = 200,
/obj/item/pen = 50,
/obj/item/clothing/mask/cigarette = 10,
/obj/item/plate = 70,
/obj/item/reagent_containers/cup/bowl = 70,
/obj/item/kitchen/fork/plastic = 30,
/obj/item/knife/plastic = 30,
/obj/item/kitchen/spoon/plastic = 30,
)
///An associated list of fuel and it's value
var/list/matter_by_item = list(/obj/item/rcd_ammo = 10,)
///A list of surfaces that we are allowed to place things on.
Expand Down
100 changes: 89 additions & 11 deletions code/game/objects/items/robot/items/hypo.dm
Expand Up @@ -52,23 +52,37 @@
/datum/reagent/medicine/syndicate_nanites\
)
#define BASE_SERVICE_REAGENTS list(/datum/reagent/consumable/applejuice, /datum/reagent/consumable/banana,\
/datum/reagent/consumable/coffee, /datum/reagent/consumable/cream, /datum/reagent/consumable/dr_gibb,\
/datum/reagent/consumable/grenadine, /datum/reagent/consumable/ice, /datum/reagent/consumable/lemonjuice,\
/datum/reagent/consumable/lemon_lime, /datum/reagent/consumable/limejuice, /datum/reagent/consumable/menthol,\
/datum/reagent/consumable/milk, /datum/reagent/consumable/nothing, /datum/reagent/consumable/orangejuice,\
/datum/reagent/consumable/peachjuice, /datum/reagent/consumable/pineapplejuice,\
/datum/reagent/consumable/pwr_game, /datum/reagent/consumable/shamblers, /datum/reagent/consumable/sodawater,\
/datum/reagent/consumable/sol_dry, /datum/reagent/consumable/soymilk, /datum/reagent/consumable/space_cola,\
/datum/reagent/consumable/spacemountainwind, /datum/reagent/consumable/space_up, /datum/reagent/consumable/sugar,\
/datum/reagent/consumable/berryjuice, /datum/reagent/consumable/cherryjelly, /datum/reagent/consumable/coffee,\
/datum/reagent/consumable/cream, /datum/reagent/consumable/dr_gibb, /datum/reagent/consumable/grenadine,\
/datum/reagent/consumable/ice, /datum/reagent/consumable/lemon_lime, /datum/reagent/consumable/limejuice,\
/datum/reagent/consumable/lemonjuice, /datum/reagent/consumable/menthol, /datum/reagent/consumable/nothing,\
/datum/reagent/consumable/milk, /datum/reagent/consumable/orangejuice, /datum/reagent/consumable/peachjuice,\
/datum/reagent/consumable/pineapplejuice, /datum/reagent/consumable/pwr_game, /datum/reagent/consumable/shamblers,\
/datum/reagent/consumable/sodawater, /datum/reagent/consumable/sol_dry, /datum/reagent/consumable/soymilk,\
/datum/reagent/consumable/space_cola, /datum/reagent/consumable/spacemountainwind, /datum/reagent/consumable/space_up,\
/datum/reagent/consumable/tea, /datum/reagent/consumable/tomatojuice, /datum/reagent/consumable/tonic,\
/datum/reagent/water,\
/datum/reagent/consumable/vinegar, /datum/reagent/water,\
/datum/reagent/consumable/ethanol/ale, /datum/reagent/consumable/ethanol/applejack, /datum/reagent/consumable/ethanol/beer,\
/datum/reagent/consumable/ethanol/champagne, /datum/reagent/consumable/ethanol/cognac, /datum/reagent/consumable/ethanol/creme_de_coconut,\
/datum/reagent/consumable/ethanol/creme_de_cacao, /datum/reagent/consumable/ethanol/creme_de_menthe, /datum/reagent/consumable/ethanol/gin,\
/datum/reagent/consumable/ethanol/kahlua, /datum/reagent/consumable/ethanol/rum, /datum/reagent/consumable/ethanol/sake,\
/datum/reagent/consumable/ethanol/tequila, /datum/reagent/consumable/ethanol/triple_sec, /datum/reagent/consumable/ethanol/vermouth,\
/datum/reagent/consumable/ethanol/vodka, /datum/reagent/consumable/ethanol/whiskey, /datum/reagent/consumable/ethanol/wine\
)
#define EXPANDED_SERVICE_REAGENTS list(\
/datum/reagent/consumable/blackpepper,\
/datum/reagent/consumable/coco,\
/datum/reagent/consumable/cornmeal,\
/datum/reagent/consumable/cornoil,\
/datum/reagent/consumable/corn_starch,\
/datum/reagent/consumable/eggwhite,\
/datum/reagent/consumable/eggyolk,\
/datum/reagent/consumable/flour,\
/datum/reagent/consumable/rice,\
/datum/reagent/consumable/sugar,\
/datum/reagent/consumable/salt,\
/datum/reagent/consumable/vanilla,\
)
#define HACKED_SERVICE_REAGENTS list(\
/datum/reagent/toxin/fakebeer,\
/datum/reagent/consumable/ethanol/fernet\
Expand Down Expand Up @@ -215,7 +229,6 @@
if(reagent.name == action)
selected_reagent = reagent
. = TRUE

var/mob/living/silicon/robot/cyborg = loc
if(istype(loc, /obj/item/robot_model))
var/obj/item/robot_model/container_model = loc
Expand Down Expand Up @@ -310,6 +323,7 @@
recharge_time = 3
dispensed_temperature = WATER_MATTERSTATE_CHANGE_TEMP //Water stays wet, ice stays ice
default_reagent_types = BASE_SERVICE_REAGENTS
expanded_reagent_types = EXPANDED_SERVICE_REAGENTS

/obj/item/reagent_containers/borghypo/borgshaker/ui_interact(mob/user, datum/tgui/ui)
ui = SStgui.try_update_ui(user, src, ui)
Expand All @@ -320,7 +334,6 @@
/obj/item/reagent_containers/borghypo/borgshaker/ui_data(mob/user)
var/list/drink_reagents = list()
var/list/alcohol_reagents = list()

for(var/datum/reagent/reagent in stored_reagents.reagent_list)
// Split the reagents into alcoholic/non-alcoholic
if(istype(reagent, /datum/reagent/consumable/ethanol))
Expand Down Expand Up @@ -370,6 +383,70 @@
shaker.trans_to(target, amount_per_transfer_from_this, transfered_by = user)
balloon_alert(user, "[amount_per_transfer_from_this] unit\s poured")
return .

/obj/item/reagent_containers/borghypo/condiment_synthesizer // Solids! Condiments! The borger uprising!
name = "Condiment Synthesizer"
desc = "An advanced condiment synthesizer"
icon = 'icons/obj/food/containers.dmi'
icon_state = "flour"
possible_transfer_amounts = list(5,10,20)
// Lots of reagents all regenerating at once, so the charge cost is lower. They also regenerate faster.
charge_cost = 40 //Costs double the power of the borgshaker due to synthesizing solids
recharge_time = 6 //Double the recharge time too, for the same reason.
dispensed_temperature = WATER_MATTERSTATE_CHANGE_TEMP
default_reagent_types = EXPANDED_SERVICE_REAGENTS

/obj/item/reagent_containers/borghypo/condiment_synthesizer/ui_interact(mob/user, datum/tgui/ui)
ui = SStgui.try_update_ui(user, src, ui)
if(!ui)
ui = new(user, src, "BorgHypo", name)
ui.open()

/obj/item/reagent_containers/borghypo/condiment_synthesizer/ui_data(mob/user)
var/list/condiments = list()
for(var/datum/reagent/reagent in stored_reagents.reagent_list)
if(reagent)
condiments.Add(list(list(
"name" = reagent.name,
"volume" = round(reagent.volume, 0.01) - 1,
"description" = reagent.description,
))) // list in a list because Byond merges the first list...

var/data = list()
data["theme"] = tgui_theme
data["minVolume"] = amount_per_transfer_from_this
data["maxVolume"] = max_volume_per_reagent
data["reagents"] = condiments
data["selectedReagent"] = selected_reagent?.name
return data

/obj/item/reagent_containers/borghypo/condiment_synthesizer/attack(mob/M, mob/user)
return

/obj/item/reagent_containers/borghypo/condiment_synthesizer/afterattack(obj/target, mob/user, proximity)
. = ..()
if(!proximity)
return .
if(!selected_reagent)
balloon_alert(user, "no reagent selected!")
return .
. |= AFTERATTACK_PROCESSED_ITEM
if(!target.is_refillable())
return .
if(!stored_reagents.has_reagent(selected_reagent.type, amount_per_transfer_from_this))
balloon_alert(user, "not enough [selected_reagent.name]!")
return .
if(target.reagents.total_volume >= target.reagents.maximum_volume)
balloon_alert(user, "[target] is full!")
return .
// This is the in-between where we're storing the reagent we're going to pour into the container
// because we cannot specify a singular reagent to transfer in trans_to
var/datum/reagents/shaker = new()
stored_reagents.remove_reagent(selected_reagent.type, amount_per_transfer_from_this)
shaker.add_reagent(selected_reagent.type, amount_per_transfer_from_this, reagtemp = dispensed_temperature, no_react = TRUE)
shaker.trans_to(target, amount_per_transfer_from_this, transfered_by = user)
balloon_alert(user, "[amount_per_transfer_from_this] unit\s poured")


/obj/item/reagent_containers/borghypo/borgshaker/hacked
name = "cyborg shaker"
Expand All @@ -389,4 +466,5 @@
#undef HACKED_CLOWN_REAGENTS
#undef BASE_SYNDICATE_REAGENTS
#undef BASE_SERVICE_REAGENTS
#undef EXPANDED_SERVICE_REAGENTS
#undef HACKED_SERVICE_REAGENTS
32 changes: 32 additions & 0 deletions code/game/objects/items/robot/items/storage.dm
Expand Up @@ -300,3 +300,35 @@
if(istype(atom, /obj/item/ai_module) && !stored) //If an admin wants a borg to upload laws, who am I to stop them? Otherwise, we can hint that it fails
to_chat(user, span_warning("This circuit board doesn't seem to have standard robot apparatus pin holes. You're unable to pick it up."))
return ..()

/obj/item/borg/apparatus/service
name = "Service apparatus"
desc = "A special apparatus for carrying food, oven trays and paper"
icon_state = "borg_service_apparatus"
storable = list(/obj/item/food,
/obj/item/paper,
/obj/item/plate/oven_tray)

/obj/item/borg/apparatus/service/Initialize(mapload)
update_appearance()
return ..()

/obj/item/borg/apparatus/service/update_overlays()
. = ..()
var/mutable_appearance/arm = mutable_appearance(icon, "borg_hardware_apparatus_arm1")
if(stored)
stored.pixel_x = -3
stored.pixel_y = 0
if((!istype(stored, /obj/item/plate/oven_tray)) || (!istype(stored, /obj/item/food)))
arm.icon_state = "borg_hardware_apparatus_arm2"
var/mutable_appearance/stored_copy = new /mutable_appearance(stored)
stored_copy.layer = FLOAT_LAYER
stored_copy.plane = FLOAT_PLANE
. += stored_copy
. += arm

/obj/item/borg/apparatus/service/examine()
. = ..()
if(stored)
. += "The apparatus currently has [stored] secured."
. += span_notice("<i>Alt-click</i> will drop the currently secured item.")