mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
41 lines
1.7 KiB
Plaintext
41 lines
1.7 KiB
Plaintext
// Virgo modified syndie beacon, does not give objectives
|
|
|
|
/obj/machinery/syndicate_beacon/virgo/attack_hand(var/mob/user as mob)
|
|
usr.set_machine(src)
|
|
var/dat = "<font color=#005500><i>Scanning [pick("retina pattern", "voice print", "fingerprints", "dna sequence")]...<br>Identity confirmed,<br></i></font>"
|
|
if(istype(user, /mob/living/carbon/human) || istype(user, /mob/living/silicon/ai))
|
|
if(is_special_character(user))
|
|
dat += "<font color=#07700><i>Operative record found. Greetings, Agent [user.name].</i></font><br>"
|
|
else if(charges < 1)
|
|
dat += "<TT>Connection severed.</TT><BR>"
|
|
else
|
|
var/honorific = "Mr."
|
|
if(user.gender == FEMALE)
|
|
honorific = "Ms."
|
|
dat += "<font color=red><i>Identity not found in operative database. What can the Black Market do for you today, [honorific] [user.name]?</i></font><br>"
|
|
if(!selfdestructing)
|
|
dat += "<br><br><A href='?src=\ref[src];betraitor=1;traitormob=\ref[user]'>\"[pick("Send me some supplies!", "Transfer supplies.")]\"</A><BR>"
|
|
dat += temptext
|
|
user << browse(dat, "window=syndbeacon")
|
|
onclose(user, "syndbeacon")
|
|
|
|
/obj/machinery/syndicate_beacon/virgo/Topic(href, href_list)
|
|
if(href_list["betraitor"])
|
|
if(charges < 1)
|
|
updateUsrDialog()
|
|
return
|
|
var/mob/M = locate(href_list["traitormob"])
|
|
if(M.mind.special_role || jobban_isbanned(M, "Syndicate"))
|
|
temptext = "<i>We have no need for you at this time. Have a pleasant day.</i><br>"
|
|
updateUsrDialog()
|
|
return
|
|
charges -= 1
|
|
if(istype(M, /mob/living/carbon/human))
|
|
var/mob/living/carbon/human/N = M
|
|
to_chat(N, "<B>Access granted, here are the supplies!</B>")
|
|
traitors.equip(N)
|
|
message_admins("[N]/([N.ckey]) has recieved an uplink and telecrystals from the syndicate beacon.")
|
|
|
|
updateUsrDialog()
|
|
return
|