fix broken dish persistent sprite (#26627)

This commit is contained in:
DeityLink
2020-05-28 11:08:46 +02:00
committed by GitHub
parent 3e484fcad5
commit 386593e7d1
3 changed files with 14 additions and 1 deletions

View File

@@ -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

View File

@@ -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