WIP
This commit is contained in:
@@ -78,15 +78,14 @@
|
||||
. = ..()
|
||||
setStyle(style, TRUE) //Upon initialization, give the supplypod an iconstate, name, and description based on the "style" variable. This system is important for the centcom_podlauncher to function correctly
|
||||
|
||||
/obj/structure/closet/supplypod/update_icon()
|
||||
cut_overlays()
|
||||
/obj/structure/closet/supplypod/closet_update_overlays(list/new_overlays)
|
||||
. = new_overlays
|
||||
if (style == STYLE_SEETHROUGH || style == STYLE_INVISIBLE) //If we're invisible, we dont bother adding any overlays
|
||||
return
|
||||
if (opened)
|
||||
. += "[icon_state]_open"
|
||||
else
|
||||
if (opened)
|
||||
add_overlay("[icon_state]_open")
|
||||
else
|
||||
add_overlay("[icon_state]_door")
|
||||
. += "[icon_state]_door"
|
||||
|
||||
/obj/structure/closet/supplypod/proc/setStyle(chosenStyle, var/duringInit = FALSE) //Used to give the sprite an icon state, name, and description
|
||||
if (!duringInit && style == chosenStyle) //Check if the input style is already the same as the pod's style. This happens in centcom_podlauncher, and as such we set the style to STYLE_CENTCOM.
|
||||
|
||||
@@ -31,14 +31,14 @@
|
||||
ready = FALSE
|
||||
update_icon()
|
||||
|
||||
/obj/item/supplypod_beacon/update_icon()
|
||||
cut_overlays()
|
||||
/obj/item/supplypod_beacon/update_overlays()
|
||||
. = ..()
|
||||
if (launched)
|
||||
add_overlay("sp_green")
|
||||
. += "sp_green"
|
||||
else if (ready)
|
||||
add_overlay("sp_yellow")
|
||||
. += "sp_yellow"
|
||||
else if (linked)
|
||||
add_overlay("sp_orange")
|
||||
. += "sp_orange"
|
||||
|
||||
/obj/item/supplypod_beacon/proc/endLaunch()
|
||||
launched = FALSE
|
||||
|
||||
Reference in New Issue
Block a user