mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 23:51:17 +01:00
Adds new drinking glasses and coffee cups (#12133)
This commit is contained in:
@@ -0,0 +1,166 @@
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup
|
||||
name = "coffee cup"
|
||||
desc = "A plain white coffee cup."
|
||||
icon = 'icons/obj/drink_glasses/coffecup.dmi'
|
||||
icon_state = "coffeecup"
|
||||
volume = 30
|
||||
var/fillsource = "coffeecup"
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/update_icon()
|
||||
cut_overlays()
|
||||
|
||||
if(reagents.total_volume)
|
||||
var/image/filling = image('icons/obj/drink_glasses/coffecup.dmi', src, null)
|
||||
var/percent = round((reagents.total_volume / volume) * 100)
|
||||
switch(percent)
|
||||
if(0 to 39)
|
||||
filling.icon_state = null
|
||||
return
|
||||
if(40 to 79) filling.icon_state = "[fillsource]40"
|
||||
if(80 to 99) filling.icon_state = "[fillsource]80"
|
||||
if(100 to INFINITY) filling.icon_state = "[fillsource]100"
|
||||
filling.color = reagents.get_color()
|
||||
add_overlay(filling)
|
||||
|
||||
// Nations
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/sol
|
||||
name = "\improper sol coffee cup"
|
||||
desc = "A blue coffee cup emblazoned with the crest of the Sol Alliance."
|
||||
icon_state = "coffeecup_sol"
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/dom
|
||||
name = "\improper Dominian coffee cup"
|
||||
desc = "A coffee cup with Dominia's flag proudly displayed on it."
|
||||
icon_state = "coffeecup_dom"
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/nka
|
||||
name = "\improper NKA coffee cup"
|
||||
desc = "A coffee cup imprinted with the tree symbolising the flag of the New Kingdom of Adhomai."
|
||||
icon_state = "coffeecup_nka"
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/pra
|
||||
name = "\improper PRA coffee cup"
|
||||
desc = "A coffee cup bearing the flag of the People's Republic of Adhomai."
|
||||
icon_state = "coffeecup_pra"
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/metal/dpra
|
||||
name = "\improper DPRA coffee cup"
|
||||
desc = "A metal coffee cup bearing the flag of the Democratic People's Republic of Adhomai."
|
||||
icon_state = "coffeecup_dpra"
|
||||
|
||||
// Organisations
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/NT
|
||||
name = "\improper NT coffee cup"
|
||||
desc = "A blue NanoTrasen coffee cup."
|
||||
icon_state = "coffeecup_NT"
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/tcfl
|
||||
name = "\improper Tau Ceti Foreign Legion coffee cup"
|
||||
desc = "A coffee cup with the TCFL emblem emblazoned on it."
|
||||
icon_state = "coffeecup_tcfl"
|
||||
|
||||
// Symbols, markings
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/one
|
||||
name = "#1 coffee cup"
|
||||
desc = "A white coffee cup, prominently featuring a #1."
|
||||
icon_state = "coffeecup_one"
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/puni
|
||||
name = "#1 monkey coffee cup"
|
||||
desc = "A white coffee cup, prominently featuring a \"#1 monkey\" decal."
|
||||
icon_state = "coffeecup_puni"
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/heart
|
||||
name = "heart coffee cup"
|
||||
desc = "A white coffee cup, it prominently features a red heart."
|
||||
icon_state = "coffeecup_heart"
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/pawn
|
||||
name = "pawn coffee cup"
|
||||
desc = "A black coffee cup adorned with the image of a red chess pawn."
|
||||
icon_state = "coffeecup_pawn"
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/diona
|
||||
name = "diona nymph coffee cup"
|
||||
desc = "A green coffee cup featuring the image of a diona nymph."
|
||||
icon_state = "coffeecup_diona"
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/britcup
|
||||
name = "british coffee cup"
|
||||
desc = "A coffee cup with the British flag emblazoned on it."
|
||||
icon_state = "coffeecup_brit"
|
||||
|
||||
// Pure colors & other
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/black
|
||||
name = "black coffee cup"
|
||||
desc = "A sleek black coffee cup."
|
||||
icon_state = "coffeecup_black"
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/green
|
||||
name = "green coffee cup"
|
||||
desc = "A pale green and pink coffee cup."
|
||||
icon_state = "coffeecup_green"
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/green/dark
|
||||
desc = "A dark green coffee cup."
|
||||
icon_state = "coffeecup_corp"
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/rainbow
|
||||
name = "rainbow coffee cup"
|
||||
desc = "A rainbow coffee cup. The colors are almost as blinding as a welder."
|
||||
icon_state = "coffeecup_rainbow"
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/metal
|
||||
name = "metal coffee cup"
|
||||
desc = "A metal coffee cup. You're not sure which metal."
|
||||
icon_state = "coffeecup_metal"
|
||||
flags = OPENCONTAINER | CONDUCT
|
||||
fragile = 0
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/glass
|
||||
name = "glass coffee cup"
|
||||
desc = "A glass coffee cup, using space age technology to keep it cool for use."
|
||||
icon_state = "glasscoffeecup"
|
||||
fillsource = "glasscoffeecup"
|
||||
|
||||
// Tall coffee cups
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/tall
|
||||
name = "tall coffee cup"
|
||||
desc = "An unreasonably tall coffee cup, for when you really need to wake up in the morning."
|
||||
icon = 'icons/obj/drink_glasses/coffecup_tall.dmi'
|
||||
icon_state = "coffeecup_tall"
|
||||
fillsource = "coffeecup_tall"
|
||||
volume = 60
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/tall/update_icon()
|
||||
cut_overlays()
|
||||
|
||||
if(reagents.total_volume)
|
||||
var/image/filling = image('icons/obj/drink_glasses/coffecup_tall.dmi', src, null)
|
||||
var/percent = round((reagents.total_volume / volume) * 100)
|
||||
switch(percent)
|
||||
if(0 to 69)
|
||||
filling.icon_state = null
|
||||
return
|
||||
if(70 to 89) filling.icon_state = "[fillsource]70"
|
||||
if(90 to 99) filling.icon_state = "[fillsource]90"
|
||||
if(100 to INFINITY) filling.icon_state = "[fillsource]100"
|
||||
filling.color = reagents.get_color()
|
||||
add_overlay(filling)
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/tall/black
|
||||
name = "tall black coffee cup"
|
||||
desc = "An unreasonably tall coffee cup, for when you really need to wake up in the morning. This one is black."
|
||||
icon_state = "coffeecup_tall_black"
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/tall/metal
|
||||
name = "tall metal coffee cup"
|
||||
desc = "An unreasonably tall coffee cup, for when you really need to wake up in the morning. This one is made of metal."
|
||||
icon_state = "coffeecup_tall_metal"
|
||||
flags = OPENCONTAINER | CONDUCT
|
||||
fragile = 0
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/tall/rainbow
|
||||
name = "tall rainbow coffee cup"
|
||||
desc = "An unreasonably tall coffee cup, for when you really need to wake up in the morning. This one is rainbow colored."
|
||||
icon_state = "coffeecup_tall_rainbow"
|
||||
@@ -0,0 +1,132 @@
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass
|
||||
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/on_reagent_change()
|
||||
update_icon()
|
||||
return
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/update_icon()
|
||||
cut_overlays()
|
||||
|
||||
if(reagents.total_volume)
|
||||
var/image/filling = image(icon, src, "[icon_state]10")
|
||||
var/percent = round((reagents.total_volume / volume) * 100)
|
||||
switch(percent)
|
||||
if(0 to 9)
|
||||
filling.icon_state = null
|
||||
return
|
||||
if(10 to 19) filling.icon_state = "[icon_state]10"
|
||||
if(20 to 29) filling.icon_state = "[icon_state]20"
|
||||
if(30 to 39) filling.icon_state = "[icon_state]30"
|
||||
if(40 to 49) filling.icon_state = "[icon_state]40"
|
||||
if(50 to 59) filling.icon_state = "[icon_state]50"
|
||||
if(60 to 69) filling.icon_state = "[icon_state]60"
|
||||
if(70 to 79) filling.icon_state = "[icon_state]70"
|
||||
if(80 to 89) filling.icon_state = "[icon_state]80"
|
||||
if(90 to 99) filling.icon_state = "[icon_state]90"
|
||||
if(100 to INFINITY) filling.icon_state = "[icon_state]100"
|
||||
filling.color = reagents.get_color()
|
||||
add_overlay(filling)
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/square
|
||||
name = "half-pint glass"
|
||||
icon_state = "square"
|
||||
icon = 'icons/obj/drink_glasses/square.dmi'
|
||||
desc = "Your standard drinking glass."
|
||||
volume = 30
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/rocks
|
||||
name = "rocks glass"
|
||||
desc = "A robust tumbler with a thick, weighted bottom."
|
||||
icon_state = "rocks"
|
||||
icon = 'icons/obj/drink_glasses/rocks.dmi'
|
||||
volume = 20
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/shake
|
||||
name = "sherry glass"
|
||||
desc = "Stemware with an untapered conical bowl."
|
||||
icon_state = "shake"
|
||||
icon = 'icons/obj/drink_glasses/shake.dmi'
|
||||
volume = 30
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/cocktail
|
||||
name = "cocktail glass"
|
||||
desc = "Fragile stemware with a stout conical bowl. Don't spill."
|
||||
icon_state = "cocktail"
|
||||
icon = 'icons/obj/drink_glasses/cocktail.dmi'
|
||||
volume = 15
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/shot
|
||||
name = "shot glass"
|
||||
desc = "A small glass, designed so that its contents can be consumed in one gulp."
|
||||
icon_state = "shot"
|
||||
icon = 'icons/obj/drink_glasses/shot.dmi'
|
||||
volume = 5
|
||||
matter = list(MATERIAL_GLASS = 15)
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/pint
|
||||
name = "pint glass"
|
||||
icon_state = "pint"
|
||||
icon = 'icons/obj/drink_glasses/pint.dmi'
|
||||
volume = 60
|
||||
matter = list(MATERIAL_GLASS = 125)
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/mug
|
||||
name = "glass mug"
|
||||
desc = "A heavy mug with thick walls."
|
||||
icon_state = "mug"
|
||||
icon = 'icons/obj/drink_glasses/mug.dmi'
|
||||
volume = 40
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/wine
|
||||
name = "wine glass"
|
||||
desc = "A piece of elegant stemware."
|
||||
icon_state = "wine"
|
||||
icon = 'icons/obj/drink_glasses/wine.dmi'
|
||||
volume = 25
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/flute
|
||||
name = "flute glass"
|
||||
desc = "A piece of very elegant stemware."
|
||||
icon_state = "flute"
|
||||
icon = 'icons/obj/drink_glasses/flute.dmi'
|
||||
volume = 25
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/carafe
|
||||
name = "pitcher"
|
||||
desc = "A handled glass pitcher."
|
||||
icon_state = "carafe"
|
||||
icon = 'icons/obj/drink_glasses/carafe.dmi'
|
||||
volume = 120
|
||||
matter = list(MATERIAL_GLASS = 250)
|
||||
possible_transfer_amounts = list(5,10,15,30,60,120)
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/teacup
|
||||
name = "teacup"
|
||||
desc = "A plain white porcelain teacup."
|
||||
icon = 'icons/obj/drink_glasses/teacup.dmi'
|
||||
icon_state = "teacup"
|
||||
volume = 20
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/coffeecup/teacup/update_icon()
|
||||
cut_overlays()
|
||||
|
||||
if(reagents.total_volume)
|
||||
var/image/filling = image('icons/obj/drink_glasses/teacup.dmi', src, "[icon_state]100")
|
||||
filling.color = reagents.get_color()
|
||||
add_overlay(filling)
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/cognac
|
||||
name = "snifter glass"
|
||||
desc = "A snitfer, also known as a cognac glass, made for serving aged spirits."
|
||||
icon_state = "cognac"
|
||||
icon = 'icons/obj/drink_glasses/cognac.dmi'
|
||||
volume = 20
|
||||
|
||||
/obj/item/reagent_containers/food/drinks/drinkingglass/newglass/goblet
|
||||
name = "goblet"
|
||||
desc = "A glass goblet, used to deliver alcohol to the upper class since ancient times."
|
||||
icon_state = "goblet"
|
||||
icon = 'icons/obj/drink_glasses/goblet.dmi'
|
||||
volume = 25
|
||||
|
||||
Reference in New Issue
Block a user