Skip to content

Commit

Permalink
Базированные сьюты
Browse files Browse the repository at this point in the history
Работает как-то криво, нужно оверрайдить скорее всего все сьюты.
  • Loading branch information
LordNest committed Dec 30, 2023
1 parent 8f8027d commit eafe429
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 11 deletions.
Binary file added maps/sierra/icons/obj/suitstorage.dmi
Binary file not shown.
30 changes: 28 additions & 2 deletions maps/sierra/machinery/machinery.dm
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,30 @@
/obj/machinery/suit_cycler/pilot
req_access = list(access_explorer) //because unathi version of expeditonary suit it shit

/obj/machinery/suit_storage_unit/security/Initialize()
. = ..()
ssu_color = "#cc0000"

/obj/machinery/suit_storage_unit/mining/Initialize()
. = ..()
ssu_color = "#b88a3b"

/obj/machinery/suit_storage_unit/medical/Initialize()
. = ..()
ssu_color = "#55aaaa"

/obj/machinery/suit_storage_unit/engineering/Initialize()
. = ..()
ssu_color = "#ffbf00"

/obj/machinery/suit_storage_unit/atmos/Initialize()
. = ..()
ssu_color = "#00cccc"

/obj/machinery/suit_storage_unit/science/Initialize()
. = ..()
ssu_color = "#990000"

/obj/machinery/suit_storage_unit/explorer
name = "Exploration Voidsuit Storage Unit"
suit = /obj/item/clothing/suit/space/void/exploration
Expand All @@ -58,7 +82,7 @@
mask = /obj/item/clothing/mask/gas/half
req_access = list(access_explorer)
islocked = 1

ssu_color = "#9966ff"

/obj/machinery/suit_storage_unit/pilot
name = "Expeditionary Pilot Voidsuit Storage Unit"
Expand All @@ -69,9 +93,11 @@
mask = /obj/item/clothing/mask/breath
req_access = list(access_explorer, access_expedition_shuttle_helm)
islocked = 1

ssu_color = "#990000"

/obj/machinery/suit_storage_unit/standard_unit
icon_state = "industrial"
base_icon_state = "industrial"
islocked = 0

/obj/machinery/photocopier/faxmachine/centcomm
Expand Down
18 changes: 9 additions & 9 deletions packs/infinity/machinery/suit_storage.dm
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
/obj/machinery/suit_storage_unit
icon = 'packs/infinity/icons/obj/suitstorage.dmi'
icon_state = "ssu_classic"
var/base_icon_state = "ssu_classic"

icon = 'maps/sierra/icons/obj/suitstorage.dmi'
icon_state = "industrial"
var/base_icon_state = "industrial"
var/ssu_color = "color_overlay_colorable"

/obj/machinery/suit_storage_unit/on_update_icon()
ClearOverlays()
if(ssu_color)
var/image/I = image(icon = icon, icon_state = "[base_icon_state]_colorable")
I.appearance_flags |= RESET_COLOR
I.color = ssu_color
AddOverlays(I)
//if things arent powered, these show anyways
if(panelopen)
AddOverlays(image(icon,"[base_icon_state]_panel"))
Expand Down Expand Up @@ -37,8 +42,3 @@
AddOverlays(overlay_image(icon,"[base_icon_state]_uv", plane = EFFECTS_ABOVE_LIGHTING_PLANE, layer = ABOVE_LIGHTING_LAYER))
else
AddOverlays(overlay_image(icon, "[base_icon_state]_ready", plane = EFFECTS_ABOVE_LIGHTING_PLANE, layer = ABOVE_LIGHTING_LAYER))

/obj/machinery/suit_storage_unit/industrial
name = "industrial suit storage unit"
icon_state = "industrial"
base_icon_state = "industrial"

0 comments on commit eafe429

Please sign in to comment.