Update rcs.dm (#31880)

This commit is contained in:
CRUNCH
2026-04-18 22:09:43 +01:00
committed by GitHub
parent 746e889732
commit c39d5923fa
+7 -4
View File
@@ -17,6 +17,7 @@
usesound = 'sound/weapons/flash.ogg'
origin_tech = "bluespace=3"
materials = list(MAT_METAL = 5000, MAT_GLASS = 3750)
new_attack_chain = TRUE
/// Power cell (10000W)
var/obj/item/stock_parts/cell/high/rcell = null
/// Selected telepad
@@ -46,10 +47,13 @@
/**
* Used to select telepad location.
*/
/obj/item/rcs/attack_self__legacy__attackchain(mob/user)
/obj/item/rcs/activate_self(mob/user)
if(..())
return ITEM_INTERACT_COMPLETE
if(teleporting)
to_chat(user, SPAN_WARNING("Error: Unable to change destination while in use."))
return
return ITEM_INTERACT_COMPLETE
var/list/L = list() // List of avaliable telepads
var/list/areaindex = list() // Telepad area location
@@ -74,7 +78,7 @@
else // Else choose the value of the selection
pad = L[select]
playsound(src, 'sound/effects/pop.ogg', 25, TRUE) // And play a sound either way.
return ITEM_INTERACT_COMPLETE
/**
* Returns a random location in a z level
@@ -101,7 +105,6 @@
to_chat(user, SPAN_BOLDWARNING("Warning: Safeties disabled."))
return TRUE
/obj/item/rcs/proc/try_send_container(mob/user, obj/structure/closet/C)
if(teleporting)
to_chat(user, SPAN_WARNING("You're already using [src]!"))