mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-19 13:54:51 +00:00
Removes a very large amount of world loops. Adds a macro to painlessly generate a global list, and the needed code to modify the list when an object is made or deleted automatically. Cleans up some commented out code.
52 lines
1.3 KiB
Plaintext
52 lines
1.3 KiB
Plaintext
/obj/item/device/radio/beacon
|
|
name = "tracking beacon"
|
|
desc = "A beacon used by a teleporter."
|
|
icon_state = "beacon"
|
|
item_state = "signaler"
|
|
var/code = "electronic"
|
|
origin_tech = list(TECH_BLUESPACE = 1)
|
|
|
|
GLOBAL_LIST_BOILERPLATE(all_beacons, /obj/item/device/radio/beacon)
|
|
|
|
/obj/item/device/radio/beacon/hear_talk()
|
|
return
|
|
|
|
|
|
/obj/item/device/radio/beacon/send_hear()
|
|
return null
|
|
|
|
|
|
/obj/item/device/radio/beacon/verb/alter_signal(t as text)
|
|
set name = "Alter Beacon's Signal"
|
|
set category = "Object"
|
|
set src in usr
|
|
|
|
if ((usr.canmove && !( usr.restrained() )))
|
|
src.code = t
|
|
if (!( src.code ))
|
|
src.code = "beacon"
|
|
src.add_fingerprint(usr)
|
|
return
|
|
|
|
|
|
/obj/item/device/radio/beacon/bacon //Probably a better way of doing this, I'm lazy.
|
|
proc/digest_delay()
|
|
spawn(600)
|
|
qdel(src)
|
|
|
|
|
|
// SINGULO BEACON SPAWNER
|
|
|
|
/obj/item/device/radio/beacon/syndicate
|
|
name = "suspicious beacon"
|
|
desc = "A label on it reads: <i>Activate to have a singularity beacon teleported to your location</i>."
|
|
origin_tech = list(TECH_BLUESPACE = 1, TECH_ILLEGAL = 7)
|
|
|
|
/obj/item/device/radio/beacon/syndicate/attack_self(mob/user as mob)
|
|
if(user)
|
|
user << "<span class='notice'>Locked In</span>"
|
|
new /obj/machinery/power/singularity_beacon/syndicate( user.loc )
|
|
playsound(src, 'sound/effects/pop.ogg', 100, 1, 1)
|
|
qdel(src)
|
|
return
|