Introduces function for exact item placement of food and applies it to each food item in the game

This commit is contained in:
Hubblenaut
2014-07-13 19:37:33 +02:00
parent 4868c7337c
commit 31637edf76
8 changed files with 212 additions and 48 deletions

View File

@@ -6,7 +6,29 @@
volume = 50 //Sets the default container amount for all food items. volume = 50 //Sets the default container amount for all food items.
var/filling_color = "#FFFFFF" //Used by sandwiches. var/filling_color = "#FFFFFF" //Used by sandwiches.
var/list/CoM = newlist() //Center of mass
/obj/item/weapon/reagent_containers/food/New() /obj/item/weapon/reagent_containers/food/New()
..() ..()
src.pixel_x = rand(-10.0, 10) //Randomizes postion if (!pixel_x && !pixel_y)
src.pixel_y = rand(-10.0, 10) src.pixel_x = rand(-6.0, 6) //Randomizes postion
src.pixel_y = rand(-6.0, 6)
/obj/item/weapon/reagent_containers/food/afterattack(atom/A, mob/user, proximity, params)
if(proximity && params && istype(A, /obj/structure/table) && CoM.len)
//Places the item on a grid
var/list/mouse_control = params2list(params)
var/cellnumber = 4
var/mouse_x = text2num(mouse_control["icon-x"])
var/mouse_y = text2num(mouse_control["icon-y"])
var/grid_x = round(mouse_x, 32/cellnumber)
var/grid_y = round(mouse_y, 32/cellnumber)
if(mouse_control["icon-x"])
var/sign = mouse_x - grid_x != 0 ? sign(mouse_x - grid_x) : -1 //positive if rounded down, else negative
pixel_x = grid_x - CoM["x"] + sign*16/cellnumber //center of the cell
if(mouse_control["icon-y"])
var/sign = mouse_y - grid_y != 0 ? sign(mouse_y - grid_y) : -1
pixel_y = grid_y - CoM["y"] + sign*16/cellnumber

View File

@@ -135,129 +135,118 @@
name = "Space Cola" name = "Space Cola"
desc = "Cola. in space." desc = "Cola. in space."
icon_state = "cola" icon_state = "cola"
CoM = list("x"=16, "y"=10)
New() New()
..() ..()
reagents.add_reagent("cola", 30) reagents.add_reagent("cola", 30)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/cans/waterbottle /obj/item/weapon/reagent_containers/food/drinks/cans/waterbottle
name = "Bottled Water" name = "Bottled Water"
desc = "Introduced to the vending machines by Skrellian request, this water comes straight from the Martian poles." desc = "Introduced to the vending machines by Skrellian request, this water comes straight from the Martian poles."
icon_state = "waterbottle" icon_state = "waterbottle"
CoM = list("x"=15, "y"=8)
New() New()
..() ..()
reagents.add_reagent("water", 30) reagents.add_reagent("water", 30)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/cans/beer /obj/item/weapon/reagent_containers/food/drinks/cans/beer
name = "Space Beer" name = "Space Beer"
desc = "Contains only water, malt and hops." desc = "Contains only water, malt and hops."
icon_state = "beer" icon_state = "beer"
CoM = list("x"=16, "y"=12)
New() New()
..() ..()
reagents.add_reagent("beer", 30) reagents.add_reagent("beer", 30)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/cans/ale /obj/item/weapon/reagent_containers/food/drinks/cans/ale
name = "Magm-Ale" name = "Magm-Ale"
desc = "A true dorf's drink of choice." desc = "A true dorf's drink of choice."
icon_state = "alebottle" icon_state = "alebottle"
item_state = "beer" item_state = "beer"
CoM = list("x"=16, "y"=10)
New() New()
..() ..()
reagents.add_reagent("ale", 30) reagents.add_reagent("ale", 30)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/cans/space_mountain_wind /obj/item/weapon/reagent_containers/food/drinks/cans/space_mountain_wind
name = "Space Mountain Wind" name = "Space Mountain Wind"
desc = "Blows right through you like a space wind." desc = "Blows right through you like a space wind."
icon_state = "space_mountain_wind" icon_state = "space_mountain_wind"
CoM = list("x"=16, "y"=10)
New() New()
..() ..()
reagents.add_reagent("spacemountainwind", 30) reagents.add_reagent("spacemountainwind", 30)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/cans/thirteenloko /obj/item/weapon/reagent_containers/food/drinks/cans/thirteenloko
name = "Thirteen Loko" name = "Thirteen Loko"
desc = "The CMO has advised crew members that consumption of Thirteen Loko may result in seizures, blindness, drunkeness, or even death. Please Drink Responsibly." desc = "The CMO has advised crew members that consumption of Thirteen Loko may result in seizures, blindness, drunkeness, or even death. Please Drink Responsibly."
icon_state = "thirteen_loko" icon_state = "thirteen_loko"
CoM = list("x"=16, "y"=8)
New() New()
..() ..()
reagents.add_reagent("thirteenloko", 30) reagents.add_reagent("thirteenloko", 30)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/cans/dr_gibb /obj/item/weapon/reagent_containers/food/drinks/cans/dr_gibb
name = "Dr. Gibb" name = "Dr. Gibb"
desc = "A delicious mixture of 42 different flavors." desc = "A delicious mixture of 42 different flavors."
icon_state = "dr_gibb" icon_state = "dr_gibb"
CoM = list("x"=16, "y"=10)
New() New()
..() ..()
reagents.add_reagent("dr_gibb", 30) reagents.add_reagent("dr_gibb", 30)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/cans/starkist /obj/item/weapon/reagent_containers/food/drinks/cans/starkist
name = "Star-kist" name = "Star-kist"
desc = "The taste of a star in liquid form. And, a bit of tuna...?" desc = "The taste of a star in liquid form. And, a bit of tuna...?"
icon_state = "starkist" icon_state = "starkist"
CoM = list("x"=16, "y"=10)
New() New()
..() ..()
reagents.add_reagent("cola", 15) reagents.add_reagent("cola", 15)
reagents.add_reagent("orangejuice", 15) reagents.add_reagent("orangejuice", 15)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/cans/space_up /obj/item/weapon/reagent_containers/food/drinks/cans/space_up
name = "Space-Up" name = "Space-Up"
desc = "Tastes like a hull breach in your mouth." desc = "Tastes like a hull breach in your mouth."
icon_state = "space-up" icon_state = "space-up"
CoM = list("x"=16, "y"=10)
New() New()
..() ..()
reagents.add_reagent("space_up", 30) reagents.add_reagent("space_up", 30)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/cans/lemon_lime /obj/item/weapon/reagent_containers/food/drinks/cans/lemon_lime
name = "Lemon-Lime" name = "Lemon-Lime"
desc = "You wanted ORANGE. It gave you Lemon Lime." desc = "You wanted ORANGE. It gave you Lemon Lime."
icon_state = "lemon-lime" icon_state = "lemon-lime"
CoM = list("x"=16, "y"=10)
New() New()
..() ..()
reagents.add_reagent("lemon_lime", 30) reagents.add_reagent("lemon_lime", 30)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/cans/iced_tea /obj/item/weapon/reagent_containers/food/drinks/cans/iced_tea
name = "Vrisk Serket Iced Tea" name = "Vrisk Serket Iced Tea"
desc = "That sweet, refreshing southern earthy flavor. That's where it's from, right? South Earth?" desc = "That sweet, refreshing southern earthy flavor. That's where it's from, right? South Earth?"
icon_state = "ice_tea_can" icon_state = "ice_tea_can"
CoM = list("x"=16, "y"=10)
New() New()
..() ..()
reagents.add_reagent("icetea", 30) reagents.add_reagent("icetea", 30)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/cans/grape_juice /obj/item/weapon/reagent_containers/food/drinks/cans/grape_juice
name = "Grapel Juice" name = "Grapel Juice"
desc = "500 pages of rules of how to appropriately enter into a combat with this juice!" desc = "500 pages of rules of how to appropriately enter into a combat with this juice!"
icon_state = "purple_can" icon_state = "purple_can"
CoM = list("x"=16, "y"=10)
New() New()
..() ..()
reagents.add_reagent("grapejuice", 30) reagents.add_reagent("grapejuice", 30)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/cans/tonic /obj/item/weapon/reagent_containers/food/drinks/cans/tonic
name = "T-Borg's Tonic Water" name = "T-Borg's Tonic Water"
desc = "Quinine tastes funny, but at least it'll keep that Space Malaria away." desc = "Quinine tastes funny, but at least it'll keep that Space Malaria away."
icon_state = "tonic" icon_state = "tonic"
CoM = list("x"=16, "y"=10)
New() New()
..() ..()
reagents.add_reagent("tonic", 50) reagents.add_reagent("tonic", 50)
@@ -266,6 +255,7 @@
name = "Soda Water" name = "Soda Water"
desc = "A can of soda water. Still water's more refreshing cousin." desc = "A can of soda water. Still water's more refreshing cousin."
icon_state = "sodawater" icon_state = "sodawater"
CoM = list("x"=16, "y"=10)
New() New()
..() ..()
reagents.add_reagent("sodawater", 50) reagents.add_reagent("sodawater", 50)

