Invisible cloning pod fix

This commit is contained in:
SteelSlayer
2020-05-27 13:51:32 -05:00
parent d746971cc7
commit a93c4d9cdc
3 changed files with 15 additions and 7 deletions
+14 -6
View File
@@ -27,7 +27,7 @@ GLOBAL_LIST_INIT(cloner_biomass_items, list(\
desc = "An electronically-lockable pod for growing organic tissue."
density = 1
icon = 'icons/obj/cloning.dmi'
icon_state = "pod_0"
icon_state = "pod_idle"
req_access = list(ACCESS_GENETICS) //For premature unlocking.
var/mob/living/carbon/human/occupant
@@ -419,7 +419,9 @@ GLOBAL_LIST_INIT(cloner_biomass_items, list(\
/obj/machinery/clonepod/screwdriver_act(mob/user, obj/item/I)
. = TRUE
default_deconstruction_screwdriver(user, "[icon_state]_maintenance", "[initial(icon_state)]", I)
// These icon states don't really matter since we need to call update_icon() to handle panel open/closed overlays anyway.
default_deconstruction_screwdriver(user, null, null, I)
update_icon()
/obj/machinery/clonepod/wrench_act(mob/user, obj/item/I)
. = TRUE
@@ -545,11 +547,17 @@ GLOBAL_LIST_INIT(cloner_biomass_items, list(\
/obj/machinery/clonepod/update_icon()
..()
icon_state = "pod_0"
cut_overlays()
if(panel_open)
add_overlay(list("panel_open"))
if(occupant && !(stat & NOPOWER))
icon_state = "pod_1"
else if(mess && !panel_open)
icon_state = "pod_g"
icon_state = "pod_cloning"
else if(mess)
icon_state = "pod_mess"
else
icon_state = "pod_idle"
/obj/machinery/clonepod/relaymove(mob/user)
if(user.stat == CONSCIOUS)
+1 -1
View File
@@ -88,7 +88,7 @@
name = "horrific experiment"
desc = "Some sort of pod filled with blood and vicerea. You swear you can see it moving..."
icon = 'icons/obj/cloning.dmi'
icon_state = "pod_g"
icon_state = "pod_mess"
//Makes a tile fully lit no matter what
Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 7.8 KiB