Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

Kēki ❤️ #35

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
73ebde7
Update Chemistry-Recipes.dm
Feb 21, 2020
a85125b
Update Reagents-Misc.dm
Feb 21, 2020
f587c17
Update Chemistry-Recipes.dm
Feb 21, 2020
36675c5
Update Chemistry-Recipes.dm
Feb 21, 2020
06c5de2
Update Reagents-Misc.dm
Feb 21, 2020
6fd910b
Update cakes.dm
Feb 25, 2020
3ae69c9
Update food_and_drink.dm
Feb 25, 2020
161d981
Update cookingrecipes.dm
Feb 25, 2020
233319d
Update bottles.dm
Feb 25, 2020
0d6743b
Update robot_modules.dm
Feb 25, 2020
4c7cb9e
Update cakes.dm
Feb 26, 2020
60ac85c
Update cakes.dm
Feb 29, 2020
ad32186
Update cookingrecipes.dm
Feb 29, 2020
28a8bee
Update cakes.dm
Feb 29, 2020
cec6483
Update .gitignore
ZeWaka Feb 19, 2020
793be4f
Add my missing pull/unpull + context16x16 tools icons
mybluecorners Feb 20, 2020
510dd50
Adds all my changes since Jan1
ZeWaka Feb 20, 2020
7d9bd84
Fix some movedelay checks in human.dm
mybluecorners Feb 20, 2020
80e6c4a
Update Reagents-Misc.dm
Feb 21, 2020
e170abc
Update Reagents-Misc.dm
Feb 21, 2020
84d3f3d
Update Chemistry-Recipes.dm
Feb 21, 2020
94b42e6
Update Reagents-Misc.dm
Feb 21, 2020
045d3f8
Update Chemistry-Recipes.dm
Feb 21, 2020
44cd460
Update Chemistry-Recipes.dm
Feb 21, 2020
54cbc79
Update Reagents-Misc.dm
Feb 21, 2020
d26ee8c
Update cakes.dm
Feb 25, 2020
3bbb710
Update food_and_drink.dm
Feb 25, 2020
93dcbb1
Update cookingrecipes.dm
Feb 25, 2020
129da54
Update bottles.dm
Feb 25, 2020
ffd98b6
Update robot_modules.dm
Feb 25, 2020
10aec7d
Update cakes.dm
Feb 26, 2020
bbf10e5
Update cakes.dm
Feb 29, 2020
ada6be4
Update cookingrecipes.dm
Feb 29, 2020
9547513
Update cakes.dm
Feb 29, 2020
d2f7b39
Update Reagents-Misc.dm
Feb 21, 2020
a4a864d
Update Reagents-Misc.dm
Feb 21, 2020
82f5681
Merge remote-tracking branch 'origin/keki' into keki
Feb 29, 2020
b29878e
Update food_and_drink.dm
Mar 3, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 10 additions & 15 deletions code/datums/cookingrecipes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1193,8 +1193,12 @@

var/obj/item/reagent_containers/food/snacks/S = docakeitem.custom_item
var/obj/item/reagent_containers/food/snacks/cake/custom/B = new /obj/item/reagent_containers/food/snacks/cake/custom(ourCooker)
var/image/overlay = new /image('icons/obj/foodNdrink/food_dessert.dmi',"cake1-overlay")
B.food_color = S ? S.food_color : "#F0F0F0"
B.update_icon(0)
overlay.color = S.food_color
overlay.alpha = 255
B.UpdateOverlays(image(overlay),"base")

if (S)
S.reagents.trans_to(B, 50)
if(S.real_name)
Expand All @@ -1206,7 +1210,11 @@
B.name = "[rand(50) ? "yellow" : "white"] cake"

B.desc = "Mmm! A delicious-looking [B.name]!"
B.food_effects += S.food_effects

for(var/i=1,i<=S.food_effects.len,i++)
if(S.food_effects[i] in B.food_effects)
continue
B.food_effects += S.food_effects[i]
return B


