modules - E to L
This commit is contained in:
@@ -232,8 +232,8 @@
|
||||
icon_state = "absinthebottle"
|
||||
list_reagents = list("absinthe" = 100)
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/bottle/absinthe/New()
|
||||
..()
|
||||
/obj/item/reagent_containers/food/drinks/bottle/absinthe/Initialize()
|
||||
. = ..()
|
||||
redact()
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/bottle/absinthe/proc/redact()
|
||||
|
||||
@@ -9,13 +9,12 @@
|
||||
var/foodtype = NONE
|
||||
var/last_check_time
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/Initialize(mapload)
|
||||
..()
|
||||
/obj/item/reagent_containers/food/Initialize(mapload)
|
||||
. = ..()
|
||||
if(!mapload)
|
||||
pixel_x = rand(-5, 5) //Randomizes postion slightly.
|
||||
pixel_x = rand(-5, 5)
|
||||
pixel_y = rand(-5, 5)
|
||||
|
||||
|
||||
/obj/item/reagent_containers/food/proc/checkLiked(var/fraction, mob/M)
|
||||
if(last_check_time + 50 < world.time)
|
||||
if(ishuman(M))
|
||||
|
||||
@@ -276,8 +276,8 @@
|
||||
icon = 'icons/obj/food/soupsalad.dmi'
|
||||
icon_state = "wishsoup"
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/customizable/soup/New()
|
||||
..()
|
||||
/obj/item/reagent_containers/food/snacks/customizable/soup/Initialize()
|
||||
. = ..()
|
||||
eatverb = pick("slurp","sip","suck","inhale","drink")
|
||||
|
||||
|
||||
|
||||
@@ -316,10 +316,10 @@
|
||||
// name = "Xenoburger" //Name that displays in the UI.
|
||||
// desc = "Smells caustic. Tastes like heresy." //Duh
|
||||
// icon_state = "xburger" //Refers to an icon in food.dmi
|
||||
///obj/item/reagent_containers/food/snacks/xenoburger/New() //Don't mess with this.
|
||||
// ..() //Same here.
|
||||
///obj/item/reagent_containers/food/snacks/xenoburger/Initialize() //Don't mess with this. | nO I WILL MESS WITH THIS
|
||||
// . = ..() //Same here.
|
||||
// reagents.add_reagent("xenomicrobes", 10) //This is what is in the food item. you may copy/paste
|
||||
// reagents.add_reagent("nutriment", 2) // this line of code for all the contents.
|
||||
// reagents.add_reagent("nutriment", 2) //this line of code for all the contents.
|
||||
// bitesize = 3 //This is the amount each bite consumes.
|
||||
|
||||
//All foods are distributed among various categories. Use common sense.
|
||||
|
||||
@@ -67,8 +67,8 @@
|
||||
tastes = list("popcorn" = 3, "butter" = 1)
|
||||
foodtype = JUNKFOOD
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/popcorn/New()
|
||||
..()
|
||||
/obj/item/reagent_containers/food/snacks/popcorn/Initialize()
|
||||
. = ..()
|
||||
eatverb = pick("bite","crunch","nibble","gnaw","gobble","chomp")
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/loadedbakedpotato
|
||||
@@ -448,8 +448,8 @@
|
||||
tastes = list("candy" = 1)
|
||||
foodtype = JUNKFOOD | SUGAR
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/lollipop/New()
|
||||
..()
|
||||
/obj/item/reagent_containers/food/snacks/lollipop/Initialize()
|
||||
. = ..()
|
||||
head = mutable_appearance('icons/obj/lollipop.dmi', "lollipop_head")
|
||||
change_head_color(rgb(rand(0, 255), rand(0, 255), rand(0, 255)))
|
||||
|
||||
@@ -467,8 +467,8 @@
|
||||
/obj/item/reagent_containers/food/snacks/lollipop/cyborg
|
||||
var/spamchecking = TRUE
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/lollipop/cyborg/New()
|
||||
..()
|
||||
/obj/item/reagent_containers/food/snacks/lollipop/cyborg/Initialize()
|
||||
. = ..()
|
||||
addtimer(CALLBACK(src, .proc/spamcheck), 1200)
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/lollipop/cyborg/equipped(mob/living/user, slot)
|
||||
@@ -488,15 +488,15 @@
|
||||
tastes = list("candy")
|
||||
foodtype = JUNKFOOD
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/gumball/New()
|
||||
..()
|
||||
/obj/item/reagent_containers/food/snacks/gumball/Initialize()
|
||||
. = ..()
|
||||
color = rgb(rand(0, 255), rand(0, 255), rand(0, 255))
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/gumball/cyborg
|
||||
var/spamchecking = TRUE
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/gumball/cyborg/New()
|
||||
..()
|
||||
/obj/item/reagent_containers/food/snacks/gumball/cyborg/Initialize()
|
||||
. = ..()
|
||||
addtimer(CALLBACK(src, .proc/spamcheck), 1200)
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/gumball/cyborg/equipped(mob/living/user, slot)
|
||||
|
||||
@@ -350,3 +350,113 @@
|
||||
filling_color = "#F2CE91"
|
||||
tastes = list("pastry" = 1, "sweetness" = 1)
|
||||
foodtype = GRAIN
|
||||
|
||||
#define PANCAKE_MAX_STACK 10
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/pancakes
|
||||
name = "pancake"
|
||||
desc = "A fluffy pancake. The softer, superior relative of the waffle."
|
||||
icon_state = "pancakes_1"
|
||||
item_state = "pancakes"
|
||||
bonus_reagents = list("vitamin" = 1)
|
||||
list_reagents = list("nutriment" = 4, "vitamin" = 1)
|
||||
filling_color = "#D2691E"
|
||||
tastes = list("pancakes" = 1)
|
||||
foodtype = GRAIN | SUGAR
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/pancakes/blueberry
|
||||
name = "blueberry pancake"
|
||||
desc = "A fluffy and delicious blueberry pancake."
|
||||
icon_state = "bbpancakes_1"
|
||||
item_state = "bbpancakes"
|
||||
bonus_reagents = list("vitamin" = 2)
|
||||
list_reagents = list("nutriment" = 6, "vitamin" = 3)
|
||||
tastes = list("pancakes" = 1, "blueberries" = 1)
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/pancakes/chocolatechip
|
||||
name = "chocolate chip pancake"
|
||||
desc = "A fluffy and delicious chocolate chip pancake."
|
||||
icon_state = "ccpancakes_1"
|
||||
item_state = "ccpancakes"
|
||||
bonus_reagents = list("vitamin" = 2)
|
||||
list_reagents = list("nutriment" = 6, "vitamin" = 3)
|
||||
tastes = list("pancakes" = 1, "chocolate" = 1)
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/pancakes/Initialize()
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/pancakes/update_icon()
|
||||
if(contents.len)
|
||||
name = "stack of pancakes"
|
||||
else
|
||||
name = initial(name)
|
||||
if(contents.len < our_overlays.len)
|
||||
cut_overlay(our_overlays[our_overlays.len])
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/pancakes/examine(mob/user)
|
||||
var/ingredients_listed = ""
|
||||
var/pancakeCount = contents.len
|
||||
switch(pancakeCount)
|
||||
if(0)
|
||||
desc = initial(desc)
|
||||
if(1 to 2)
|
||||
desc = "A stack of fluffy pancakes."
|
||||
if(3 to 6)
|
||||
desc = "A fat stack of fluffy pancakes!"
|
||||
if(7 to 9)
|
||||
desc = "A grand tower of fluffy, delicious pancakes!"
|
||||
if(PANCAKE_MAX_STACK to INFINITY)
|
||||
desc = "A massive towering spire of fluffy, delicious pancakes. It looks like it could tumble over!"
|
||||
var/originalBites = bitecount
|
||||
if (pancakeCount)
|
||||
var/obj/item/reagent_containers/food/snacks/S = contents[pancakeCount]
|
||||
bitecount = S.bitecount
|
||||
..()
|
||||
if (pancakeCount)
|
||||
for(var/obj/item/reagent_containers/food/snacks/pancakes/ING in contents)
|
||||
ingredients_listed += "[ING.name], "
|
||||
to_chat(user, "It contains [contents.len?"[ingredients_listed]":"no ingredient, "]on top of a [initial(name)].")
|
||||
bitecount = originalBites
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/pancakes/attackby(obj/item/I, mob/living/user, params)
|
||||
if(istype(I, /obj/item/reagent_containers/food/snacks/pancakes/))
|
||||
var/obj/item/reagent_containers/food/snacks/pancakes/P = I
|
||||
if((contents.len >= PANCAKE_MAX_STACK) || ((P.contents.len + contents.len) > PANCAKE_MAX_STACK) || (reagents.total_volume >= volume))
|
||||
to_chat(user, "<span class='warning'>You can't add that many pancakes to [src]!</span>")
|
||||
else
|
||||
if(!user.transferItemToLoc(I, src))
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You add the [I] to the [name].</span>")
|
||||
P.name = initial(P.name)
|
||||
contents += P
|
||||
update_overlays(P)
|
||||
if (P.contents.len)
|
||||
for(var/V in P.contents)
|
||||
P = V
|
||||
P.name = initial(P.name)
|
||||
contents += P
|
||||
update_overlays(P)
|
||||
P = I
|
||||
clearlist(P.contents)
|
||||
return
|
||||
else if(contents.len)
|
||||
var/obj/O = contents[contents.len]
|
||||
return O.attackby(I, user, params)
|
||||
..()
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/pancakes/update_overlays(obj/item/reagent_containers/food/snacks/P)
|
||||
var/mutable_appearance/pancake = mutable_appearance(icon, "[P.item_state]_[rand(1,3)]")
|
||||
pancake.pixel_x = rand(-1,1)
|
||||
pancake.pixel_y = 3 * contents.len - 1
|
||||
add_overlay(pancake)
|
||||
update_icon()
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/pancakes/attack(mob/M, mob/user, def_zone, stacked = TRUE)
|
||||
if(user.a_intent == INTENT_HARM || !contents.len || !stacked)
|
||||
return ..()
|
||||
var/obj/item/O = contents[contents.len]
|
||||
. = O.attack(M, user, def_zone, FALSE)
|
||||
update_icon()
|
||||
|
||||
#undef PANCAKE_MAX_STACK
|
||||
@@ -27,6 +27,7 @@
|
||||
list_reagents = list("nutriment" = 6, "banana" = 5, "vitamin" = 2)
|
||||
tastes = list("pie" = 1)
|
||||
foodtype = GRAIN | DAIRY | SUGAR
|
||||
var/stunning = TRUE
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/pie/cream/throw_impact(atom/hit_atom)
|
||||
. = ..()
|
||||
@@ -46,15 +47,18 @@
|
||||
creamoverlay.icon_state = "creampie_lizard"
|
||||
else
|
||||
creamoverlay.icon_state = "creampie_human"
|
||||
H.Knockdown(20) //splat!
|
||||
if(stunning)
|
||||
H.Knockdown(20) //splat!
|
||||
H.adjust_blurriness(1)
|
||||
H.visible_message("<span class='warning'>[H] is creamed by [src]!</span>", "<span class='userdanger'>You've been creamed by [src]!</span>")
|
||||
playsound(H, "desceration", 50, TRUE)
|
||||
if (!H.creamed) // one layer at a time
|
||||
if(!H.creamed) // one layer at a time
|
||||
H.add_overlay(creamoverlay)
|
||||
H.creamed = TRUE
|
||||
qdel(src)
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/pie/cream/nostun
|
||||
stunning = FALSE
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/pie/berryclafoutis
|
||||
name = "berry clafoutis"
|
||||
@@ -112,13 +116,13 @@
|
||||
foodtype = GRAIN | VEGETABLES
|
||||
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/pie/plump_pie/New()
|
||||
/obj/item/reagent_containers/food/snacks/pie/plump_pie/Initialize()
|
||||
. = ..()
|
||||
var/fey = prob(10)
|
||||
if(fey)
|
||||
name = "exceptional plump pie"
|
||||
desc = "Microwave is taken by a fey mood! It has cooked an exceptional plump pie!"
|
||||
bonus_reagents = list("nutriment" = 1, "omnizine" = 5, "vitamin" = 4)
|
||||
..()
|
||||
if(fey)
|
||||
reagents.add_reagent("omnizine", 5)
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
tastes = list("leaves" = 1)
|
||||
foodtype = VEGETABLES
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/salad/New()
|
||||
..()
|
||||
eatverb = pick("crunch","devour","nibble","gnaw","gobble","chomp")
|
||||
/obj/item/reagent_containers/food/snacks/salad/Initialize()
|
||||
. = ..()
|
||||
eatverb = pick("crunch","devour","nibble","gnaw","gobble","chomp") //who the fuck gnaws and devours on a salad
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/salad/aesirsalad
|
||||
name = "\improper Aesir salad"
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
tastes = list("tasteless soup" = 1)
|
||||
foodtype = VEGETABLES
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/soup/New()
|
||||
..()
|
||||
/obj/item/reagent_containers/food/snacks/soup/Initialize()
|
||||
. = ..()
|
||||
eatverb = pick("slurp","sip","suck","inhale","drink")
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/soup/wish
|
||||
@@ -19,12 +19,12 @@
|
||||
list_reagents = list("water" = 10)
|
||||
tastes = list("wishes" = 1)
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/soup/wish/New()
|
||||
/obj/item/reagent_containers/food/snacks/soup/wish/Initialize()
|
||||
. = ..()
|
||||
var/wish_true = prob(25)
|
||||
if(wish_true)
|
||||
desc = "A wish come true!"
|
||||
bonus_reagents = list("nutriment" = 9, "vitamin" = 1)
|
||||
..()
|
||||
if(wish_true)
|
||||
reagents.add_reagent("nutriment", 9)
|
||||
reagents.add_reagent("vitamin", 1)
|
||||
@@ -99,10 +99,10 @@
|
||||
list_reagents = list("nutriment" = 6)
|
||||
tastes = list("chaos" = 1)
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/soup/mystery/New()
|
||||
/obj/item/reagent_containers/food/snacks/soup/mystery/Initialize()
|
||||
. = ..()
|
||||
extra_reagent = pick("capsaicin", "frostoil", "omnizine", "banana", "blood", "slimejelly", "toxin", "banana", "carbon", "oculine")
|
||||
bonus_reagents = list("[extra_reagent]" = 5, "nutriment" = 6)
|
||||
..()
|
||||
reagents.add_reagent("[extra_reagent]", 5)
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/soup/hotchili
|
||||
@@ -173,8 +173,8 @@
|
||||
bonus_reagents = list("nutriment" = 1, "vitamin" = 5)
|
||||
foodtype = VEGETABLES
|
||||
|
||||
/obj/item/reagent_containers/food/snacks/soup/beet/New()
|
||||
..()
|
||||
/obj/item/reagent_containers/food/snacks/soup/beet/Initialize()
|
||||
. = ..()
|
||||
name = pick("borsch","bortsch","borstch","borsh","borshch","borscht")
|
||||
tastes = list(name = 1)
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
/obj/machinery/gibber
|
||||
name = "gibber"
|
||||
desc = "The name isn't descriptive enough?"
|
||||
@@ -12,10 +11,10 @@
|
||||
circuit = /obj/item/circuitboard/machine/gibber
|
||||
|
||||
var/operating = FALSE //Is it on?
|
||||
var/dirty = 0 // Does it need cleaning?
|
||||
var/dirty = FALSE // Does it need cleaning?
|
||||
var/gibtime = 40 // Time from starting until meat appears
|
||||
var/meat_produced = 0
|
||||
var/ignore_clothing = 0
|
||||
var/ignore_clothing = FALSE
|
||||
|
||||
|
||||
/obj/machinery/gibber/Initialize()
|
||||
@@ -30,7 +29,7 @@
|
||||
gib_time -= 5 * M.rating
|
||||
gibtime = gib_time
|
||||
if(M.rating >= 2)
|
||||
ignore_clothing = 1
|
||||
ignore_clothing = TRUE
|
||||
|
||||
/obj/machinery/gibber/update_icon()
|
||||
cut_overlays()
|
||||
@@ -61,6 +60,10 @@
|
||||
to_chat(user, "<span class='danger'>It's locked and running.</span>")
|
||||
return
|
||||
|
||||
if(!anchored)
|
||||
to_chat(user, "<span class='notice'>[src] cannot be used unless bolted to the ground.</span>")
|
||||
return
|
||||
|
||||
if(user.pulling && user.a_intent == INTENT_GRAB && isliving(user.pulling))
|
||||
var/mob/living/L = user.pulling
|
||||
if(!iscarbon(L))
|
||||
@@ -70,12 +73,17 @@
|
||||
if(C.buckled ||C.has_buckled_mobs())
|
||||
to_chat(user, "<span class='warning'>[C] is attached to something!</span>")
|
||||
return
|
||||
if(C.abiotic(1) && !ignore_clothing)
|
||||
to_chat(user, "<span class='danger'>Subject may not have abiotic items on.</span>")
|
||||
return
|
||||
|
||||
if(!ignore_clothing)
|
||||
for(var/obj/item/I in C.held_items + C.get_equipped_items())
|
||||
if(!(I.flags_1 & NODROP_1))
|
||||
to_chat(user, "<span class='danger'>Subject may not have abiotic items on.</span>")
|
||||
return
|
||||
|
||||
user.visible_message("<span class='danger'>[user] starts to put [C] into the gibber!</span>")
|
||||
src.add_fingerprint(user)
|
||||
|
||||
add_fingerprint(user)
|
||||
|
||||
if(do_after(user, gibtime, target = src))
|
||||
if(C && user.pulling == C && !C.buckled && !C.has_buckled_mobs() && !occupant)
|
||||
user.visible_message("<span class='danger'>[user] stuffs [C] into the gibber!</span>")
|
||||
|
||||
@@ -28,9 +28,10 @@
|
||||
var/const/BOMB_TIMER_MIN = 1
|
||||
var/const/BOMB_TIMER_MAX = 10
|
||||
|
||||
/obj/item/pizzabox/New()
|
||||
/obj/item/pizzabox/Initialize()
|
||||
. = ..()
|
||||
update_icon()
|
||||
..()
|
||||
|
||||
|
||||
/obj/item/pizzabox/Destroy()
|
||||
unprocess()
|
||||
@@ -257,29 +258,31 @@
|
||||
wires = null
|
||||
update_icon()
|
||||
|
||||
/obj/item/pizzabox/bomb/New()
|
||||
/obj/item/pizzabox/bomb/Initialize()
|
||||
. = ..()
|
||||
var/randompizza = pick(subtypesof(/obj/item/reagent_containers/food/snacks/pizza))
|
||||
pizza = new randompizza(src)
|
||||
bomb = new(src)
|
||||
wires = new /datum/wires/explosive/pizza(src)
|
||||
..()
|
||||
|
||||
/obj/item/pizzabox/margherita/New()
|
||||
/obj/item/pizzabox/margherita/Initialize()
|
||||
. = ..()
|
||||
pizza = new /obj/item/reagent_containers/food/snacks/pizza/margherita(src)
|
||||
boxtag = "Margherita Deluxe"
|
||||
..()
|
||||
|
||||
/obj/item/pizzabox/vegetable/New()
|
||||
|
||||
/obj/item/pizzabox/vegetable/Initialize()
|
||||
. = ..()
|
||||
pizza = new /obj/item/reagent_containers/food/snacks/pizza/vegetable(src)
|
||||
boxtag = "Gourmet Vegatable"
|
||||
..()
|
||||
|
||||
/obj/item/pizzabox/mushroom/New()
|
||||
|
||||
/obj/item/pizzabox/mushroom/Initialize()
|
||||
. = ..()
|
||||
pizza = new /obj/item/reagent_containers/food/snacks/pizza/mushroom(src)
|
||||
boxtag = "Mushroom Special"
|
||||
..()
|
||||
|
||||
/obj/item/pizzabox/meat/New()
|
||||
/obj/item/pizzabox/meat/Initialize()
|
||||
. = ..()
|
||||
pizza = new /obj/item/reagent_containers/food/snacks/pizza/meat(src)
|
||||
boxtag = "Meatlover's Supreme"
|
||||
..()
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
result = /obj/item/reagent_containers/food/snacks/donut/jelly/slimejelly
|
||||
subcategory = CAT_PASTRY
|
||||
|
||||
////////////////////////////////////////////////WAFFLES////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////WAFFLES AND PANCAKES////////////////////////////////////////////////
|
||||
|
||||
/datum/crafting_recipe/food/waffles
|
||||
time = 15
|
||||
@@ -90,6 +90,33 @@
|
||||
result = /obj/item/reagent_containers/food/snacks/rofflewaffles
|
||||
subcategory = CAT_PASTRY
|
||||
|
||||
/datum/crafting_recipe/food/pancakes
|
||||
name = "Pancake"
|
||||
reqs = list(
|
||||
/obj/item/reagent_containers/food/snacks/pastrybase = 1
|
||||
)
|
||||
result = /obj/item/reagent_containers/food/snacks/pancakes
|
||||
subcategory = CAT_PASTRY
|
||||
|
||||
/datum/crafting_recipe/food/bbpancakes
|
||||
name = "Blueberry pancake"
|
||||
reqs = list(
|
||||
/obj/item/reagent_containers/food/snacks/pastrybase = 1,
|
||||
/obj/item/reagent_containers/food/snacks/grown/berries = 1
|
||||
)
|
||||
result = /obj/item/reagent_containers/food/snacks/pancakes/blueberry
|
||||
subcategory = CAT_PASTRY
|
||||
|
||||
/datum/crafting_recipe/food/ccpancakes
|
||||
name = "Chocolate chip pancake"
|
||||
reqs = list(
|
||||
/obj/item/reagent_containers/food/snacks/pastrybase = 1,
|
||||
/obj/item/reagent_containers/food/snacks/chocolatebar = 1
|
||||
)
|
||||
result = /obj/item/reagent_containers/food/snacks/pancakes/chocolatechip
|
||||
subcategory = CAT_PASTRY
|
||||
|
||||
|
||||
////////////////////////////////////////////////DONKPOCCKETS////////////////////////////////////////////////
|
||||
|
||||
/datum/crafting_recipe/food/donkpocket
|
||||
|
||||
Reference in New Issue
Block a user