mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
fix broken dish persistent sprite (#26627)
This commit is contained in:
@@ -281,7 +281,8 @@
|
||||
reagent = LIQUIDBUTTER
|
||||
|
||||
/obj/effect/decal/cleanable/virusdish
|
||||
name = "broken virus containment dish"
|
||||
name = "broken growth dish"
|
||||
desc = "Probably not safe to step on it with your feet naked. Someone should clean it up."
|
||||
icon = 'icons/obj/virology.dmi'
|
||||
icon_state = "brokendish-outline"
|
||||
density = 0
|
||||
@@ -290,6 +291,7 @@
|
||||
mouse_opacity = 1
|
||||
layer = OBJ_LAYER
|
||||
plane = OBJ_PLANE
|
||||
persistent_type_replacement = /obj/effect/decal/cleanable/virusdish/persistent
|
||||
var/last_openner
|
||||
var/datum/disease2/disease/contained_virus
|
||||
|
||||
@@ -319,3 +321,8 @@
|
||||
perp.infect_disease2(contained_virus, notes="(Contact, from [perp.lying?"lying":"standing"] over a broken virus dish[last_openner ? " broken by [last_openner]" : ""])")
|
||||
else if (bleeding && (contained_virus.spread & SPREAD_BLOOD))
|
||||
perp.infect_disease2(contained_virus, notes="(Blood, from [perp.lying?"lying":"standing"] over a broken virus dish[last_openner ? " broken by [last_openner]" : ""])")
|
||||
|
||||
/obj/effect/decal/cleanable/virusdish/persistent
|
||||
desc = "Whatever kind of pathogenic culture was in there has long since decayed. Someone should still clean it up eventually."
|
||||
icon_state = "brokendish-persistent"
|
||||
persistent_type_replacement = null
|
||||
|
||||
@@ -156,6 +156,10 @@ var/list/virusdishes = list()
|
||||
if (open)
|
||||
contained_virus = null
|
||||
growth = 0
|
||||
if (analysed)
|
||||
info = ""
|
||||
analysed = FALSE
|
||||
visible_message("<span class='danger'>The info sticker falls of \the [src].</span>")
|
||||
update_icon()
|
||||
|
||||
/obj/item/weapon/virusdish/update_icon()
|
||||
@@ -372,6 +376,8 @@ var/list/virusdishes = list()
|
||||
|
||||
/obj/item/weapon/virusdish/examine(var/mob/user)
|
||||
..()
|
||||
if(!contained_virus)
|
||||
to_chat(user, "<span class='notice'>This one appears to have been disinfected.</span>")
|
||||
if(open)
|
||||
to_chat(user, "<span class='notice'>Its lid is open!</span>")
|
||||
else
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Reference in New Issue
Block a user