Expand Down Expand Up @@ -1241,19 +1249,6 @@
if (istype(I, item1))
continue
else if (istype(I,/obj/item/reagent_containers/food/snacks/))
/*
var/obj/item/reagent_containers/food/snacks/S = I
var/obj/item/reagent_containers/food/snacks/cake/custom/B = new /obj/item/reagent_containers/food/snacks/cake/custom(src.loc)
B.food_color = S.food_color
B.update_icon(0)
S.reagents.trans_to(B, 50)
if(S.real_name)
B.name = "[S.real_name] cake"

else
B.name = "[S.name] cake"
B.desc = "Mmm! A delicious-looking [B.name]!"
*/
var/obj/item/reagent_containers/food/snacks/cake/batter/batter = new

batter.custom_item = I
Expand Down
2 changes: 1 addition & 1 deletion code/mob/living/silicon/robot/robot_modules.dm
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
// TODO: some sort of nutrient dispenser?
/obj/item/kitchen/utensil/knife/bread,
/obj/item/kitchen/rollingpin/light,
/obj/item/reagent_containers/glass/bottle/icing
/obj/item/reagent_containers/food/drinks/drinkingglass/icing //icing tube path update
// TODO: portable oven
)

Expand Down
12 changes: 2 additions & 10 deletions code/modules/chemistry/Chemistry-Recipes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3883,13 +3883,5 @@ datum
required_reagents = list("ash" = 1, "ectoplasm" = 1, "salt" = 1)
result_amount = 3
mix_phrase = "A strange green goopy liquid forms in the container."









#undef get_fucked_clarks

#undef get_fucked_clarks
9 changes: 0 additions & 9 deletions code/modules/chemistry/tools/bottles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -310,15 +310,6 @@
amount_per_transfer_from_this = 5
rc_flags = RC_FULLNESS

/obj/item/reagent_containers/glass/bottle/icing
name = "icing tube"
desc = "Used to put icing on cakes."
icon = 'icons/obj/food.dmi'
icon_state = "icing_tube"
initial_volume = 50
amount_per_transfer_from_this = 5
rc_flags = RC_FULLNESS

/obj/item/reagent_containers/glass/bottle/holywater
name = "Holy Water"
desc = "A small bottle filled with blessed water."
Expand Down
35 changes: 35 additions & 0 deletions code/modules/chemistry/tools/food_and_drink.dm
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,8 @@
src.update_icon()

proc/update_icon()
if(istype(src, /obj/item/reagent_containers/food/drinks/drinkingglass/icing))
return
if (src.reagents.total_volume <= 0)
icon_state = "glass-[glass_style]"
src.UpdateOverlays(null, "fluid")
Expand Down Expand Up @@ -968,6 +970,8 @@
return

attackby(obj/item/W as obj, mob/user as mob)
if(istype(src, /obj/item/reagent_containers/food/drinks/drinkingglass/icing))
return
if (istype(W, /obj/item/raw_material/ice))
if (src.reagents.total_volume >= (src.reagents.maximum_volume - 5))
if (user.bioHolder.HasEffect("clumsy") && prob(50))
Expand Down Expand Up @@ -1191,6 +1195,12 @@
glass_style = "oldf"
initial_volume = 20

/obj/item/reagent_containers/food/drinks/drinkingglass/round
name = "round glass"
icon_state = "glass-round"
glass_style = "round"
initial_volume = 100

/obj/item/reagent_containers/food/drinks/drinkingglass/wine
name = "wine glass"
icon_state = "glass-wine"
Expand All @@ -1217,6 +1227,31 @@
initial_volume = 120
shard_amt = 2

/obj/item/reagent_containers/food/drinks/drinkingglass/icing //icing tube path and usage update
name = "icing tube"
desc = "Used to put icing on cakes."
icon = 'icons/obj/food.dmi'
icon_state = "icing_tube"
initial_volume = 50
amount_per_transfer_from_this = 5
rc_flags = RC_FULLNESS | RC_VISIBLE | RC_SPECTRO

on_reagent_change()
src.underlays = null
if (reagents.total_volume >= 0)
if(reagents.total_volume == 0)
src.icon_state = "icing_tube"
else
src.icon_state = "icing_tube_2"
var/datum/color/average = reagents.get_average_color()
var/image/chem = new /image('icons/obj/food.dmi',"icing_tube_chem")
chem.color = average.to_rgba()
src.underlays += chem
signal_event("icon_updated")

throw_impact(var/turf/T)
return

/obj/item/reagent_containers/food/drinks/drinkingglass/random_style
rand_pos = 1
New()
Expand Down
Loading