mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
Shot glasses
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
/obj/item/weapon/reagent_containers/food/drinks/drinkingglass/shotglass
|
||||
name = "shot glass"
|
||||
desc = "A smaller glass for bigger beverages."
|
||||
icon_state = "shotglass"
|
||||
amount_per_transfer_from_this = 10
|
||||
volume = 15
|
||||
materials = list(MAT_GLASS=100)
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/drinks/drinkingglass/shotglass/on_reagent_change()
|
||||
overlays.Cut()
|
||||
|
||||
if(reagents.total_volume)
|
||||
var/image/filling = image('icons/obj/reagentfillings.dmi', src, "[icon_state]1")
|
||||
switch(reagents.total_volume)
|
||||
if(0 to 4) filling.icon_state = "[icon_state]1"
|
||||
if(5 to 11) filling.icon_state = "[icon_state]5"
|
||||
if(12 to INFINITY) filling.icon_state = "[icon_state]12"
|
||||
|
||||
filling.icon += mix_color_from_reagents(reagents.reagent_list)
|
||||
overlays += filling
|
||||
name = "shot glass of " + reagents.get_master_reagent_name()
|
||||
else
|
||||
name = "shot glass"
|
||||
Reference in New Issue
Block a user