View File

@@ -12,6 +12,7 @@
icon_state = "emptycondiment" icon_state = "emptycondiment"
flags = FPRINT | TABLEPASS | OPENCONTAINER flags = FPRINT | TABLEPASS | OPENCONTAINER
possible_transfer_amounts = list(1,5,10) possible_transfer_amounts = list(1,5,10)
CoM = list("x"=16, "y"=6)
volume = 50 volume = 50
attackby(obj/item/weapon/W as obj, mob/user as mob) attackby(obj/item/weapon/W as obj, mob/user as mob)
@@ -90,37 +91,46 @@
name = "Ketchup" name = "Ketchup"
desc = "You feel more American already." desc = "You feel more American already."
icon_state = "ketchup" icon_state = "ketchup"
CoM = list("x"=16, "y"=6)
if("capsaicin") if("capsaicin")
name = "Hotsauce" name = "Hotsauce"
desc = "You can almost TASTE the stomach ulcers now!" desc = "You can almost TASTE the stomach ulcers now!"
icon_state = "hotsauce" icon_state = "hotsauce"
CoM = list("x"=16, "y"=6)
if("enzyme") if("enzyme")
name = "Universal Enzyme" name = "Universal Enzyme"
desc = "Used in cooking various dishes." desc = "Used in cooking various dishes."
icon_state = "enzyme" icon_state = "enzyme"
CoM = list("x"=16, "y"=6)
if("soysauce") if("soysauce")
name = "Soy Sauce" name = "Soy Sauce"
desc = "A salty soy-based flavoring." desc = "A salty soy-based flavoring."
icon_state = "soysauce" icon_state = "soysauce"
CoM = list("x"=16, "y"=6)
if("frostoil") if("frostoil")
name = "Coldsauce" name = "Coldsauce"
desc = "Leaves the tongue numb in its passage." desc = "Leaves the tongue numb in its passage."
icon_state = "coldsauce" icon_state = "coldsauce"
CoM = list("x"=16, "y"=6)
if("sodiumchloride") if("sodiumchloride")
name = "Salt Shaker" name = "Salt Shaker"
desc = "Salt. From space oceans, presumably." desc = "Salt. From space oceans, presumably."
icon_state = "saltshaker" icon_state = "saltshaker"
CoM = list("x"=16, "y"=10)
if("blackpepper") if("blackpepper")
name = "Pepper Mill" name = "Pepper Mill"
desc = "Often used to flavor food or make people sneeze." desc = "Often used to flavor food or make people sneeze."
icon_state = "peppermillsmall" icon_state = "peppermillsmall"
CoM = list("x"=16, "y"=10)
if("cornoil") if("cornoil")
name = "Corn Oil" name = "Corn Oil"
desc = "A delicious oil used in cooking. Made from corn." desc = "A delicious oil used in cooking. Made from corn."
icon_state = "oliveoil" icon_state = "oliveoil"
CoM = list("x"=16, "y"=6)
if("sugar") if("sugar")
name = "Sugar" name = "Sugar"
desc = "Tastey space sugar!" desc = "Tastey space sugar!"
CoM = list("x"=16, "y"=6)
else else
name = "Misc Condiment Bottle" name = "Misc Condiment Bottle"
if (reagents.reagent_list.len==1) if (reagents.reagent_list.len==1)
@@ -128,10 +138,12 @@
else else
desc = "A mixture of various condiments. [reagents.get_master_reagent_name()] is one of them." desc = "A mixture of various condiments. [reagents.get_master_reagent_name()] is one of them."
icon_state = "mixedcondiments" icon_state = "mixedcondiments"
CoM = list("x"=16, "y"=6)
else else
icon_state = "emptycondiment" icon_state = "emptycondiment"
name = "Condiment Bottle" name = "Condiment Bottle"
desc = "An empty condiment bottle." desc = "An empty condiment bottle."
CoM = list("x"=16, "y"=6)
return return
/obj/item/weapon/reagent_containers/food/condiment/enzyme /obj/item/weapon/reagent_containers/food/condiment/enzyme

View File

