mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-19 21:28:37 +01:00
3b4bcef49b
* Combines all the engineering borg tools into one multitool Sprites from /tg/ Combines: Wirecutters, Crowbar, Welder, Wrench, Crowbar, Screwdriver * this is a WAY better way to do it * a * dont worry about overlays anymore * Better grippers and better lists In which I go insane having to continually patch exploit after exploit in gripper code, resulting in it looking like a mad man's scribbles. * No deleting shoes when putting them on someone * empty pocket is now empty * RENAMING stuff instead of copypaste * MORE borg stuff * more bugproofing * Admin proc * this * this * Framework for TGUI * Update robot_simple_items.dm * Fix * Framework v2 * Update ModifyRobotMultiBelt.tsx * goooo * Update modify_robot.dm * modify * sub category * . * string to define * some globs * more * . * . * . * add sanely * push that real quick * . * sanity * . * . * . * . * . * . * . * Cut * . * gives to those that need * push * clean up * auto fix * . * . * . * getmodule * Update robot_simple_items.dm * . * untyped * Update stack.dm * . * . * . * . * - * . * Update _map_selection.dm * Update _map_selection.dm --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
60 lines
1.4 KiB
Plaintext
60 lines
1.4 KiB
Plaintext
/obj/structure/ghost_pod/Destroy()
|
|
GLOB.active_ghost_pods -= src
|
|
. = ..()
|
|
|
|
/obj/structure/ghost_pod
|
|
var/spawn_active = FALSE
|
|
|
|
/obj/structure/ghost_pod/manual
|
|
var/remains_active = FALSE
|
|
var/activated = FALSE
|
|
|
|
/obj/structure/ghost_pod/manual/attack_ghost(var/mob/observer/dead/user)
|
|
if(jobban_isbanned(user, JOB_GHOSTROLES))
|
|
to_chat(user, span_warning("You cannot inhabit this creature because you are banned from playing ghost roles."))
|
|
return
|
|
|
|
//No OOC notes
|
|
if (not_has_ooc_text(user))
|
|
return
|
|
|
|
if(!remains_active || busy)
|
|
return
|
|
|
|
if(!activated)
|
|
to_chat(user, span_warning("\The [src] has not yet been activated. Sorry."))
|
|
return
|
|
|
|
if(used)
|
|
to_chat(user, span_warning("Another spirit appears to have gotten to \the [src] before you. Sorry."))
|
|
return
|
|
|
|
busy = TRUE
|
|
var/choice = tgui_alert(user, "Are you certain you wish to activate this pod?", "Control Pod", list("Yes", "No"))
|
|
|
|
if(!choice || choice == "No")
|
|
busy = FALSE
|
|
return
|
|
|
|
else if(used)
|
|
to_chat(user, span_warning("Another spirit appears to have gotten to \the [src] before you. Sorry."))
|
|
busy = FALSE
|
|
return
|
|
|
|
busy = FALSE
|
|
|
|
create_occupant(user)
|
|
|
|
/obj/structure/ghost_pod/proc/ghostpod_startup(var/notify = FALSE)
|
|
GLOB.active_ghost_pods |= src
|
|
if(notify)
|
|
trigger()
|
|
|
|
/obj/structure/ghost_pod/ghost_activated/Initialize(mapload)
|
|
. = ..()
|
|
if(!mapload)
|
|
return INITIALIZE_HINT_LATELOAD
|
|
|
|
/obj/structure/ghost_pod/ghost_activated/LateInitialize()
|
|
ghostpod_startup(spawn_active)
|