mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
Makes coffee cups somewhat work
This commit is contained in:
@@ -6,38 +6,38 @@
|
|||||||
volume = 30
|
volume = 30
|
||||||
center_of_mass = list("x"=16, "y"=16)
|
center_of_mass = list("x"=16, "y"=16)
|
||||||
|
|
||||||
on_reagent_change()
|
/obj/item/weapon/reagent_containers/food/drinks/cup/on_reagent_change()
|
||||||
if (reagents.reagent_list.len > 0)
|
if (reagents.reagent_list.len > 0)
|
||||||
var/datum/reagent/R = reagents.get_master_reagent()
|
var/datum/reagent/R = reagents.get_master_reagent()
|
||||||
|
|
||||||
if(R.cup_icon_state)
|
|
||||||
icon_state = R.cup_icon_state
|
|
||||||
else
|
|
||||||
icon_state = "cup_brown"
|
|
||||||
|
|
||||||
if(R.cup_name)
|
|
||||||
name = R.cup_name
|
|
||||||
else
|
|
||||||
name = "Cup of.. what?"
|
|
||||||
|
|
||||||
if(R.cup_desc)
|
|
||||||
desc = R.cup_desc
|
|
||||||
else
|
|
||||||
desc = "You can't really tell what this is."
|
|
||||||
|
|
||||||
if(R.cup_center_of_mass)
|
|
||||||
center_of_mass = R.cup_center_of_mass
|
|
||||||
else
|
|
||||||
center_of_mass = list("x"=16, "y"=16)
|
|
||||||
|
|
||||||
if(R.price_tag)
|
|
||||||
price_tag = R.price_tag
|
|
||||||
else
|
|
||||||
price_tag = null
|
|
||||||
|
|
||||||
|
if(R.cup_icon_state)
|
||||||
|
icon_state = R.cup_icon_state
|
||||||
|
else
|
||||||
|
icon_state = "cup_brown"
|
||||||
|
|
||||||
|
if(R.cup_name)
|
||||||
|
name = R.cup_name
|
||||||
|
else
|
||||||
|
name = "Cup of.. what?"
|
||||||
|
|
||||||
|
if(R.cup_desc)
|
||||||
|
desc = R.cup_desc
|
||||||
|
else
|
||||||
|
desc = "You can't really tell what this is."
|
||||||
|
|
||||||
|
if(R.cup_center_of_mass)
|
||||||
|
center_of_mass = R.cup_center_of_mass
|
||||||
else
|
else
|
||||||
icon_state = "cup_empty"
|
|
||||||
name = "coffee cup"
|
|
||||||
desc = "The container of oriental luxuries."
|
|
||||||
center_of_mass = list("x"=16, "y"=16)
|
center_of_mass = list("x"=16, "y"=16)
|
||||||
return
|
|
||||||
|
if(R.price_tag)
|
||||||
|
price_tag = R.price_tag
|
||||||
|
else
|
||||||
|
price_tag = null
|
||||||
|
|
||||||
|
else
|
||||||
|
icon_state = "cup_empty"
|
||||||
|
name = "coffee cup"
|
||||||
|
desc = "The container of oriental luxuries."
|
||||||
|
center_of_mass = list("x"=16, "y"=16)
|
||||||
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user