Files
Bubberstation/code/modules/wiremod/shell/server.dm
SkyratBot dba5a3798d [MIRROR] Servers now have USB ports (#7285)
* Gives servers a USB port (#60564)

* Servers now have USB ports

Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com>
2021-08-01 11:41:32 +01:00

25 lines
621 B
Plaintext

/**
* # Server
*
* Immobile (but not dense) shells that can interact with
* world.
*/
/obj/structure/server
name = "server"
icon = 'icons/obj/wiremod.dmi'
icon_state = "setup_stationary"
density = TRUE
light_system = MOVABLE_LIGHT
light_on = FALSE
/obj/structure/server/Initialize()
. = ..()
AddComponent(/datum/component/shell, null, SHELL_CAPACITY_VERY_LARGE, SHELL_FLAG_REQUIRE_ANCHOR|SHELL_FLAG_USB_PORT)
/obj/structure/server/wrench_act(mob/living/user, obj/item/tool)
set_anchored(!anchored)
tool.play_tool_sound(src)
balloon_alert(user, "You [anchored?"secure":"unsecure"] [src].")
return TRUE