Skip to content

Commit

Permalink
LETS GO GAMBLING
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwertytoforty committed Sep 10, 2024
1 parent 7555aef commit 192e90a
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _maps/map_files/stations/boxstation.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -21998,7 +21998,7 @@
},
/area/station/service/hydroponics)
"bpW" = (
/obj/machinery/smartfridge,
/obj/machinery/smartfridge/food/chef,
/turf/simulated/floor/plating,
/area/station/service/hydroponics)
"bpX" = (
Expand Down
5 changes: 1 addition & 4 deletions _maps/map_files/stations/cerestation.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -41339,10 +41339,7 @@
},
/area/station/command/vault)
"gNy" = (
/obj/machinery/smartfridge/secure{
name = "\improper Kitchen Delivery SmartFridge";
req_one_access_txt = "28;35"
},
/obj/machinery/smartfridge/food/chef,
/obj/machinery/door/firedoor,
/turf/simulated/floor/plasteel{
icon_state = "neutralfull"
Expand Down
2 changes: 1 addition & 1 deletion _maps/map_files/stations/deltastation.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -18969,7 +18969,6 @@
},
/area/station/hallway/primary/fore/south)
"bhH" = (
/obj/machinery/smartfridge,
/obj/effect/mapping_helpers/airlock/windoor/access/all/service/hydroponics{
dir = 8
},
Expand All @@ -18980,6 +18979,7 @@
/obj/effect/mapping_helpers/airlock/windoor/access/any/service/kitchen{
dir = 8
},
/obj/machinery/smartfridge/food/chef,
/turf/simulated/floor/plasteel,
/area/station/service/kitchen)
"bhI" = (
Expand Down
2 changes: 1 addition & 1 deletion _maps/map_files/stations/metastation.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -89199,7 +89199,7 @@
/turf/space,
/area/space/nearstation)
"wPS" = (
/obj/machinery/smartfridge,
/obj/machinery/smartfridge/food/chef,
/obj/machinery/door/window/classic/normal{
name = "Anti-Theft Shield";
dir = 1
Expand Down
84 changes: 84 additions & 0 deletions code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,90 @@
/obj/item/reagent_containers/drinks/bottle/kahlua = 1,
/obj/item/reagent_containers/drinks/bottle/orangejuice = 2)

///The Chefs smartfridge. This smartfridge will spawn with a random condiment, then 3 stacks of 3 plants (or fish meat) to give chef some extra starting variety, or new ideas on what to cook!
/obj/machinery/smartfridge/food/chef

/obj/machinery/smartfridge/food/chef/Initialize(mapload)
starting_items = generate_starting_items()
. = ..()
accepted_items_typecache = accepted_items_typecache = typecacheof(list(
/obj/item/food,
/obj/item/seeds,
/obj/item/grown))

/obj/machinery/smartfridge/food/chef/proc/generate_starting_items()
// These plants are blocked for being inedable, downright toxic, RND plants, botany plants, or wheat.
var/list/static/forbidden_plants = list(/obj/item/food/grown/wheat,
/obj/item/food/grown/meatwheat,
/obj/item/food/grown/shell/gatfruit,
/obj/item/food/grown/apple/poisoned,
/obj/item/food/grown/cherry_bomb,
/obj/item/food/grown/firelemon,
/obj/item/food/grown/ambrosia/gaia,
/obj/item/food/grown/mushroom/glowshroom,
/obj/item/food/grown/mushroom/glowshroom/glowcap,
/obj/item/food/grown/mushroom/glowshroom/shadowshroom,
/obj/item/food/grown/cannabis, // I don't care about weed pizza, sorry.
/obj/item/food/grown/cannabis/rainbow,
/obj/item/food/grown/cannabis/death,
/obj/item/food/grown/cannabis/white,
/obj/item/food/grown/cannabis/ultimate,
/obj/item/food/grown/tobacco,
/obj/item/food/grown/pumpkin/blumpkin,
/obj/item/food/grown/berries/poison,
/obj/item/food/grown/berries/death,
/obj/item/food/grown/berries/glow,
/obj/item/food/grown/comfrey,
/obj/item/food/grown/aloe,
/obj/item/food/grown/kudzupod,
/obj/item/food/grown/holymelon, // Lets not out vampires or cult by accident thanks
/obj/item/food/grown/mushroom/reishi, // I would block out Amanita but it has 2 recipies, might be funny.
/obj/item/food/grown/mushroom/angel,
/obj/item/food/grown/random,
/obj/item/food/grown/tea,
/obj/item/food/grown/tea/astra,
/obj/item/food/grown/coffee,
/obj/item/food/grown/coffee/robusta,
/obj/item/food/grown/grass,
/obj/item/food/grown/grass/carpet,
/obj/item/food/grown/harebell,
/obj/item/food/grown/poppy,
/obj/item/food/grown/lily,
/obj/item/food/grown/geranium,
/obj/item/food/grown/moonflower,
/obj/item/food/grown/ash_flora/shavings,
/obj/item/food/grown/ash_flora/mushroom_leaf,
/obj/item/food/grown/ash_flora/mushroom_cap,
/obj/item/food/grown/ash_flora/mushroom_stem,
/obj/item/food/grown/ash_flora/cactus_fruit,
/obj/item/food/grown/shell,
/obj/item/food/grown/mushroom/fungus,
/obj/item/food/grown/mushroom,
/obj/item/food/grown/ash_flora,
)
var/list/output = list()
for(var/I in 1 to 3)
var/obj/item/food/chosen
if(prob(95))
chosen = pick(subtypesof(/obj/item/food/grown) - forbidden_plants)
else // Fish / sushi stuff, or xenomeat rarely as a treat
chosen = pick(/obj/item/food/catfishmeat, /obj/item/food/carpmeat, /obj/item/food/salmonmeat, /obj/item/food/shrimp, /obj/item/food/monstermeat/xenomeat)
for(var/H in 1 to 3)
output += chosen
// Adds 2 condiment bottles as bonus. No hotsauce or ketchup, as the chef starts with that
for(var/G in 1 to 2)
output += pick(/obj/item/reagent_containers/condiment/bbqsauce,
/obj/item/reagent_containers/condiment/soysauce,
/obj/item/reagent_containers/condiment/mayonnaise,
/obj/item/reagent_containers/condiment/cherryjelly,
/obj/item/reagent_containers/condiment/peanutbutter,
/obj/item/reagent_containers/condiment/honey,
/obj/item/reagent_containers/condiment/oliveoil,
/obj/item/reagent_containers/condiment/frostoil,
/obj/item/reagent_containers/condiment/wasabi,
/obj/item/reagent_containers/condiment/vinegar)
return output

/**
* # Seed Storage
*
Expand Down

0 comments on commit 192e90a

Please sign in to comment.