mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-27 17:41:50 +00:00
## About The Pull Request Title. ## Why It's Good For The Game So the beer bottle ring uses this sprite.  But, when you open it, beer bottles. I hate magic and love consistency so now it's properly beer cans. ## Changelog 🆑 fix: The Beer Sixpack no longer magically turns into bottles. /🆑
51 lines
1.7 KiB
Plaintext
51 lines
1.7 KiB
Plaintext
/obj/item/storage/cans
|
|
name = "can ring"
|
|
desc = "Holds up to six drink cans, and select bottles."
|
|
icon = 'icons/obj/storage/storage.dmi'
|
|
icon_state = "canholder"
|
|
inhand_icon_state = "cola"
|
|
lefthand_file = 'icons/mob/inhands/items/drinks_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/items/drinks_righthand.dmi'
|
|
custom_materials = list(/datum/material/plastic = HALF_SHEET_MATERIAL_AMOUNT*1.2)
|
|
max_integrity = 500
|
|
|
|
/obj/item/storage/cans/suicide_act(mob/living/carbon/user)
|
|
user.visible_message(span_suicide("[user] begins popping open a final cold one with the boys! It looks like [user.p_theyre()] trying to commit suicide!"))
|
|
return BRUTELOSS
|
|
|
|
/obj/item/storage/cans/update_icon_state()
|
|
icon_state = "[initial(icon_state)][contents.len]"
|
|
return ..()
|
|
|
|
/obj/item/storage/cans/Initialize(mapload)
|
|
. = ..()
|
|
update_appearance()
|
|
|
|
/obj/item/storage/cans/Initialize(mapload)
|
|
. = ..()
|
|
atom_storage.max_specific_storage = WEIGHT_CLASS_SMALL
|
|
atom_storage.max_total_storage = 12
|
|
atom_storage.max_slots = 6
|
|
atom_storage.set_holdable(list(
|
|
/obj/item/reagent_containers/cup/soda_cans,
|
|
/obj/item/reagent_containers/cup/glass/bottle/beer,
|
|
/obj/item/reagent_containers/cup/glass/bottle/ale,
|
|
/obj/item/reagent_containers/cup/glass/waterbottle,
|
|
))
|
|
|
|
/obj/item/storage/cans/sixsoda
|
|
name = "soda bottle ring"
|
|
desc = "Holds six soda cans. Remember to recycle when you're done!"
|
|
|
|
/obj/item/storage/cans/sixsoda/PopulateContents()
|
|
for(var/i in 1 to 6)
|
|
new /obj/item/reagent_containers/cup/soda_cans/cola(src)
|
|
|
|
/obj/item/storage/cans/sixbeer
|
|
name = "beer can ring"
|
|
desc = "Holds six beers. Remember to recycle when you're done!"
|
|
|
|
/obj/item/storage/cans/sixbeer/PopulateContents()
|
|
for(var/i in 1 to 6)
|
|
new /obj/item/reagent_containers/cup/soda_cans/beer(src)
|