@@ -120,7 +120,7 @@
reagents.add_reagent(refill, trans) reagents.add_reagent(refill, trans)
user << "Cyborg [src] refilled." user << "Cyborg [src] refilled."
return return ..()
examine() examine()
set src in view() set src in view()
@@ -169,11 +169,10 @@
desc = "It's milk. White and nutritious goodness!" desc = "It's milk. White and nutritious goodness!"
icon_state = "milk" icon_state = "milk"
item_state = "carton" item_state = "carton"
CoM = list("x"=16, "y"=9)
New() New()
..() ..()
reagents.add_reagent("milk", 50) reagents.add_reagent("milk", 50)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/* Flour is no longer a reagent /* Flour is no longer a reagent
/obj/item/weapon/reagent_containers/food/drinks/flour /obj/item/weapon/reagent_containers/food/drinks/flour
@@ -194,63 +193,57 @@
desc = "It's soy milk. White and nutritious goodness!" desc = "It's soy milk. White and nutritious goodness!"
icon_state = "soymilk" icon_state = "soymilk"
item_state = "carton" item_state = "carton"
CoM = list("x"=16, "y"=9)
New() New()
..() ..()
reagents.add_reagent("soymilk", 50) reagents.add_reagent("soymilk", 50)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/coffee /obj/item/weapon/reagent_containers/food/drinks/coffee
name = "Robust Coffee" name = "Robust Coffee"
desc = "Careful, the beverage you're about to enjoy is extremely hot." desc = "Careful, the beverage you're about to enjoy is extremely hot."
icon_state = "coffee" icon_state = "coffee"
CoM = list("x"=15, "y"=10)
New() New()
..() ..()
reagents.add_reagent("coffee", 30) reagents.add_reagent("coffee", 30)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/tea /obj/item/weapon/reagent_containers/food/drinks/tea
name = "Duke Purple Tea" name = "Duke Purple Tea"
desc = "An insult to Duke Purple is an insult to the Space Queen! Any proper gentleman will fight you, if you sully this tea." desc = "An insult to Duke Purple is an insult to the Space Queen! Any proper gentleman will fight you, if you sully this tea."
icon_state = "teacup" icon_state = "teacup"
item_state = "coffee" item_state = "coffee"
CoM = list("x"=16, "y"=14)
New() New()
..() ..()
reagents.add_reagent("tea", 30) reagents.add_reagent("tea", 30)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/ice /obj/item/weapon/reagent_containers/food/drinks/ice
name = "Ice Cup" name = "Ice Cup"
desc = "Careful, cold ice, do not chew." desc = "Careful, cold ice, do not chew."
icon_state = "coffee" icon_state = "coffee"
CoM = list("x"=15, "y"=10)
New() New()
..() ..()
reagents.add_reagent("ice", 30) reagents.add_reagent("ice", 30)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/h_chocolate /obj/item/weapon/reagent_containers/food/drinks/h_chocolate
name = "Dutch Hot Coco" name = "Dutch Hot Coco"
desc = "Made in Space South America." desc = "Made in Space South America."
icon_state = "hot_coco" icon_state = "hot_coco"
item_state = "coffee" item_state = "coffee"
CoM = list("x"=15, "y"=13)
New() New()
..() ..()
reagents.add_reagent("hot_coco", 30) reagents.add_reagent("hot_coco", 30)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/dry_ramen /obj/item/weapon/reagent_containers/food/drinks/dry_ramen
name = "Cup Ramen" name = "Cup Ramen"
desc = "Just add 10ml water, self heats! A taste that reminds you of your school years." desc = "Just add 10ml water, self heats! A taste that reminds you of your school years."
icon_state = "ramen" icon_state = "ramen"
CoM = list("x"=16, "y"=11)
New() New()
..() ..()
reagents.add_reagent("dry_ramen", 30) reagents.add_reagent("dry_ramen", 30)
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
/obj/item/weapon/reagent_containers/food/drinks/sillycup /obj/item/weapon/reagent_containers/food/drinks/sillycup
@@ -259,10 +252,9 @@
icon_state = "water_cup_e" icon_state = "water_cup_e"
possible_transfer_amounts = null possible_transfer_amounts = null
volume = 10 volume = 10
CoM = list("x"=16, "y"=12)
New() New()
..() ..()
src.pixel_x = rand(-10.0, 10)
src.pixel_y = rand(-10.0, 10)
on_reagent_change() on_reagent_change()
if(reagents.total_volume) if(reagents.total_volume)
icon_state = "water_cup" icon_state = "water_cup"
@@ -281,33 +273,39 @@
icon_state = "shaker" icon_state = "shaker"
amount_per_transfer_from_this = 10 amount_per_transfer_from_this = 10
volume = 100 volume = 100
CoM = list("x"=17, "y"=10)
/obj/item/weapon/reagent_containers/food/drinks/flask /obj/item/weapon/reagent_containers/food/drinks/flask
name = "Captain's Flask" name = "Captain's Flask"
desc = "A metal flask belonging to the captain" desc = "A metal flask belonging to the captain"
icon_state = "flask" icon_state = "flask"
volume = 60 volume = 60
CoM = list("x"=17, "y"=7)
/obj/item/weapon/reagent_containers/food/drinks/flask/detflask /obj/item/weapon/reagent_containers/food/drinks/flask/detflask
name = "Detective's Flask" name = "Detective's Flask"
desc = "A metal flask with a leather band and golden badge belonging to the detective." desc = "A metal flask with a leather band and golden badge belonging to the detective."
icon_state = "detflask" icon_state = "detflask"
volume = 60 volume = 60
CoM = list("x"=17, "y"=8)
/obj/item/weapon/reagent_containers/food/drinks/flask/barflask /obj/item/weapon/reagent_containers/food/drinks/flask/barflask
name = "flask" name = "flask"
desc = "For those who can't be bothered to hang out at the bar to drink." desc = "For those who can't be bothered to hang out at the bar to drink."
icon_state = "barflask" icon_state = "barflask"
volume = 60 volume = 60
CoM = list("x"=17, "y"=7)
/obj/item/weapon/reagent_containers/food/drinks/flask/vacuumflask /obj/item/weapon/reagent_containers/food/drinks/flask/vacuumflask
name = "vacuum flask" name = "vacuum flask"
desc = "Keeping your drinks at the perfect temperature since 1892." desc = "Keeping your drinks at the perfect temperature since 1892."
icon_state = "vacuumflask" icon_state = "vacuumflask"
volume = 60 volume = 60
CoM = list("x"=15, "y"=4)
/obj/item/weapon/reagent_containers/food/drinks/britcup /obj/item/weapon/reagent_containers/food/drinks/britcup
name = "cup" name = "cup"
desc = "A cup with the British flag emblazoned on it." desc = "A cup with the British flag emblazoned on it."
icon_state = "britcup" icon_state = "britcup"
volume = 30 volume = 30
CoM = list("x"=15, "y"=13)

View File

@@ -138,6 +138,7 @@
name = "Griffeater Gin" name = "Griffeater Gin"
desc = "A bottle of high quality gin, produced in the New London Space Station." desc = "A bottle of high quality gin, produced in the New London Space Station."
icon_state = "ginbottle" icon_state = "ginbottle"
CoM = list("x"=16, "y"=4)
New() New()
..() ..()
reagents.add_reagent("gin", 100) reagents.add_reagent("gin", 100)
@@ -146,6 +147,7 @@
name = "Uncle Git's Special Reserve" name = "Uncle Git's Special Reserve"
desc = "A premium single-malt whiskey, gently matured inside the tunnels of a nuclear shelter. TUNNEL WHISKEY RULES." desc = "A premium single-malt whiskey, gently matured inside the tunnels of a nuclear shelter. TUNNEL WHISKEY RULES."
icon_state = "whiskeybottle" icon_state = "whiskeybottle"
CoM = list("x"=16, "y"=3)
New() New()
..() ..()
reagents.add_reagent("whiskey", 100) reagents.add_reagent("whiskey", 100)
@@ -154,6 +156,7 @@
name = "Tunguska Triple Distilled" name = "Tunguska Triple Distilled"
desc = "Aah, vodka. Prime choice of drink AND fuel by Russians worldwide." desc = "Aah, vodka. Prime choice of drink AND fuel by Russians worldwide."
icon_state = "vodkabottle" icon_state = "vodkabottle"
CoM = list("x"=17, "y"=3)
New() New()
..() ..()
reagents.add_reagent("vodka", 100) reagents.add_reagent("vodka", 100)
@@ -162,6 +165,7 @@
name = "Caccavo Guaranteed Quality Tequilla" name = "Caccavo Guaranteed Quality Tequilla"
desc = "Made from premium petroleum distillates, pure thalidomide and other fine quality ingredients!" desc = "Made from premium petroleum distillates, pure thalidomide and other fine quality ingredients!"
icon_state = "tequillabottle" icon_state = "tequillabottle"
CoM = list("x"=16, "y"=3)
New() New()
..() ..()
reagents.add_reagent("tequilla", 100) reagents.add_reagent("tequilla", 100)
@@ -170,6 +174,7 @@
name = "Bottle of Nothing" name = "Bottle of Nothing"
desc = "A bottle filled with nothing" desc = "A bottle filled with nothing"
icon_state = "bottleofnothing" icon_state = "bottleofnothing"
CoM = list("x"=17, "y"=5)
New() New()
..() ..()
reagents.add_reagent("nothing", 100) reagents.add_reagent("nothing", 100)
@@ -178,6 +183,7 @@
name = "Wrapp Artiste Patron" name = "Wrapp Artiste Patron"
desc = "Silver laced tequilla, served in space night clubs across the galaxy." desc = "Silver laced tequilla, served in space night clubs across the galaxy."
icon_state = "patronbottle" icon_state = "patronbottle"
CoM = list("x"=16, "y"=6)
New() New()
..() ..()
reagents.add_reagent("patron", 100) reagents.add_reagent("patron", 100)
@@ -186,6 +192,7 @@
name = "Captain Pete's Cuban Spiced Rum" name = "Captain Pete's Cuban Spiced Rum"
desc = "This isn't just rum, oh no. It's practically GRIFF in a bottle." desc = "This isn't just rum, oh no. It's practically GRIFF in a bottle."
icon_state = "rumbottle" icon_state = "rumbottle"
CoM = list("x"=16, "y"=8)
New() New()
..() ..()
reagents.add_reagent("rum", 100) reagents.add_reagent("rum", 100)
@@ -194,6 +201,7 @@
name = "Flask of Holy Water" name = "Flask of Holy Water"
desc = "A flask of the chaplain's holy water." desc = "A flask of the chaplain's holy water."
icon_state = "holyflask" icon_state = "holyflask"
CoM = list("x"=17, "y"=10)
New() New()
..() ..()
reagents.add_reagent("holywater", 100) reagents.add_reagent("holywater", 100)
@@ -202,6 +210,7 @@
name = "Goldeneye Vermouth" name = "Goldeneye Vermouth"
desc = "Sweet, sweet dryness~" desc = "Sweet, sweet dryness~"
icon_state = "vermouthbottle" icon_state = "vermouthbottle"
CoM = list("x"=17, "y"=3)
New() New()
..() ..()
reagents.add_reagent("vermouth", 100) reagents.add_reagent("vermouth", 100)
@@ -210,6 +219,7 @@
name = "Robert Robust's Coffee Liqueur" name = "Robert Robust's Coffee Liqueur"
desc = "A widely known, Mexican coffee-flavoured liqueur. In production since 1936, HONK" desc = "A widely known, Mexican coffee-flavoured liqueur. In production since 1936, HONK"
icon_state = "kahluabottle" icon_state = "kahluabottle"
CoM = list("x"=17, "y"=3)
New() New()
..() ..()
reagents.add_reagent("kahlua", 100) reagents.add_reagent("kahlua", 100)
@@ -218,6 +228,7 @@
name = "College Girl Goldschlager" name = "College Girl Goldschlager"
desc = "Because they are the only ones who will drink 100 proof cinnamon schnapps." desc = "Because they are the only ones who will drink 100 proof cinnamon schnapps."
icon_state = "goldschlagerbottle" icon_state = "goldschlagerbottle"
CoM = list("x"=15, "y"=3)
New() New()
..() ..()
reagents.add_reagent("goldschlager", 100) reagents.add_reagent("goldschlager", 100)
@@ -226,6 +237,7 @@
name = "Chateau De Baton Premium Cognac" name = "Chateau De Baton Premium Cognac"
desc = "A sweet and strongly alchoholic drink, made after numerous distillations and years of maturing. You might as well not scream 'SHITCURITY' this time." desc = "A sweet and strongly alchoholic drink, made after numerous distillations and years of maturing. You might as well not scream 'SHITCURITY' this time."
icon_state = "cognacbottle" icon_state = "cognacbottle"
CoM = list("x"=16, "y"=6)
New() New()
..() ..()
reagents.add_reagent("cognac", 100) reagents.add_reagent("cognac", 100)
@@ -234,6 +246,7 @@
name = "Doublebeard Bearded Special Wine" name = "Doublebeard Bearded Special Wine"
desc = "A faint aura of unease and asspainery surrounds the bottle." desc = "A faint aura of unease and asspainery surrounds the bottle."
icon_state = "winebottle" icon_state = "winebottle"
CoM = list("x"=16, "y"=4)
New() New()
..() ..()
reagents.add_reagent("wine", 100) reagents.add_reagent("wine", 100)
@@ -242,6 +255,7 @@
name = "Jailbreaker Verte" name = "Jailbreaker Verte"
desc = "One sip of this and you just know you're gonna have a good time." desc = "One sip of this and you just know you're gonna have a good time."
icon_state = "absinthebottle" icon_state = "absinthebottle"
CoM = list("x"=16, "y"=6)
New() New()
..() ..()
reagents.add_reagent("absinthe", 100) reagents.add_reagent("absinthe", 100)
@@ -250,6 +264,7 @@
name = "Emeraldine Melon Liquor" name = "Emeraldine Melon Liquor"
desc = "A bottle of 46 proof Emeraldine Melon Liquor. Sweet and light." desc = "A bottle of 46 proof Emeraldine Melon Liquor. Sweet and light."
icon_state = "alco-green" //Placeholder. icon_state = "alco-green" //Placeholder.
CoM = list("x"=16, "y"=6)
New() New()
..() ..()
reagents.add_reagent("melonliquor", 100) reagents.add_reagent("melonliquor", 100)
@@ -258,6 +273,7 @@
name = "Miss Blue Curacao" name = "Miss Blue Curacao"
desc = "A fruity, exceptionally azure drink. Does not allow the imbiber to use the fifth magic." desc = "A fruity, exceptionally azure drink. Does not allow the imbiber to use the fifth magic."
icon_state = "alco-blue" //Placeholder. icon_state = "alco-blue" //Placeholder.
CoM = list("x"=16, "y"=6)
New() New()
..() ..()
reagents.add_reagent("bluecuracao", 100) reagents.add_reagent("bluecuracao", 100)
@@ -266,6 +282,7 @@
name = "Briar Rose Grenadine Syrup" name = "Briar Rose Grenadine Syrup"
desc = "Sweet and tangy, a bar syrup used to add color or flavor to drinks." desc = "Sweet and tangy, a bar syrup used to add color or flavor to drinks."
icon_state = "grenadinebottle" icon_state = "grenadinebottle"
CoM = list("x"=16, "y"=6)
New() New()
..() ..()
reagents.add_reagent("grenadine", 100) reagents.add_reagent("grenadine", 100)
@@ -274,6 +291,7 @@
name = "Warlock's Velvet" name = "Warlock's Velvet"
desc = "What a delightful packaging for a surely high quality wine! The vintage must be amazing!" desc = "What a delightful packaging for a surely high quality wine! The vintage must be amazing!"
icon_state = "pwinebottle" icon_state = "pwinebottle"
CoM = list("x"=16, "y"=4)
New() New()
..() ..()
reagents.add_reagent("pwine", 100) reagents.add_reagent("pwine", 100)
@@ -285,6 +303,7 @@
desc = "Full of vitamins and deliciousness!" desc = "Full of vitamins and deliciousness!"
icon_state = "orangejuice" icon_state = "orangejuice"
item_state = "carton" item_state = "carton"
CoM = list("x"=16, "y"=7)
isGlass = 0 isGlass = 0
New() New()
..() ..()
@@ -295,6 +314,7 @@
desc = "It's cream. Made from milk. What else did you think you'd find in there?" desc = "It's cream. Made from milk. What else did you think you'd find in there?"
icon_state = "cream" icon_state = "cream"
item_state = "carton" item_state = "carton"
CoM = list("x"=16, "y"=8)
isGlass = 0 isGlass = 0
New() New()
..() ..()
@@ -305,6 +325,7 @@
desc = "Well, at least it LOOKS like tomato juice. You can't tell with all that redness." desc = "Well, at least it LOOKS like tomato juice. You can't tell with all that redness."
icon_state = "tomatojuice" icon_state = "tomatojuice"
item_state = "carton" item_state = "carton"
CoM = list("x"=16, "y"=8)
isGlass = 0 isGlass = 0
New() New()
..() ..()
@@ -315,6 +336,7 @@
desc = "Sweet-sour goodness." desc = "Sweet-sour goodness."
icon_state = "limejuice" icon_state = "limejuice"
item_state = "carton" item_state = "carton"
CoM = list("x"=16, "y"=8)
isGlass = 0 isGlass = 0
New() New()
..() ..()

View File

@@ -1,11 +1,12 @@
/obj/item/weapon/reagent_containers/food/drinks/drinkingglass /obj/item/weapon/reagent_containers/food/drinks/drinkingglass
name = "glass" name = "glass"
desc = "Your standard drinking glass." desc = "Your standard drinking glass."
icon_state = "glass_empty" icon_state = "glass_empty"
amount_per_transfer_from_this = 10 amount_per_transfer_from_this = 10
volume = 50 volume = 50
CoM = list("x"=16, "y"=10)
on_reagent_change() on_reagent_change()
/*if(reagents.reagent_list.len > 1 ) /*if(reagents.reagent_list.len > 1 )
@@ -22,142 +23,177 @@
icon_state = "beerglass" icon_state = "beerglass"
name = "Beer glass" name = "Beer glass"
desc = "A freezing pint of beer" desc = "A freezing pint of beer"
CoM = list("x"=16, "y"=8)
if("beer2") if("beer2")
icon_state = "beerglass" icon_state = "beerglass"
name = "Beer glass" name = "Beer glass"
desc = "A freezing pint of beer" desc = "A freezing pint of beer"
CoM = list("x"=16, "y"=8)
if("ale") if("ale")
icon_state = "aleglass" icon_state = "aleglass"
name = "Ale glass" name = "Ale glass"
desc = "A freezing pint of delicious Ale" desc = "A freezing pint of delicious Ale"
CoM = list("x"=16, "y"=8)
if("milk") if("milk")
icon_state = "glass_white" icon_state = "glass_white"
name = "Glass of milk" name = "Glass of milk"
desc = "White and nutritious goodness!" desc = "White and nutritious goodness!"
CoM = list("x"=16, "y"=10)
if("cream") if("cream")
icon_state = "glass_white" icon_state = "glass_white"
name = "Glass of cream" name = "Glass of cream"
desc = "Ewwww..." desc = "Ewwww..."
CoM = list("x"=16, "y"=10)
if("chocolate") if("chocolate")
icon_state = "chocolateglass" icon_state = "chocolateglass"
name = "Glass of chocolate" name = "Glass of chocolate"
desc = "Tasty" desc = "Tasty"
CoM = list("x"=16, "y"=10)
if("lemonjuice") if("lemonjuice")
icon_state = "lemonglass" icon_state = "lemonglass"
name = "Glass of lemonjuice" name = "Glass of lemonjuice"
desc = "Sour..." desc = "Sour..."
CoM = list("x"=16, "y"=10)
if("cola") if("cola")
icon_state = "glass_brown" icon_state = "glass_brown"
name = "Glass of Space Cola" name = "Glass of Space Cola"
desc = "A glass of refreshing Space Cola" desc = "A glass of refreshing Space Cola"
CoM = list("x"=16, "y"=10)
if("nuka_cola") if("nuka_cola")
icon_state = "nuka_colaglass" icon_state = "nuka_colaglass"
name = "Nuka Cola" name = "Nuka Cola"
desc = "Don't cry, Don't raise your eye, It's only nuclear wasteland" desc = "Don't cry, Don't raise your eye, It's only nuclear wasteland"
CoM = list("x"=16, "y"=6)
if("orangejuice") if("orangejuice")
icon_state = "glass_orange" icon_state = "glass_orange"
name = "Glass of Orange juice" name = "Glass of Orange juice"
desc = "Vitamins! Yay!" desc = "Vitamins! Yay!"
CoM = list("x"=16, "y"=10)
if("tomatojuice") if("tomatojuice")
icon_state = "glass_red" icon_state = "glass_red"
name = "Glass of Tomato juf" name = "Glass of Tomato juf"
desc = "Are you sure this is tomato juice?" desc = "Are you sure this is tomato juice?"
CoM = list("x"=16, "y"=10)
if("blood") if("blood")
icon_state = "glass_red" icon_state = "glass_red"
name = "Glass of Tomato juice" name = "Glass of Tomato juice"
desc = "Are you sure this is tomato juice?" desc = "Are you sure this is tomato juice?"
CoM = list("x"=16, "y"=10)
if("limejuice") if("limejuice")
icon_state = "glass_green" icon_state = "glass_green"
name = "Glass of Lime juice" name = "Glass of Lime juice"
desc = "A glass of sweet-sour lime juice." desc = "A glass of sweet-sour lime juice."
CoM = list("x"=16, "y"=10)
if("whiskey") if("whiskey")
icon_state = "whiskeyglass" icon_state = "whiskeyglass"
name = "Glass of whiskey" name = "Glass of whiskey"
desc = "The silky, smokey whiskey goodness inside the glass makes the drink look very classy." desc = "The silky, smokey whiskey goodness inside the glass makes the drink look very classy."
CoM = list("x"=16, "y"=12)
if("gin") if("gin")
icon_state = "ginvodkaglass" icon_state = "ginvodkaglass"
name = "Glass of gin" name = "Glass of gin"
desc = "A crystal clear glass of Griffeater gin." desc = "A crystal clear glass of Griffeater gin."
CoM = list("x"=16, "y"=12)
if("vodka") if("vodka")
icon_state = "ginvodkaglass" icon_state = "ginvodkaglass"
name = "Glass of vodka" name = "Glass of vodka"
desc = "The glass contain wodka. Xynta." desc = "The glass contain wodka. Xynta."
CoM = list("x"=16, "y"=12)
if("sake") if("sake")
icon_state = "ginvodkaglass" icon_state = "ginvodkaglass"
name = "Glass of Sake" name = "Glass of Sake"
desc = "A glass of Sake." desc = "A glass of Sake."
CoM = list("x"=16, "y"=12)
if("goldschlager") if("goldschlager")
icon_state = "ginvodkaglass" icon_state = "ginvodkaglass"
name = "Glass of goldschlager" name = "Glass of goldschlager"
desc = "100 proof that teen girls will drink anything with gold in it." desc = "100 proof that teen girls will drink anything with gold in it."
CoM = list("x"=16, "y"=12)
if("wine") if("wine")
icon_state = "wineglass" icon_state = "wineglass"
name = "Glass of wine" name = "Glass of wine"
desc = "A very classy looking drink." desc = "A very classy looking drink."
CoM = list("x"=15, "y"=7)
if("cognac") if("cognac")
icon_state = "cognacglass" icon_state = "cognacglass"
name = "Glass of cognac" name = "Glass of cognac"
desc = "Damn, you feel like some kind of French aristocrat just by holding this." desc = "Damn, you feel like some kind of French aristocrat just by holding this."
CoM = list("x"=16, "y"=6)
if ("kahlua") if ("kahlua")
icon_state = "kahluaglass" icon_state = "kahluaglass"
name = "Glass of RR coffee Liquor" name = "Glass of RR coffee Liquor"
desc = "DAMN, THIS THING LOOKS ROBUST" desc = "DAMN, THIS THING LOOKS ROBUST"
CoM = list("x"=15, "y"=7)
if("vermouth") if("vermouth")
icon_state = "vermouthglass" icon_state = "vermouthglass"
name = "Glass of Vermouth" name = "Glass of Vermouth"
desc = "You wonder why you're even drinking this straight." desc = "You wonder why you're even drinking this straight."
CoM = list("x"=16, "y"=12)
if("tequilla") if("tequilla")
icon_state = "tequillaglass" icon_state = "tequillaglass"
name = "Glass of Tequilla" name = "Glass of Tequilla"
desc = "Now all that's missing is the weird colored shades!" desc = "Now all that's missing is the weird colored shades!"
CoM = list("x"=16, "y"=12)
if("patron") if("patron")
icon_state = "patronglass" icon_state = "patronglass"
name = "Glass of Patron" name = "Glass of Patron"
desc = "Drinking patron in the bar, with all the subpar ladies." desc = "Drinking patron in the bar, with all the subpar ladies."
CoM = list("x"=7, "y"=8)
if("rum") if("rum")
icon_state = "rumglass" icon_state = "rumglass"
name = "Glass of Rum" name = "Glass of Rum"
desc = "Now you want to Pray for a pirate suit, don't you?" desc = "Now you want to Pray for a pirate suit, don't you?"
CoM = list("x"=16, "y"=12)
if("gintonic") if("gintonic")
icon_state = "gintonicglass" icon_state = "gintonicglass"
name = "Gin and Tonic" name = "Gin and Tonic"
desc = "A mild but still great cocktail. Drink up, like a true Englishman." desc = "A mild but still great cocktail. Drink up, like a true Englishman."
CoM = list("x"=16, "y"=7)
if("whiskeycola") if("whiskeycola")
icon_state = "whiskeycolaglass" icon_state = "whiskeycolaglass"
name = "Whiskey Cola" name = "Whiskey Cola"
desc = "An innocent-looking mixture of cola and Whiskey. Delicious." desc = "An innocent-looking mixture of cola and Whiskey. Delicious."
CoM = list("x"=16, "y"=9)
if("whiterussian") if("whiterussian")
icon_state = "whiterussianglass" icon_state = "whiterussianglass"
name = "White Russian" name = "White Russian"
desc = "A very nice looking drink. But that's just, like, your opinion, man." desc = "A very nice looking drink. But that's just, like, your opinion, man."
CoM = list("x"=16, "y"=9)
if("screwdrivercocktail") if("screwdrivercocktail")
icon_state = "screwdriverglass" icon_state = "screwdriverglass"
name = "Screwdriver" name = "Screwdriver"
desc = "A simple, yet superb mixture of Vodka and orange juice. Just the thing for the tired engineer." desc = "A simple, yet superb mixture of Vodka and orange juice. Just the thing for the tired engineer."
CoM = list("x"=15, "y"=10)
if("bloodymary") if("bloodymary")
icon_state = "bloodymaryglass" icon_state = "bloodymaryglass"
name = "Bloody Mary" name = "Bloody Mary"
desc = "Tomato juice, mixed with Vodka and a lil' bit of lime. Tastes like liquid murder." desc = "Tomato juice, mixed with Vodka and a lil' bit of lime. Tastes like liquid murder."
CoM = list("x"=16, "y"=10)
if("martini") if("martini")
icon_state = "martiniglass" icon_state = "martiniglass"
name = "Classic Martini" name = "Classic Martini"
desc = "Damn, the bartender even stirred it, not shook it." desc = "Damn, the bartender even stirred it, not shook it."
CoM = list("x"=17, "y"=8)
if("vodkamartini") if("vodkamartini")
icon_state = "martiniglass" icon_state = "martiniglass"
name = "Vodka martini" name = "Vodka martini"
desc ="A bastardisation of the classic martini. Still great." desc ="A bastardisation of the classic martini. Still great."
CoM = list("x"=17, "y"=8)
if("gargleblaster") if("gargleblaster")
icon_state = "gargleblasterglass" icon_state = "gargleblasterglass"
name = "Pan-Galactic Gargle Blaster" name = "Pan-Galactic Gargle Blaster"
desc = "Does... does this mean that Arthur and Ford are on the station? Oh joy." desc = "Does... does this mean that Arthur and Ford are on the station? Oh joy."
CoM = list("x"=17, "y"=6)
if("bravebull") if("bravebull")
icon_state = "bravebullglass" icon_state = "bravebullglass"
name = "Brave Bull" name = "Brave Bull"
desc = "Tequilla and Coffee liquor, brought together in a mouthwatering mixture. Drink up." desc = "Tequilla and Coffee liquor, brought together in a mouthwatering mixture. Drink up."
CoM = list("x"=15, "y"=8)
if("tequillasunrise") if("tequillasunrise")
icon_state = "tequillasunriseglass" icon_state = "tequillasunriseglass"
name = "Tequilla Sunrise" name = "Tequilla Sunrise"
desc = "Oh great, now you feel nostalgic about sunrises back on Terra..." desc = "Oh great, now you feel nostalgic about sunrises back on Terra..."
CoM = list("x"=16, "y"=10)
if("phoronspecial") if("phoronspecial")
icon_state = "phoronspecialglass" icon_state = "phoronspecialglass"
name = "Toxins Special" name = "Toxins Special"
@@ -166,330 +202,412 @@
icon_state = "beepskysmashglass" icon_state = "beepskysmashglass"
name = "Beepsky Smash" name = "Beepsky Smash"
desc = "Heavy, hot and strong. Just like the Iron fist of the LAW." desc = "Heavy, hot and strong. Just like the Iron fist of the LAW."
CoM = list("x"=18, "y"=10)
if("doctorsdelight") if("doctorsdelight")
icon_state = "doctorsdelightglass" icon_state = "doctorsdelightglass"
name = "Doctor's Delight" name = "Doctor's Delight"
desc = "A healthy mixture of juices, guaranteed to keep you healthy until the next toolboxing takes place." desc = "A healthy mixture of juices, guaranteed to keep you healthy until the next toolboxing takes place."
CoM = list("x"=16, "y"=8)
if("manlydorf") if("manlydorf")
icon_state = "manlydorfglass" icon_state = "manlydorfglass"
name = "The Manly Dorf" name = "The Manly Dorf"
desc = "A manly concotion made from Ale and Beer. Intended for true men only." desc = "A manly concotion made from Ale and Beer. Intended for true men only."
CoM = list("x"=16, "y"=10)
if("irishcream") if("irishcream")
icon_state = "irishcreamglass" icon_state = "irishcreamglass"
name = "Irish Cream" name = "Irish Cream"
desc = "It's cream, mixed with whiskey. What else would you expect from the Irish?" desc = "It's cream, mixed with whiskey. What else would you expect from the Irish?"
CoM = list("x"=16, "y"=9)
if("cubalibre") if("cubalibre")
icon_state = "cubalibreglass" icon_state = "cubalibreglass"
name = "Cuba Libre" name = "Cuba Libre"
desc = "A classic mix of rum and cola." desc = "A classic mix of rum and cola."
CoM = list("x"=16, "y"=8)
if("b52") if("b52")
icon_state = "b52glass" icon_state = "b52glass"
name = "B-52" name = "B-52"
desc = "Kahlua, Irish Cream, and congac. You will get bombed." desc = "Kahlua, Irish Cream, and congac. You will get bombed."
CoM = list("x"=16, "y"=10)
if("atomicbomb") if("atomicbomb")
icon_state = "atomicbombglass" icon_state = "atomicbombglass"
name = "Atomic Bomb" name = "Atomic Bomb"
desc = "Nanotrasen cannot take legal responsibility for your actions after imbibing." desc = "Nanotrasen cannot take legal responsibility for your actions after imbibing."
CoM = list("x"=15, "y"=7)
if("longislandicedtea") if("longislandicedtea")
icon_state = "longislandicedteaglass" icon_state = "longislandicedteaglass"
name = "Long Island Iced Tea" name = "Long Island Iced Tea"
desc = "The liquor cabinet, brought together in a delicious mix. Intended for middle-aged alcoholic women only." desc = "The liquor cabinet, brought together in a delicious mix. Intended for middle-aged alcoholic women only."
CoM = list("x"=16, "y"=8)
if("threemileisland") if("threemileisland")
icon_state = "threemileislandglass" icon_state = "threemileislandglass"
name = "Three Mile Island Ice Tea" name = "Three Mile Island Ice Tea"
desc = "A glass of this is sure to prevent a meltdown." desc = "A glass of this is sure to prevent a meltdown."
CoM = list("x"=16, "y"=2)
if("margarita") if("margarita")
icon_state = "margaritaglass" icon_state = "margaritaglass"
name = "Margarita" name = "Margarita"
desc = "On the rocks with salt on the rim. Arriba~!" desc = "On the rocks with salt on the rim. Arriba~!"
CoM = list("x"=16, "y"=8)
if("blackrussian") if("blackrussian")
icon_state = "blackrussianglass" icon_state = "blackrussianglass"
name = "Black Russian" name = "Black Russian"
desc = "For the lactose-intolerant. Still as classy as a White Russian." desc = "For the lactose-intolerant. Still as classy as a White Russian."
CoM = list("x"=16, "y"=9)
if("vodkatonic") if("vodkatonic")
icon_state = "vodkatonicglass" icon_state = "vodkatonicglass"
name = "Vodka and Tonic" name = "Vodka and Tonic"
desc = "For when a gin and tonic isn't russian enough." desc = "For when a gin and tonic isn't russian enough."
CoM = list("x"=16, "y"=7)
if("manhattan") if("manhattan")
icon_state = "manhattanglass" icon_state = "manhattanglass"
name = "Manhattan" name = "Manhattan"
desc = "The Detective's undercover drink of choice. He never could stomach gin..." desc = "The Detective's undercover drink of choice. He never could stomach gin..."
CoM = list("x"=17, "y"=8)
if("manhattan_proj") if("manhattan_proj")
icon_state = "proj_manhattanglass" icon_state = "proj_manhattanglass"
name = "Manhattan Project" name = "Manhattan Project"
desc = "A scienitst drink of choice, for thinking how to blow up the station." desc = "A scienitst drink of choice, for thinking how to blow up the station."
CoM = list("x"=17, "y"=8)
if("ginfizz") if("ginfizz")
icon_state = "ginfizzglass" icon_state = "ginfizzglass"
name = "Gin Fizz" name = "Gin Fizz"
desc = "Refreshingly lemony, deliciously dry." desc = "Refreshingly lemony, deliciously dry."
CoM = list("x"=16, "y"=7)
if("irishcoffee") if("irishcoffee")
icon_state = "irishcoffeeglass" icon_state = "irishcoffeeglass"
name = "Irish Coffee" name = "Irish Coffee"
desc = "Coffee and alcohol. More fun than a Mimosa to drink in the morning." desc = "Coffee and alcohol. More fun than a Mimosa to drink in the morning."
CoM = list("x"=15, "y"=10)
if("hooch") if("hooch")
icon_state = "glass_brown2" icon_state = "glass_brown2"
name = "Hooch" name = "Hooch"
desc = "You've really hit rock bottom now... your liver packed its bags and left last night." desc = "You've really hit rock bottom now... your liver packed its bags and left last night."
CoM = list("x"=16, "y"=10)
if("whiskeysoda") if("whiskeysoda")
icon_state = "whiskeysodaglass2" icon_state = "whiskeysodaglass2"
name = "Whiskey Soda" name = "Whiskey Soda"
desc = "Ultimate refreshment." desc = "Ultimate refreshment."
CoM = list("x"=16, "y"=9)
if("tonic") if("tonic")
icon_state = "glass_clear" icon_state = "glass_clear"
name = "Glass of Tonic Water" name = "Glass of Tonic Water"
desc = "Quinine tastes funny, but at least it'll keep that Space Malaria away." desc = "Quinine tastes funny, but at least it'll keep that Space Malaria away."
CoM = list("x"=16, "y"=10)
if("sodawater") if("sodawater")
icon_state = "glass_clear" icon_state = "glass_clear"
name = "Glass of Soda Water" name = "Glass of Soda Water"
desc = "Soda water. Why not make a scotch and soda?" desc = "Soda water. Why not make a scotch and soda?"
CoM = list("x"=16, "y"=10)
if("water") if("water")
icon_state = "glass_clear" icon_state = "glass_clear"
name = "Glass of Water" name = "Glass of Water"
desc = "The father of all refreshments." desc = "The father of all refreshments."
CoM = list("x"=16, "y"=10)
if("spacemountainwind") if("spacemountainwind")
icon_state = "Space_mountain_wind_glass" icon_state = "Space_mountain_wind_glass"
name = "Glass of Space Mountain Wind" name = "Glass of Space Mountain Wind"
desc = "Space Mountain Wind. As you know, there are no mountains in space, only wind." desc = "Space Mountain Wind. As you know, there are no mountains in space, only wind."
CoM = list("x"=16, "y"=10)
if("thirteenloko") if("thirteenloko")
icon_state = "thirteen_loko_glass" icon_state = "thirteen_loko_glass"
name = "Glass of Thirteen Loko" name = "Glass of Thirteen Loko"
desc = "This is a glass of Thirteen Loko, it appears to be of the highest quality. The drink, not the glass" desc = "This is a glass of Thirteen Loko, it appears to be of the highest quality. The drink, not the glass"
CoM = list("x"=16, "y"=10)
if("dr_gibb") if("dr_gibb")
icon_state = "dr_gibb_glass" icon_state = "dr_gibb_glass"
name = "Glass of Dr. Gibb" name = "Glass of Dr. Gibb"
desc = "Dr. Gibb. Not as dangerous as the name might imply." desc = "Dr. Gibb. Not as dangerous as the name might imply."
CoM = list("x"=16, "y"=10)
if("space_up") if("space_up")
icon_state = "space-up_glass" icon_state = "space-up_glass"
name = "Glass of Space-up" name = "Glass of Space-up"
desc = "Space-up. It helps keep your cool." desc = "Space-up. It helps keep your cool."
CoM = list("x"=16, "y"=10)
if("moonshine") if("moonshine")
icon_state = "glass_clear" icon_state = "glass_clear"
name = "Moonshine" name = "Moonshine"
desc = "You've really hit rock bottom now... your liver packed its bags and left last night." desc = "You've really hit rock bottom now... your liver packed its bags and left last night."
CoM = list("x"=16, "y"=10)
if("soymilk") if("soymilk")
icon_state = "glass_white" icon_state = "glass_white"
name = "Glass of soy milk" name = "Glass of soy milk"
desc = "White and nutritious soy goodness!" desc = "White and nutritious soy goodness!"
CoM = list("x"=16, "y"=10)
if("berryjuice") if("berryjuice")
icon_state = "berryjuice" icon_state = "berryjuice"
name = "Glass of berry juice" name = "Glass of berry juice"
desc = "Berry juice. Or maybe its jam. Who cares?" desc = "Berry juice. Or maybe its jam. Who cares?"
CoM = list("x"=16, "y"=10)
if("poisonberryjuice") if("poisonberryjuice")
icon_state = "poisonberryjuice" icon_state = "poisonberryjuice"
name = "Glass of poison berry juice" name = "Glass of poison berry juice"
desc = "A glass of deadly juice." desc = "A glass of deadly juice."
CoM = list("x"=16, "y"=10)
if("carrotjuice") if("carrotjuice")
icon_state = "carrotjuice" icon_state = "carrotjuice"
name = "Glass of carrot juice" name = "Glass of carrot juice"
desc = "It is just like a carrot but without crunching." desc = "It is just like a carrot but without crunching."
CoM = list("x"=16, "y"=10)
if("banana") if("banana")
icon_state = "banana" icon_state = "banana"
name = "Glass of banana juice" name = "Glass of banana juice"
desc = "The raw essence of a banana. HONK" desc = "The raw essence of a banana. HONK"
CoM = list("x"=16, "y"=10)
if("bahama_mama") if("bahama_mama")
icon_state = "bahama_mama" icon_state = "bahama_mama"
name = "Bahama Mama" name = "Bahama Mama"
desc = "Tropic cocktail" desc = "Tropic cocktail"
CoM = list("x"=16, "y"=5)
if("singulo") if("singulo")
icon_state = "singulo" icon_state = "singulo"
name = "Singulo" name = "Singulo"
desc = "A blue-space beverage." desc = "A blue-space beverage."
CoM = list("x"=17, "y"=4)
if("alliescocktail") if("alliescocktail")
icon_state = "alliescocktail" icon_state = "alliescocktail"
name = "Allies cocktail" name = "Allies cocktail"
desc = "A drink made from your allies." desc = "A drink made from your allies."
CoM = list("x"=17, "y"=8)
if("antifreeze") if("antifreeze")
icon_state = "antifreeze" icon_state = "antifreeze"
name = "Anti-freeze" name = "Anti-freeze"
desc = "The ultimate refreshment." desc = "The ultimate refreshment."
CoM = list("x"=16, "y"=8)
if("barefoot") if("barefoot")
icon_state = "b&p" icon_state = "b&p"
name = "Barefoot" name = "Barefoot"
desc = "Barefoot and pregnant" desc = "Barefoot and pregnant"
CoM = list("x"=17, "y"=8)
if("demonsblood") if("demonsblood")
icon_state = "demonsblood" icon_state = "demonsblood"
name = "Demons Blood" name = "Demons Blood"
desc = "Just looking at this thing makes the hair at the back of your neck stand up." desc = "Just looking at this thing makes the hair at the back of your neck stand up."
CoM = list("x"=16, "y"=2)
if("booger") if("booger")
icon_state = "booger" icon_state = "booger"
name = "Booger" name = "Booger"
desc = "Ewww..." desc = "Ewww..."
CoM = list("x"=16, "y"=10)
if("snowwhite") if("snowwhite")
icon_state = "snowwhite" icon_state = "snowwhite"
name = "Snow White" name = "Snow White"
desc = "A cold refreshment." desc = "A cold refreshment."
CoM = list("x"=16, "y"=8)
if("aloe") if("aloe")
icon_state = "aloe" icon_state = "aloe"
name = "Aloe" name = "Aloe"
desc = "Very, very, very good." desc = "Very, very, very good."
CoM = list("x"=17, "y"=8)
if("andalusia") if("andalusia")
icon_state = "andalusia" icon_state = "andalusia"
name = "Andalusia" name = "Andalusia"
desc = "A nice, strange named drink." desc = "A nice, strange named drink."
CoM = list("x"=16, "y"=9)
if("sbiten") if("sbiten")
icon_state = "sbitenglass" icon_state = "sbitenglass"
name = "Sbiten" name = "Sbiten"
desc = "A spicy mix of Vodka and Spice. Very hot." desc = "A spicy mix of Vodka and Spice. Very hot."
CoM = list("x"=17, "y"=8)
if("red_mead") if("red_mead")
icon_state = "red_meadglass" icon_state = "red_meadglass"
name = "Red Mead" name = "Red Mead"
desc = "A True Vikings Beverage, though its color is strange." desc = "A True Vikings Beverage, though its color is strange."
CoM = list("x"=17, "y"=10)
if("mead") if("mead")
icon_state = "meadglass" icon_state = "meadglass"
name = "Mead" name = "Mead"
desc = "A Vikings Beverage, though a cheap one." desc = "A Vikings Beverage, though a cheap one."
CoM = list("x"=17, "y"=10)
if("iced_beer") if("iced_beer")
icon_state = "iced_beerglass" icon_state = "iced_beerglass"
name = "Iced Beer" name = "Iced Beer"
desc = "A beer so frosty, the air around it freezes." desc = "A beer so frosty, the air around it freezes."
CoM = list("x"=16, "y"=7)
if("grog") if("grog")
icon_state = "grogglass" icon_state = "grogglass"
name = "Grog" name = "Grog"
desc = "A fine and cepa drink for Space." desc = "A fine and cepa drink for Space."
CoM = list("x"=16, "y"=10)
if("soy_latte") if("soy_latte")
icon_state = "soy_latte" icon_state = "soy_latte"
name = "Soy Latte" name = "Soy Latte"
desc = "A nice and refrshing beverage while you are reading." desc = "A nice and refrshing beverage while you are reading."
CoM = list("x"=15, "y"=9)
if("cafe_latte") if("cafe_latte")
icon_state = "cafe_latte" icon_state = "cafe_latte"
name = "Cafe Latte" name = "Cafe Latte"
desc = "A nice, strong and refreshing beverage while you are reading." desc = "A nice, strong and refreshing beverage while you are reading."
CoM = list("x"=15, "y"=9)
if("acidspit") if("acidspit")
icon_state = "acidspitglass" icon_state = "acidspitglass"
name = "Acid Spit" name = "Acid Spit"
desc = "A drink from Nanotrasen. Made from live aliens." desc = "A drink from Nanotrasen. Made from live aliens."
CoM = list("x"=16, "y"=7)
if("amasec") if("amasec")
icon_state = "amasecglass" icon_state = "amasecglass"
name = "Amasec" name = "Amasec"
desc = "Always handy before COMBAT!!!" desc = "Always handy before COMBAT!!!"
CoM = list("x"=16, "y"=9)
if("neurotoxin") if("neurotoxin")
icon_state = "neurotoxinglass" icon_state = "neurotoxinglass"
name = "Neurotoxin" name = "Neurotoxin"
desc = "A drink that is guaranteed to knock you silly." desc = "A drink that is guaranteed to knock you silly."
CoM = list("x"=16, "y"=8)
if("hippiesdelight") if("hippiesdelight")
icon_state = "hippiesdelightglass" icon_state = "hippiesdelightglass"
name = "Hippie's Delight" name = "Hippie's Delight"
desc = "A drink enjoyed by people during the 1960's." desc = "A drink enjoyed by people during the 1960's."
CoM = list("x"=16, "y"=8)
if("bananahonk") if("bananahonk")
icon_state = "bananahonkglass" icon_state = "bananahonkglass"
name = "Banana Honk" name = "Banana Honk"
desc = "A drink from Banana Heaven." desc = "A drink from Banana Heaven."
CoM = list("x"=16, "y"=8)
if("silencer") if("silencer")
icon_state = "silencerglass" icon_state = "silencerglass"
name = "Silencer" name = "Silencer"
desc = "A drink from mime Heaven." desc = "A drink from mime Heaven."
CoM = list("x"=16, "y"=9)
if("nothing") if("nothing")
icon_state = "nothing" icon_state = "nothing"
name = "Nothing" name = "Nothing"
desc = "Absolutely nothing." desc = "Absolutely nothing."
CoM = list("x"=16, "y"=10)
if("devilskiss") if("devilskiss")
icon_state = "devilskiss" icon_state = "devilskiss"
name = "Devils Kiss" name = "Devils Kiss"
desc = "Creepy time!" desc = "Creepy time!"
CoM = list("x"=16, "y"=8)
if("changelingsting") if("changelingsting")
icon_state = "changelingsting" icon_state = "changelingsting"
name = "Changeling Sting" name = "Changeling Sting"
desc = "A stingy drink." desc = "A stingy drink."
CoM = list("x"=16, "y"=10)
if("irishcarbomb") if("irishcarbomb")
icon_state = "irishcarbomb" icon_state = "irishcarbomb"
name = "Irish Car Bomb" name = "Irish Car Bomb"
desc = "An irish car bomb." desc = "An irish car bomb."
CoM = list("x"=16, "y"=8)
if("syndicatebomb") if("syndicatebomb")
icon_state = "syndicatebomb" icon_state = "syndicatebomb"
name = "Syndicate Bomb" name = "Syndicate Bomb"
desc = "A syndicate bomb." desc = "A syndicate bomb."
CoM = list("x"=16, "y"=4)
if("erikasurprise") if("erikasurprise")
icon_state = "erikasurprise" icon_state = "erikasurprise"
name = "Erika Surprise" name = "Erika Surprise"
desc = "The surprise is, it's green!" desc = "The surprise is, it's green!"
CoM = list("x"=16, "y"=9)
if("driestmartini") if("driestmartini")
icon_state = "driestmartiniglass" icon_state = "driestmartiniglass"
name = "Driest Martini" name = "Driest Martini"
desc = "Only for the experienced. You think you see sand floating in the glass." desc = "Only for the experienced. You think you see sand floating in the glass."
CoM = list("x"=17, "y"=8)
if("ice") if("ice")
icon_state = "iceglass" icon_state = "iceglass"
name = "Glass of ice" name = "Glass of ice"
desc = "Generally, you're supposed to put something else in there too..." desc = "Generally, you're supposed to put something else in there too..."
CoM = list("x"=16, "y"=10)
if("icecoffee") if("icecoffee")
icon_state = "icedcoffeeglass" icon_state = "icedcoffeeglass"
name = "Iced Coffee" name = "Iced Coffee"
desc = "A drink to perk you up and refresh you!" desc = "A drink to perk you up and refresh you!"
CoM = list("x"=16, "y"=10)
if("coffee") if("coffee")
icon_state = "glass_brown" icon_state = "glass_brown"
name = "Glass of coffee" name = "Glass of coffee"
desc = "Don't drop it, or you'll send scalding liquid and glass shards everywhere." desc = "Don't drop it, or you'll send scalding liquid and glass shards everywhere."
CoM = list("x"=16, "y"=10)
if("bilk") if("bilk")
icon_state = "glass_brown" icon_state = "glass_brown"
name = "Glass of bilk" name = "Glass of bilk"
desc = "A brew of milk and beer. For those alcoholics who fear osteoporosis." desc = "A brew of milk and beer. For those alcoholics who fear osteoporosis."
CoM = list("x"=16, "y"=10)
if("fuel") if("fuel")
icon_state = "dr_gibb_glass" icon_state = "dr_gibb_glass"
name = "Glass of welder fuel" name = "Glass of welder fuel"
desc = "Unless you are an industrial tool, this is probably not safe for consumption." desc = "Unless you are an industrial tool, this is probably not safe for consumption."
CoM = list("x"=16, "y"=10)
if("brownstar") if("brownstar")
icon_state = "brownstar" icon_state = "brownstar"
name = "Brown Star" name = "Brown Star"
desc = "It's not what it sounds like..." desc = "It's not what it sounds like..."
CoM = list("x"=16, "y"=10)
if("grapejuice") if("grapejuice")
icon_state = "grapejuice" icon_state = "grapejuice"
name = "Glass of grape juice" name = "Glass of grape juice"
desc = "It's grrrrrape!" desc = "It's grrrrrape!"
CoM = list("x"=16, "y"=10)
if("grapesoda") if("grapesoda")
icon_state = "grapesoda" icon_state = "grapesoda"
name = "Can of Grape Soda" name = "Can of Grape Soda"
desc = "Looks like a delicious drank!" desc = "Looks like a delicious drank!"
CoM = list("x"=16, "y"=10)
if("icetea") if("icetea")
icon_state = "icedteaglass" icon_state = "icedteaglass"
name = "Iced Tea" name = "Iced Tea"
desc = "No relation to a certain rap artist/ actor." desc = "No relation to a certain rap artist/ actor."
CoM = list("x"=15, "y"=10)
if("grenadine") if("grenadine")
icon_state = "grenadineglass" icon_state = "grenadineglass"
name = "Glass of grenadine syrup" name = "Glass of grenadine syrup"
desc = "Sweet and tangy, a bar syrup used to add color or flavor to drinks." desc = "Sweet and tangy, a bar syrup used to add color or flavor to drinks."
CoM = list("x"=17, "y"=6)
if("milkshake") if("milkshake")
icon_state = "milkshake" icon_state = "milkshake"
name = "Milkshake" name = "Milkshake"
desc = "Glorious brainfreezing mixture." desc = "Glorious brainfreezing mixture."
CoM = list("x"=16, "y"=7)
if("lemonade") if("lemonade")
icon_state = "lemonadeglass" icon_state = "lemonadeglass"
name = "Lemonade" name = "Lemonade"
desc = "Oh the nostalgia..." desc = "Oh the nostalgia..."
CoM = list("x"=16, "y"=10)
if("kiraspecial") if("kiraspecial")
icon_state = "kiraspecial" icon_state = "kiraspecial"
name = "Kira Special" name = "Kira Special"
desc = "Long live the guy who everyone had mistaken for a girl. Baka!" desc = "Long live the guy who everyone had mistaken for a girl. Baka!"
CoM = list("x"=16, "y"=12)
if("rewriter") if("rewriter")
icon_state = "rewriter" icon_state = "rewriter"
name = "Rewriter" name = "Rewriter"
desc = "The secret of the sanctuary of the Libarian..." desc = "The secret of the sanctuary of the Libarian..."
CoM = list("x"=16, "y"=9)
if("suidream") if("suidream")
icon_state = "sdreamglass" icon_state = "sdreamglass"
name = "Sui Dream" name = "Sui Dream"
desc = "A froofy, fruity, and sweet mixed drink. Understanding the name only brings shame." desc = "A froofy, fruity, and sweet mixed drink. Understanding the name only brings shame."
CoM = list("x"=16, "y"=5)
if("melonliquor") if("melonliquor")
icon_state = "emeraldglass" icon_state = "emeraldglass"
name = "Glass of Melon Liquor" name = "Glass of Melon Liquor"
desc = "A relatively sweet and fruity 46 proof liquor." desc = "A relatively sweet and fruity 46 proof liquor."
CoM = list("x"=16, "y"=5)
if("bluecuracao") if("bluecuracao")
icon_state = "curacaoglass" icon_state = "curacaoglass"
name = "Glass of Blue Curacao" name = "Glass of Blue Curacao"
desc = "Exotically blue, fruity drink, distilled from oranges." desc = "Exotically blue, fruity drink, distilled from oranges."
CoM = list("x"=16, "y"=5)
if("absinthe") if("absinthe")
icon_state = "absintheglass" icon_state = "absintheglass"
name = "Glass of Absinthe" name = "Glass of Absinthe"
desc = "Wormwood, anise, oh my." desc = "Wormwood, anise, oh my."
CoM = list("x"=16, "y"=5)
if("pwine") if("pwine")
icon_state = "pwineglass" icon_state = "pwineglass"
name = "Glass of ???" name = "Glass of ???"
desc = "A black ichor with an oily purple sheer on top. Are you sure you should drink this?" desc = "A black ichor with an oily purple sheer on top. Are you sure you should drink this?"
CoM = list("x"=16, "y"=5)
else else
icon_state ="glass_brown" icon_state ="glass_brown"
name = "Glass of ..what?" name = "Glass of ..what?"
desc = "You can't really tell what this is." desc = "You can't really tell what this is."
CoM = list("x"=16, "y"=10)
else else
icon_state = "glass_empty" icon_state = "glass_empty"
name = "Drinking glass" name = "Drinking glass"
desc = "Your standard drinking glass" desc = "Your standard drinking glass"
CoM = list("x"=16, "y"=10)
return return
// for /obj/machinery/vending/sovietsoda // for /obj/machinery/vending/sovietsoda

View File

@@ -7,6 +7,7 @@
desc = "A jar. You're not sure what it's supposed to hold." desc = "A jar. You're not sure what it's supposed to hold."
icon_state = "jar" icon_state = "jar"
item_state = "beaker" item_state = "beaker"
CoM = list("x"=15, "y"=8)
New() New()
..() ..()
reagents.add_reagent("slime", 50) reagents.add_reagent("slime", 50)

View File

@@ -9,6 +9,7 @@
var/trash = null var/trash = null
var/slice_path var/slice_path
var/slices_num var/slices_num
CoM = list("x"=15, "y"=15)
//Placeholder for effect that trigger on eating that aren't tied to reagents. //Placeholder for effect that trigger on eating that aren't tied to reagents.
/obj/item/weapon/reagent_containers/food/snacks/proc/On_Consume(var/mob/M) /obj/item/weapon/reagent_containers/food/snacks/proc/On_Consume(var/mob/M)
@@ -107,7 +108,7 @@
return 0 return 0
/obj/item/weapon/reagent_containers/food/snacks/afterattack(obj/target, mob/user, proximity) /obj/item/weapon/reagent_containers/food/snacks/afterattack(obj/target, mob/user, proximity)
return return ..()
/obj/item/weapon/reagent_containers/food/snacks/examine() /obj/item/weapon/reagent_containers/food/snacks/examine()
set src in view() set src in view()