diff --git a/code/game/objects/structures/displaycase.dm b/code/game/objects/structures/displaycase.dm index 9c908942ca2..a04eaa3f48b 100644 --- a/code/game/objects/structures/displaycase.dm +++ b/code/game/objects/structures/displaycase.dm @@ -10,6 +10,7 @@ max_integrity = 200 integrity_failure = 25 var/obj/item/showpiece = null +<<<<<<< HEAD var/obj/item/showpiece_type = null //This allows for showpieces that can only hold items if they're the same istype as this. var/alert = TRUE var/open = FALSE @@ -18,6 +19,24 @@ var/obj/item/electronics/airlock/electronics var/start_showpiece_type = null //add type for items on display var/list/start_showpieces = list() //Takes sublists in the form of list("type" = /obj/item/bikehorn, "trophy_message" = "henk") +======= + ///This allows for showpieces that can only hold items if they're the same istype as this. + var/obj/item/showpiece_type = null + var/alert = TRUE + var/open = FALSE + var/openable = TRUE + ///Is the case made of glass? Should it sound like that when it is being whacked? + var/shatter = TRUE + ///If the case should be completely locked out at green alert, for cases containing equipment intended to be accessed only by antagonists or after threat level is raised + var/security_level_locked = SEC_LEVEL_GREEN + ///If we have a custom glass overlay to use. + var/custom_glass_overlay = FALSE + var/obj/item/electronics/airlock/electronics + ///add type for items on display + var/start_showpiece_type = null + ///Takes sublists in the form of list("type" = /obj/item/bikehorn, "trophy_message" = "henk") + var/list/start_showpieces = list() +>>>>>>> ac769b62cf... Make icon2base64 calls use frame=1 (#7596) var/trophy_message = "" var/glass_fix = TRUE @@ -116,8 +135,13 @@ /obj/structure/displaycase/attackby(obj/item/W, mob/user, params) if(W.GetID() && !broken && openable) +<<<<<<< HEAD if(allowed(user)) to_chat(user, "You [open ? "close":"open"] [src].") +======= + if(open) //You do not require access to close a case, only to open it. + to_chat(user, "You close [src].") +>>>>>>> ac769b62cf... Make icon2base64 calls use frame=1 (#7596) toggle_lock(user) else to_chat(user, "Access denied.") @@ -420,7 +444,7 @@ data["product_icon"] = null if(showpiece) data["product_name"] = capitalize(showpiece.name) - var/base64 = icon2base64(icon(showpiece.icon, showpiece.icon_state)) + var/base64 = icon2base64(icon(showpiece.icon, showpiece.icon_state, frame=1)) data["product_icon"] = base64 data["registered"] = register data["product_cost"] = sale_price diff --git a/code/modules/vending/_vending.dm b/code/modules/vending/_vending.dm index 3c538089578..d5ea17bfe9a 100644 --- a/code/modules/vending/_vending.dm +++ b/code/modules/vending/_vending.dm @@ -970,7 +970,7 @@ GLOBAL_LIST_EMPTY(vending_products) if(base64_cache[T.type]) base64 = base64_cache[T.type] else - base64 = icon2base64(icon(T.icon, T.icon_state)) + base64 = icon2base64(icon(T.icon, T.icon_state, frame=1)) base64_cache[T.type] = base64 break var/list/data = list(