mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 07:33:34 +01:00
Mass replace
This commit is contained in:
@@ -116,9 +116,9 @@
|
||||
if(3)
|
||||
if(equip_to_reader(card, L))
|
||||
to_chat(usr, "You insert the card into reader slot")
|
||||
else if (equip_to_writer(card, L) && dualslot)
|
||||
else if(equip_to_writer(card, L) && dualslot)
|
||||
to_chat(usr, "You insert the card into writer slot")
|
||||
else if (dualslot)
|
||||
else if(dualslot)
|
||||
to_chat(usr, "There is already something in both slots.")
|
||||
else
|
||||
to_chat(usr, "There is already something in the reader slot.")
|
||||
@@ -146,18 +146,18 @@
|
||||
var/mob/living/L = usr
|
||||
switch(slot)
|
||||
if(1)
|
||||
if (remove_reader(L))
|
||||
if(remove_reader(L))
|
||||
to_chat(L, "You remove the card from reader slot")
|
||||
else
|
||||
to_chat(L, "There is no card in the reader slot")
|
||||
if(2)
|
||||
if (remove_writer(L))
|
||||
if(remove_writer(L))
|
||||
to_chat(L, "You remove the card from writer slot")
|
||||
else
|
||||
to_chat(L, "There is no card in the writer slot")
|
||||
if(3)
|
||||
if (remove_reader(L))
|
||||
if (remove_writer(L))
|
||||
if(remove_reader(L))
|
||||
if(remove_writer(L))
|
||||
to_chat(L, "You remove cards from both slots")
|
||||
else
|
||||
to_chat(L, "You remove the card from reader slot")
|
||||
@@ -167,10 +167,10 @@
|
||||
else
|
||||
to_chat(L, "There are no cards in both slots")
|
||||
if(4)
|
||||
if (!remove_reader(L))
|
||||
if (remove_writer(L))
|
||||
if(!remove_reader(L))
|
||||
if(remove_writer(L))
|
||||
to_chat(L, "You remove the card from writer slot")
|
||||
else if (!dualslot)
|
||||
else if(!dualslot)
|
||||
to_chat(L, "There is no card in the reader slot")
|
||||
else
|
||||
to_chat(L, "There are no cards in both slots")
|
||||
|
||||
@@ -212,15 +212,15 @@
|
||||
qdel(src)
|
||||
return
|
||||
if(2.0)
|
||||
if (prob(25))
|
||||
if(prob(25))
|
||||
qdel(src)
|
||||
return
|
||||
if (prob(50))
|
||||
if(prob(50))
|
||||
for(var/x in verbs)
|
||||
verbs -= x
|
||||
set_broken()
|
||||
if(3.0)
|
||||
if (prob(25))
|
||||
if(prob(25))
|
||||
for(var/x in verbs)
|
||||
verbs -= x
|
||||
set_broken()
|
||||
@@ -229,7 +229,7 @@
|
||||
|
||||
|
||||
blob_act()
|
||||
if (prob(75))
|
||||
if(prob(75))
|
||||
set_broken()
|
||||
density = 0
|
||||
|
||||
@@ -443,7 +443,7 @@
|
||||
|
||||
//Returns percentage of battery charge remaining. Returns -1 if no battery is installed.
|
||||
proc/check_battery_status()
|
||||
if (battery)
|
||||
if(battery)
|
||||
var/obj/item/weapon/stock_parts/cell/B = battery
|
||||
return round(B.charge / (B.maxcharge / 100))
|
||||
else
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
if(!computer.cradle.occupant)
|
||||
overlay.icon_state = "ai-fixer-empty"
|
||||
else
|
||||
if (computer.cradle.occupant.health >= 0 && computer.cradle.occupant.stat != 2)
|
||||
if(computer.cradle.occupant.health >= 0 && computer.cradle.occupant.stat != 2)
|
||||
overlay.icon_state = "ai-fixer-full"
|
||||
else
|
||||
overlay.icon_state = "ai-fixer-404"
|
||||
@@ -39,34 +39,34 @@
|
||||
|
||||
proc/aifixer_menu()
|
||||
var/dat = ""
|
||||
if (computer.cradle.occupant)
|
||||
if(computer.cradle.occupant)
|
||||
var/laws
|
||||
dat += "<h3>Stored AI: [computer.cradle.occupant.name]</h3>"
|
||||
dat += "<b>System integrity:</b> [(computer.cradle.occupant.health+100)/2]%<br>"
|
||||
|
||||
if (computer.cradle.occupant.laws.zeroth)
|
||||
if(computer.cradle.occupant.laws.zeroth)
|
||||
laws += "<b>0:</b> [computer.cradle.occupant.laws.zeroth]<BR>"
|
||||
|
||||
var/number = 1
|
||||
for (var/index = 1, index <= computer.cradle.occupant.laws.inherent.len, index++)
|
||||
for(var/index = 1, index <= computer.cradle.occupant.laws.inherent.len, index++)
|
||||
var/law = computer.cradle.occupant.laws.inherent[index]
|
||||
if (length(law) > 0)
|
||||
if(length(law) > 0)
|
||||
laws += "<b>[number]:</b> [law]<BR>"
|
||||
number++
|
||||
|
||||
for (var/index = 1, index <= computer.cradle.occupant.laws.supplied.len, index++)
|
||||
for(var/index = 1, index <= computer.cradle.occupant.laws.supplied.len, index++)
|
||||
var/law = computer.cradle.occupant.laws.supplied[index]
|
||||
if (length(law) > 0)
|
||||
if(length(law) > 0)
|
||||
laws += "<b>[number]:</b> [law]<BR>"
|
||||
number++
|
||||
|
||||
dat += "<b>Laws:</b><br>[laws]<br>"
|
||||
|
||||
if (computer.cradle.occupant.stat == 2)
|
||||
if(computer.cradle.occupant.stat == 2)
|
||||
dat += "<span class='bad'>AI non-functional</span>"
|
||||
else
|
||||
dat += "<span class='good'>AI functional</span>"
|
||||
if (!computer.cradle.busy)
|
||||
if(!computer.cradle.busy)
|
||||
dat += "<br><br>[topic_link(src,"fix","Begin Reconstruction")]"
|
||||
else
|
||||
dat += "<br><br>Reconstruction in process, please wait.<br>"
|
||||
@@ -77,7 +77,7 @@
|
||||
if(!interactable() || !computer.cradle || ..(href,href_list))
|
||||
return
|
||||
|
||||
if ("fix" in href_list)
|
||||
if("fix" in href_list)
|
||||
var/mob/living/silicon/ai/occupant = computer.cradle.occupant
|
||||
if(!occupant) return
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
computer.overlays += image('icons/obj/computer.dmi', "ai-fixer-on")
|
||||
|
||||
var/i = 0
|
||||
while (occupant.health < 100)
|
||||
while(occupant.health < 100)
|
||||
if(!computer || (computer.stat&~MAINT)) // takes some time, keep checking
|
||||
break
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
occupant.adjustToxLoss(-1)
|
||||
occupant.adjustBruteLoss(-1)
|
||||
occupant.updatehealth()
|
||||
if (occupant.health >= 0 && computer.cradle.occupant.stat == 2)
|
||||
if(occupant.health >= 0 && computer.cradle.occupant.stat == 2)
|
||||
occupant.stat = 0
|
||||
occupant.lying = 0
|
||||
dead_mob_list -= occupant
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
dat += "<br><center><h3>[temp]</h3></center>"
|
||||
dat += "<br><center>Health: [player_hp] | Magic: [player_mp] | Enemy Health: [enemy_hp]</center>"
|
||||
|
||||
if (gameover)
|
||||
if(gameover)
|
||||
dat += "<center><b>[topic_link(src,"newgame","New Game")]"
|
||||
else
|
||||
dat += "<center><b>[topic_link(src,"attack","Attack")] | [topic_link(src,"heal","Heal")] | [topic_link(src,"charge","Recharge Power")]"
|
||||
@@ -89,8 +89,8 @@
|
||||
/datum/file/program/arcade/Topic(href, list/href_list)
|
||||
if(!interactable() || ..(href,href_list))
|
||||
return
|
||||
if (!blocked && !gameover)
|
||||
if ("attack" in href_list)
|
||||
if(!blocked && !gameover)
|
||||
if("attack" in href_list)
|
||||
blocked = 1
|
||||
var/attackamt = rand(2,6)
|
||||
temp = "You attack for [attackamt] damage!"
|
||||
@@ -102,7 +102,7 @@
|
||||
enemy_hp -= attackamt
|
||||
arcade_action()
|
||||
|
||||
else if ("heal" in href_list)
|
||||
else if("heal" in href_list)
|
||||
blocked = 1
|
||||
var/pointamt = rand(1,3)
|
||||
var/healamt = rand(6,8)
|
||||
@@ -117,7 +117,7 @@
|
||||
computer.updateUsrDialog()
|
||||
arcade_action()
|
||||
|
||||
else if ("charge" in href_list)
|
||||
else if("charge" in href_list)
|
||||
blocked = 1
|
||||
var/chargeamt = rand(4,7)
|
||||
temp = "You regain [chargeamt] points"
|
||||
@@ -129,7 +129,7 @@
|
||||
sleep(10)
|
||||
arcade_action()
|
||||
|
||||
if ("newgame" in href_list) //Reset everything
|
||||
if("newgame" in href_list) //Reset everything
|
||||
temp = "New Round"
|
||||
player_hp = 30
|
||||
player_mp = 10
|
||||
@@ -141,25 +141,25 @@
|
||||
|
||||
|
||||
/datum/file/program/arcade/proc/arcade_action()
|
||||
if ((enemy_mp <= 0) || (enemy_hp <= 0))
|
||||
if((enemy_mp <= 0) || (enemy_hp <= 0))
|
||||
if(!gameover)
|
||||
gameover = 1
|
||||
temp = "[enemy_name] has fallen! Rejoice!"
|
||||
if(computer.toybox)
|
||||
computer.toybox.dispense()
|
||||
|
||||
else if ((enemy_mp <= 5) && (prob(70)))
|
||||
else if((enemy_mp <= 5) && (prob(70)))
|
||||
var/stealamt = rand(2,3)
|
||||
temp = "[enemy_name] steals [stealamt] of your power!"
|
||||
player_mp -= stealamt
|
||||
|
||||
if (player_mp <= 0)
|
||||
if(player_mp <= 0)
|
||||
gameover = 1
|
||||
sleep(10)
|
||||
temp = "You have been drained! GAME OVER"
|
||||
feedback_inc("arcade_loss_mana_normal")
|
||||
|
||||
else if ((enemy_hp <= 10) && (enemy_mp > 4))
|
||||
else if((enemy_hp <= 10) && (enemy_mp > 4))
|
||||
temp = "[enemy_name] heals for 4 health!"
|
||||
enemy_hp += 4
|
||||
enemy_mp -= 4
|
||||
@@ -169,7 +169,7 @@
|
||||
temp = "[enemy_name] attacks for [attackamt] damage!"
|
||||
player_hp -= attackamt
|
||||
|
||||
if ((player_mp <= 0) || (player_hp <= 0))
|
||||
if((player_mp <= 0) || (player_hp <= 0))
|
||||
gameover = 1
|
||||
temp = "You have been crushed! GAME OVER"
|
||||
feedback_inc("arcade_loss_hp_normal")
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
priority_alarms -= zone
|
||||
if(severity=="severe")
|
||||
priority_alarms += zone
|
||||
else if (severity=="minor")
|
||||
else if(severity=="minor")
|
||||
minor_alarms += zone
|
||||
update_icon()
|
||||
return
|
||||
|
||||
@@ -181,7 +181,7 @@
|
||||
|
||||
//proc/camera_list(var/datum/file/camnet_key/key)
|
||||
get_machines(var/datum/file/camnet_key/key)
|
||||
if (!computer || computer.z > 6)
|
||||
if(!computer || computer.z > 6)
|
||||
return null
|
||||
|
||||
var/list/L = list()
|
||||
|
||||
@@ -181,7 +181,7 @@
|
||||
// assume linked_db since called by interact()
|
||||
var/crew = ""
|
||||
var/list/L = list()
|
||||
for (var/datum/data/record/t in data_core.general)
|
||||
for(var/datum/data/record/t in data_core.general)
|
||||
var/R = t.fields["name"] + " - " + t.fields["rank"]
|
||||
L += R
|
||||
for(var/R in sortList(L))
|
||||
@@ -269,7 +269,7 @@
|
||||
computer.cardslot.insert(card,1)
|
||||
|
||||
if("print" in href_list)
|
||||
if (printing)
|
||||
if(printing)
|
||||
return
|
||||
|
||||
printing = 1
|
||||
@@ -277,7 +277,7 @@
|
||||
var/obj/item/weapon/paper/P = new /obj/item/weapon/paper( computer.loc )
|
||||
P.info = "<B>Crew Manifest:</B><BR>"
|
||||
var/list/L = list()
|
||||
for (var/datum/data/record/t in data_core.general)
|
||||
for(var/datum/data/record/t in data_core.general)
|
||||
var/R = t.fields["name"] + " - " + t.fields["rank"]
|
||||
L += R
|
||||
for(var/R in sortList(L))
|
||||
|
||||
@@ -35,29 +35,29 @@
|
||||
scanner = locate(/obj/machinery/dna_scannernew) in nearby
|
||||
pod1 = locate(/obj/machinery/clonepod) in nearby
|
||||
|
||||
if (pod1)
|
||||
if(pod1)
|
||||
pod1.connected = src // Some variable the pod needs
|
||||
|
||||
proc/ScanningMenu()
|
||||
if (isnull(scanner))
|
||||
if(isnull(scanner))
|
||||
return "<font class='bad'>ERROR: No Scanner detected!</font><br>"
|
||||
|
||||
var/dat = "<h3>Scanner Functions</h3>"
|
||||
dat += "<div class='statusDisplay'>"
|
||||
|
||||
if (!scanner.occupant)
|
||||
if(!scanner.occupant)
|
||||
dat += "Scanner Unoccupied"
|
||||
else if(loading)
|
||||
dat += "[scanner.occupant] => Scanning..."
|
||||
else
|
||||
if (scanner.occupant.ckey != scantemp_ckey)
|
||||
if(scanner.occupant.ckey != scantemp_ckey)
|
||||
scantemp = "Ready to Scan"
|
||||
scantemp_ckey = scanner.occupant.ckey
|
||||
dat += "[scanner.occupant] => [scantemp]"
|
||||
|
||||
dat += "</div>"
|
||||
|
||||
if (scanner.occupant)
|
||||
if(scanner.occupant)
|
||||
dat += topic_link(src,"scan","Start Scan") + "<br>"
|
||||
if(scanner.locked)
|
||||
dat += topic_link(src,"lock","Unlock Scanner")
|
||||
@@ -68,12 +68,12 @@
|
||||
|
||||
// Footer
|
||||
dat += "<h3>Database Functions</h3>"
|
||||
if (records.len > 0)
|
||||
if(records.len > 0)
|
||||
dat += topic_link(src,"menu=2","View Records ([records.len])") + "<br>"
|
||||
else
|
||||
dat += fake_link("View Records (0)")
|
||||
|
||||
if (has_disk)
|
||||
if(has_disk)
|
||||
dat += topic_link(src,"eject_disk","Eject Disk") + "<br>"
|
||||
return dat
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
var/dat = "<h3>Selected Record</h3>"
|
||||
to_chat(dat += topic_link(src,"menu=2",", Back") + "<br><br>")
|
||||
|
||||
if (!active_record)
|
||||
if(!active_record)
|
||||
dat += "<font class='bad'>Record not found.</font>"
|
||||
else
|
||||
dat += "<h4>[active_record.fields["name"]]</h4>"
|
||||
@@ -96,7 +96,7 @@
|
||||
|
||||
var/obj/item/weapon/implant/health/H = locate(active_record.fields["imp"])
|
||||
|
||||
if ((H) && (istype(H)))
|
||||
if((H) && (istype(H)))
|
||||
dat += "<b>Health Implant Data:</b><br />[H.sensehealth()]<br><br />"
|
||||
else
|
||||
dat += "<font class='bad'>Unable to locate Health Implant.</font><br /><br />"
|
||||
@@ -104,11 +104,11 @@
|
||||
dat += "<b>Unique Identifier:</b><br /><span class='highlight'>[active_record.fields["UI"]]</span><br>"
|
||||
dat += "<b>Structural Enzymes:</b><br /><span class='highlight'>[active_record.fields["SE"]]</span><br>"
|
||||
|
||||
if (has_disk)
|
||||
if(has_disk)
|
||||
dat += "<div class='block'>"
|
||||
dat += "<h4>Inserted Disk</h4>"
|
||||
dat += "<b>Contents:</b> "
|
||||
if (computer.floppy.inserted.files.len == 0)
|
||||
if(computer.floppy.inserted.files.len == 0)
|
||||
dat += "<i>Empty</i>"
|
||||
else
|
||||
for(var/datum/file/data/genome/G in computer.floppy.inserted.files)
|
||||
@@ -170,9 +170,9 @@
|
||||
if(loading || !interactable())
|
||||
return
|
||||
|
||||
if (href_list["menu"])
|
||||
if(href_list["menu"])
|
||||
menu = text2num(href_list["menu"])
|
||||
else if (("scan" in href_list) && !isnull(scanner))
|
||||
else if(("scan" in href_list) && !isnull(scanner))
|
||||
scantemp = ""
|
||||
|
||||
loading = 1
|
||||
@@ -186,16 +186,16 @@
|
||||
|
||||
|
||||
//No locking an open scanner.
|
||||
else if (("lock" in href_list) && !isnull(scanner))
|
||||
if ((!scanner.locked) && (scanner.occupant))
|
||||
else if(("lock" in href_list) && !isnull(scanner))
|
||||
if((!scanner.locked) && (scanner.occupant))
|
||||
scanner.locked = 1
|
||||
else
|
||||
scanner.locked = 0
|
||||
|
||||
else if ("view_rec" in href_list)
|
||||
else if("view_rec" in href_list)
|
||||
active_record = locate(href_list["view_rec"])
|
||||
if(istype(active_record,/datum/data/record))
|
||||
if ( !active_record.fields["ckey"] || active_record.fields["ckey"] == "" )
|
||||
if( !active_record.fields["ckey"] || active_record.fields["ckey"] == "" )
|
||||
del(active_record)
|
||||
temp = "<font class='bad'>Record Corrupt</font>"
|
||||
else
|
||||
@@ -204,16 +204,16 @@
|
||||
active_record = null
|
||||
temp = "Record missing."
|
||||
|
||||
else if ("del_rec" in href_list)
|
||||
if ((!active_record) || (menu < 3))
|
||||
else if("del_rec" in href_list)
|
||||
if((!active_record) || (menu < 3))
|
||||
return
|
||||
if (menu == 3) //If we are viewing a record, confirm deletion
|
||||
if(menu == 3) //If we are viewing a record, confirm deletion
|
||||
temp = "Delete record?"
|
||||
menu = 4
|
||||
|
||||
else if (menu == 4)
|
||||
else if(menu == 4)
|
||||
var/obj/item/weapon/card/id/C = usr.get_active_hand()
|
||||
if (istype(C)||istype(C, /obj/item/device/pda))
|
||||
if(istype(C)||istype(C, /obj/item/device/pda))
|
||||
if(check_access(C))
|
||||
temp = "[active_record.fields["name"]] => Record deleted."
|
||||
records.Remove(active_record)
|
||||
@@ -222,7 +222,7 @@
|
||||
else
|
||||
temp = "<font class='bad'>Access Denied.</font>"
|
||||
|
||||
else if ("eject_disk" in href_list)
|
||||
else if("eject_disk" in href_list)
|
||||
if(computer.floppy)
|
||||
computer.floppy.eject_disk()
|
||||
|
||||
@@ -243,7 +243,7 @@
|
||||
if(/datum/file/data/genome/cloning)
|
||||
active_record = G:record
|
||||
else if("savefile" in href_list)
|
||||
if (!active_record || !computer || !computer.floppy)
|
||||
if(!active_record || !computer || !computer.floppy)
|
||||
temp = "<font class='bad'>Save error.</font>"
|
||||
computer.updateUsrDialog()
|
||||
return
|
||||
@@ -272,10 +272,10 @@
|
||||
if(!rval)
|
||||
temp = "<font class='bad'>Disk write error.</font>"
|
||||
|
||||
else if ("refresh" in href_list)
|
||||
else if("refresh" in href_list)
|
||||
computer.updateUsrDialog()
|
||||
|
||||
else if ("clone" in href_list)
|
||||
else if("clone" in href_list)
|
||||
//Look for that player! They better be dead!
|
||||
if(active_record)
|
||||
//Can't clone without someone to clone. Or a pod. Or if the pod is busy. Or full of gibs.
|
||||
@@ -303,22 +303,22 @@
|
||||
return
|
||||
|
||||
proc/scan_mob(mob/living/carbon/human/subject as mob)
|
||||
if ((isnull(subject)) || (!(ishuman(subject))) || (!subject.dna))
|
||||
if((isnull(subject)) || (!(ishuman(subject))) || (!subject.dna))
|
||||
scantemp = "<font class='bad'>Unable to locate valid genetic data.</font>"
|
||||
return
|
||||
if (!getbrain(subject))
|
||||
if(!getbrain(subject))
|
||||
scantemp = "<font class='bad'>No signs of intelligence detected.</font>"
|
||||
return
|
||||
if (subject.suiciding == 1)
|
||||
if(subject.suiciding == 1)
|
||||
scantemp = "<font class='bad'>Subject's brain is not responding to scanning stimuli.</font>"
|
||||
return
|
||||
if ((!subject.ckey) || (!subject.client))
|
||||
if((!subject.ckey) || (!subject.client))
|
||||
scantemp = "<font class='bad'>Mental interface failure.</font>"
|
||||
return
|
||||
if (NOCLONE in subject.mutations)
|
||||
if(NOCLONE in subject.mutations)
|
||||
scantemp = "<font class='bad'>Mental interface failure.</font>"
|
||||
return
|
||||
if (!isnull(find_record(subject.ckey)))
|
||||
if(!isnull(find_record(subject.ckey)))
|
||||
scantemp = "<font class='average'>Subject already in database.</font>"
|
||||
return
|
||||
|
||||
@@ -341,7 +341,7 @@
|
||||
|
||||
//Add an implant if needed
|
||||
var/obj/item/weapon/implant/health/imp = locate(/obj/item/weapon/implant/health, subject)
|
||||
if (isnull(imp))
|
||||
if(isnull(imp))
|
||||
imp = new /obj/item/weapon/implant/health(subject)
|
||||
imp.implanted = subject
|
||||
R.fields["imp"] = "\ref[imp]"
|
||||
@@ -349,7 +349,7 @@
|
||||
else
|
||||
R.fields["imp"] = "\ref[imp]"
|
||||
|
||||
if (!isnull(subject.mind)) //Save that mind so traitors can continue traitoring after cloning.
|
||||
if(!isnull(subject.mind)) //Save that mind so traitors can continue traitoring after cloning.
|
||||
R.fields["mind"] = "\ref[subject.mind]"
|
||||
|
||||
records += R
|
||||
@@ -358,6 +358,6 @@
|
||||
//Find a specific record by key.
|
||||
proc/find_record(var/find_key)
|
||||
for(var/datum/data/record/R in records)
|
||||
if (R.fields["ckey"] == find_key)
|
||||
if(R.fields["ckey"] == find_key)
|
||||
return R
|
||||
return null
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
Topic(var/href, var/list/href_list)
|
||||
if(!interactable() || !computer.radio || ..(href,href_list) )
|
||||
return
|
||||
if (!(computer.z in config.station_levels))
|
||||
if(!(computer.z in config.station_levels))
|
||||
to_chat(usr, "<span class='danger'>Unable to establish a connection</span>: You're too far away from the station!")
|
||||
return
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
var/obj/item/I = M.get_active_hand()
|
||||
I = I.GetID()
|
||||
|
||||
if (istype(I,/obj/item/weapon/card/id))
|
||||
if(istype(I,/obj/item/weapon/card/id))
|
||||
if(access_captain in I.GetAccess())
|
||||
var/old_level = security_level
|
||||
if(!tmp_alertlevel) tmp_alertlevel = SEC_LEVEL_GREEN
|
||||
@@ -146,7 +146,7 @@
|
||||
state = STATE_MESSAGELIST
|
||||
if("viewmessage" in href_list)
|
||||
state = STATE_VIEWMESSAGE
|
||||
if (!currmsg)
|
||||
if(!currmsg)
|
||||
if(href_list["message-num"])
|
||||
currmsg = text2num(href_list["message-num"])
|
||||
else
|
||||
@@ -247,7 +247,7 @@
|
||||
aistate = STATE_MESSAGELIST
|
||||
if("ai-viewmessage" in href_list)
|
||||
aistate = STATE_VIEWMESSAGE
|
||||
if (!aicurrmsg)
|
||||
if(!aicurrmsg)
|
||||
if(href_list["message-num"])
|
||||
aicurrmsg = text2num(href_list["message-num"])
|
||||
else
|
||||
@@ -281,16 +281,16 @@
|
||||
|
||||
proc/main_menu()
|
||||
var/dat = ""
|
||||
if (computer.radio.subspace)
|
||||
if(computer.radio.subspace)
|
||||
if(shuttle_master.emergency.mode == SHUTTLE_CALL)
|
||||
var/timeleft = shuttle_master.emergency.timeLeft()
|
||||
dat += "<B>Emergency shuttle</B>\n<BR>\nETA: [timeleft / 60 % 60]:[add_zero(num2text(timeleft % 60), 2)]"
|
||||
refresh = 1
|
||||
else
|
||||
refresh = 0
|
||||
if (authenticated)
|
||||
if(authenticated)
|
||||
dat += "<BR>\[ <A HREF='?src=\ref[src];logout'>Log Out</A> \]"
|
||||
if (authenticated==2)
|
||||
if(authenticated==2)
|
||||
dat += "<BR>\[ <A HREF='?src=\ref[src];announce'>Make An Announcement</A> \]"
|
||||
if(computer.emagged == 0)
|
||||
dat += "<BR>\[ <A HREF='?src=\ref[src];MessageCentcomm'>Send an emergency message to Centcomm</A> \]"
|
||||
@@ -300,7 +300,7 @@
|
||||
|
||||
dat += "<BR>\[ <A HREF='?src=\ref[src];changeseclevel'>Change alert level</A> \]"
|
||||
/*if(emergency_shuttle.location())
|
||||
if (emergency_shuttle.online())
|
||||
if(emergency_shuttle.online())
|
||||
dat += "<BR>\[ <A HREF='?src=\ref[src];cancelshuttle'>Cancel Shuttle Call</A> \]"
|
||||
else
|
||||
dat += "<BR>\[ <A HREF='?src=\ref[src];callshuttle'>Call Emergency Shuttle</A> \]"*/
|
||||
@@ -335,16 +335,16 @@
|
||||
for(var/i = 1; i<=messagetitle.len; i++)
|
||||
dat += "<BR><A HREF='?src=\ref[src];viewmessage;message-num=[i]'>[messagetitle[i]]</A>"
|
||||
if(STATE_VIEWMESSAGE)
|
||||
if (currmsg)
|
||||
if(currmsg)
|
||||
dat += "<B>[messagetitle[currmsg]]</B><BR><BR>[messagetext[currmsg]]"
|
||||
if (authenticated)
|
||||
if(authenticated)
|
||||
dat += "<BR><BR>\[ <A HREF='?src=\ref[src];delmessage'>Delete \]"
|
||||
else
|
||||
state = STATE_MESSAGELIST
|
||||
interact()
|
||||
return
|
||||
if(STATE_DELMESSAGE)
|
||||
if (currmsg)
|
||||
if(currmsg)
|
||||
dat += "Are you sure you want to delete this message? \[ <A HREF='?src=\ref[src];delmessage2'>OK</A> | <A HREF='?src=\ref[src];viewmessage'>Cancel</A> \]"
|
||||
else
|
||||
state = STATE_MESSAGELIST
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
|
||||
attackby(obj/item/weapon/aiModule/module as obj, mob/user as mob, params)
|
||||
if (user.z > 6)
|
||||
if(user.z > 6)
|
||||
to_chat(user, "<span class='danger'>Unable to establish a connection</span>: You're too far away from the station!")
|
||||
return
|
||||
if(istype(module, /obj/item/weapon/aiModule))
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
src.current = select_active_ai(user)
|
||||
|
||||
if (!src.current)
|
||||
if(!src.current)
|
||||
to_chat(usr, "No active AIs detected.")
|
||||
else
|
||||
to_chat(usr, "[src.current.name] selected for law changes.")
|
||||
@@ -75,7 +75,7 @@
|
||||
|
||||
src.current = freeborg()
|
||||
|
||||
if (!src.current)
|
||||
if(!src.current)
|
||||
to_chat(usr, "No free cyborgs detected.")
|
||||
else
|
||||
to_chat(usr, "[src.current.name] selected for law changes.")
|
||||
|
||||
@@ -49,21 +49,21 @@
|
||||
scan = computer.cardslot.reader
|
||||
if(!interactable())
|
||||
return
|
||||
if (computer.z > 6)
|
||||
if(computer.z > 6)
|
||||
to_chat(usr, "<span class='danger'>Unable to establish a connection</span>: You're too far away from the station!")
|
||||
return
|
||||
var/dat
|
||||
|
||||
if (temp)
|
||||
if(temp)
|
||||
dat = text("<TT>[src.temp]</TT><BR><BR><A href='?src=\ref[src];temp=1'>Clear Screen</A>")
|
||||
else
|
||||
dat = text("Confirm Identity (R): <A href='?src=\ref[];cardr=1'>[]</A><HR>", src, (scan ? text("[]", scan.name) : "----------"))
|
||||
if (computer.cardslot.dualslot)
|
||||
if(computer.cardslot.dualslot)
|
||||
dat += text("Check Identity (W): <A href='?src=\ref[];cardw=1'>[]</A><BR>", src, (scan2 ? text("[]", scan2.name) : "----------"))
|
||||
if(scan2 && !scan)
|
||||
dat += text("<div class='notice'>Insert card into reader slot to log in.</div><br>")
|
||||
|
||||
if (src.authenticated)
|
||||
if(src.authenticated)
|
||||
switch(src.screen)
|
||||
if(1.0)
|
||||
dat += {"
|
||||
@@ -87,7 +87,7 @@
|
||||
dat += text("<B>Records Maintenance</B><HR>\n<A href='?src=\ref[];back=1'>Backup To Disk</A><BR>\n<A href='?src=\ref[];u_load=1'>Upload From disk</A><BR>\n<A href='?src=\ref[];del_all=1'>Delete All Records</A><BR>\n<BR>\n<A href='?src=\ref[];screen=1'>Back</A>", src, src, src, src)
|
||||
if(4.0)
|
||||
dat += "<CENTER><B>Medical Record</B></CENTER><BR>"
|
||||
if ((istype(src.active1, /datum/data/record) && data_core.general.Find(src.active1)))
|
||||
if((istype(src.active1, /datum/data/record) && data_core.general.Find(src.active1)))
|
||||
dat += "<table><tr><td>Name: [active1.fields["name"]] \
|
||||
ID: [active1.fields["id"]]<BR>\n \
|
||||
Sex: <A href='?src=\ref[src];field=sex'>[active1.fields["sex"]]</A><BR>\n \
|
||||
@@ -99,7 +99,7 @@
|
||||
<img src=[active1.fields["photo-west"]] height=64 width=64 border=5></td></tr></table>"
|
||||
else
|
||||
dat += "<B>General Record Lost!</B><BR>"
|
||||
if ((istype(src.active2, /datum/data/record) && data_core.medical.Find(src.active2)))
|
||||
if((istype(src.active2, /datum/data/record) && data_core.medical.Find(src.active2)))
|
||||
dat += text("<BR>\n<CENTER><B>Medical Data</B></CENTER><BR>\nBlood Type: <A href='?src=\ref[];field=b_type'>[]</A><BR>\nDNA: <A href='?src=\ref[];field=b_dna'>[]</A><BR>\n<BR>\nMinor Disabilities: <A href='?src=\ref[];field=mi_dis'>[]</A><BR>\nDetails: <A href='?src=\ref[];field=mi_dis_d'>[]</A><BR>\n<BR>\nMajor Disabilities: <A href='?src=\ref[];field=ma_dis'>[]</A><BR>\nDetails: <A href='?src=\ref[];field=ma_dis_d'>[]</A><BR>\n<BR>\nAllergies: <A href='?src=\ref[];field=alg'>[]</A><BR>\nDetails: <A href='?src=\ref[];field=alg_d'>[]</A><BR>\n<BR>\nCurrent Diseases: <A href='?src=\ref[];field=cdi'>[]</A> (per disease info placed in log/comment section)<BR>\nDetails: <A href='?src=\ref[];field=cdi_d'>[]</A><BR>\n<BR>\nImportant Notes:<BR>\n\t<A href='?src=\ref[];field=notes'>[]</A><BR>\n<BR>\n<CENTER><B>Comments/Log</B></CENTER><BR>", src, src.active2.fields["b_type"], src, src.active2.fields["b_dna"], src, src.active2.fields["mi_dis"], src, src.active2.fields["mi_dis_d"], src, src.active2.fields["ma_dis"], src, src.active2.fields["ma_dis_d"], src, src.active2.fields["alg"], src, src.active2.fields["alg_d"], src, src.active2.fields["cdi"], src, src.active2.fields["cdi_d"], src, decode(src.active2.fields["notes"]))
|
||||
var/counter = 1
|
||||
while(src.active2.fields[text("com_[]", counter)])
|
||||
@@ -154,16 +154,16 @@
|
||||
Topic(href, href_list)
|
||||
if(!interactable() || !computer.cardslot || ..(href,href_list))
|
||||
return
|
||||
if (!( data_core.general.Find(src.active1) ))
|
||||
if(!( data_core.general.Find(src.active1) ))
|
||||
src.active1 = null
|
||||
if (!( data_core.medical.Find(src.active2) ))
|
||||
if(!( data_core.medical.Find(src.active2) ))
|
||||
src.active2 = null
|
||||
|
||||
if (href_list["temp"])
|
||||
if(href_list["temp"])
|
||||
src.temp = null
|
||||
|
||||
if (href_list["cardr"])
|
||||
if (scan)
|
||||
if(href_list["cardr"])
|
||||
if(scan)
|
||||
if(istype(usr,/mob/living/carbon/human) && !usr.get_active_hand())
|
||||
computer.cardslot.remove(1)
|
||||
else
|
||||
@@ -171,12 +171,12 @@
|
||||
scan = null
|
||||
else
|
||||
var/obj/item/I = usr.get_active_hand()
|
||||
if (istype(I, /obj/item/weapon/card/id))
|
||||
if(istype(I, /obj/item/weapon/card/id))
|
||||
computer.cardslot.insert(I, 1)
|
||||
scan = I
|
||||
|
||||
if (href_list["cardw"])
|
||||
if (scan2)
|
||||
if(href_list["cardw"])
|
||||
if(scan2)
|
||||
if(istype(usr,/mob/living/carbon/human) && !usr.get_active_hand())
|
||||
computer.cardslot.remove(2)
|
||||
else
|
||||
@@ -184,26 +184,26 @@
|
||||
scan2 = null
|
||||
else
|
||||
var/obj/item/I = usr.get_active_hand()
|
||||
if (istype(I, /obj/item/weapon/card/id))
|
||||
if(istype(I, /obj/item/weapon/card/id))
|
||||
computer.cardslot.insert(I, 2)
|
||||
scan2 = I
|
||||
|
||||
else if (href_list["logout"])
|
||||
else if(href_list["logout"])
|
||||
src.authenticated = null
|
||||
src.screen = null
|
||||
src.active1 = null
|
||||
src.active2 = null
|
||||
|
||||
else if (href_list["login"])
|
||||
else if(href_list["login"])
|
||||
|
||||
if (istype(usr, /mob/living/silicon/ai))
|
||||
if(istype(usr, /mob/living/silicon/ai))
|
||||
src.active1 = null
|
||||
src.active2 = null
|
||||
src.authenticated = usr.name
|
||||
src.rank = "AI"
|
||||
src.screen = 1
|
||||
|
||||
else if (istype(usr, /mob/living/silicon/robot))
|
||||
else if(istype(usr, /mob/living/silicon/robot))
|
||||
src.active1 = null
|
||||
src.active2 = null
|
||||
src.authenticated = usr.name
|
||||
@@ -211,16 +211,16 @@
|
||||
src.rank = "[R.modtype] [R.braintype]"
|
||||
src.screen = 1
|
||||
|
||||
else if (istype(src.scan, /obj/item/weapon/card/id))
|
||||
else if(istype(src.scan, /obj/item/weapon/card/id))
|
||||
src.active1 = null
|
||||
src.active2 = null
|
||||
|
||||
if (src.check_access(src.scan))
|
||||
if(src.check_access(src.scan))
|
||||
src.authenticated = src.scan.registered_name
|
||||
src.rank = src.scan.assignment
|
||||
src.screen = 1
|
||||
|
||||
if (src.authenticated)
|
||||
if(src.authenticated)
|
||||
|
||||
if(href_list["screen"])
|
||||
src.screen = text2num(href_list["screen"])
|
||||
@@ -238,125 +238,125 @@
|
||||
src.temp += "<br><b>Spread:</b> [v.fields["spread type"]] "
|
||||
src.temp += "<br><b>Details:</b><br> <A href='?src=\ref[src];field=vir_desc;edit_vir=\ref[v]'>[v.fields["description"]]</A>"
|
||||
|
||||
if (href_list["del_all"])
|
||||
if(href_list["del_all"])
|
||||
src.temp = text("Are you sure you wish to delete all records?<br>\n\t<A href='?src=\ref[];temp=1;del_all2=1'>Yes</A><br>\n\t<A href='?src=\ref[];temp=1'>No</A><br>", src, src)
|
||||
|
||||
if (href_list["del_all2"])
|
||||
if(href_list["del_all2"])
|
||||
for(var/datum/data/record/R in data_core.medical)
|
||||
//R = null
|
||||
qdel(R)
|
||||
//Foreach goto(494)
|
||||
src.temp = "All records deleted."
|
||||
|
||||
if (href_list["field"])
|
||||
if(href_list["field"])
|
||||
var/a1 = src.active1
|
||||
var/a2 = src.active2
|
||||
switch(href_list["field"])
|
||||
if("fingerprint")
|
||||
if (istype(src.active1, /datum/data/record))
|
||||
if(istype(src.active1, /datum/data/record))
|
||||
var/t1 = trim(sanitize(copytext(input("Please input fingerprint hash:", "Med. records", src.active1.fields["fingerprint"], null) as text,1,MAX_MESSAGE_LEN)))
|
||||
if ((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active1 != a1))
|
||||
if((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active1 != a1))
|
||||
return
|
||||
src.active1.fields["fingerprint"] = t1
|
||||
if("sex")
|
||||
if (istype(src.active1, /datum/data/record))
|
||||
if (src.active1.fields["sex"] == "Male")
|
||||
if(istype(src.active1, /datum/data/record))
|
||||
if(src.active1.fields["sex"] == "Male")
|
||||
src.active1.fields["sex"] = "Female"
|
||||
else
|
||||
src.active1.fields["sex"] = "Male"
|
||||
if("age")
|
||||
if (istype(src.active1, /datum/data/record))
|
||||
if(istype(src.active1, /datum/data/record))
|
||||
var/t1 = input("Please input age:", "Med. records", src.active1.fields["age"], null) as num
|
||||
if ((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active1 != a1))
|
||||
if((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active1 != a1))
|
||||
return
|
||||
src.active1.fields["age"] = t1
|
||||
if("mi_dis")
|
||||
if (istype(src.active2, /datum/data/record))
|
||||
if(istype(src.active2, /datum/data/record))
|
||||
var/t1 = sanitize(copytext(input("Please input minor disabilities list:", "Med. records", src.active2.fields["mi_dis"], null) as text,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
if((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
return
|
||||
src.active2.fields["mi_dis"] = t1
|
||||
if("mi_dis_d")
|
||||
if (istype(src.active2, /datum/data/record))
|
||||
if(istype(src.active2, /datum/data/record))
|
||||
var/t1 = sanitize(copytext(input("Please summarize minor dis.:", "Med. records", src.active2.fields["mi_dis_d"], null) as message,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
if((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
return
|
||||
src.active2.fields["mi_dis_d"] = t1
|
||||
if("ma_dis")
|
||||
if (istype(src.active2, /datum/data/record))
|
||||
if(istype(src.active2, /datum/data/record))
|
||||
var/t1 = sanitize(copytext(input("Please input major diabilities list:", "Med. records", src.active2.fields["ma_dis"], null) as text,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
if((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
return
|
||||
src.active2.fields["ma_dis"] = t1
|
||||
if("ma_dis_d")
|
||||
if (istype(src.active2, /datum/data/record))
|
||||
if(istype(src.active2, /datum/data/record))
|
||||
var/t1 = sanitize(copytext(input("Please summarize major dis.:", "Med. records", src.active2.fields["ma_dis_d"], null) as message,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
if((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
return
|
||||
src.active2.fields["ma_dis_d"] = t1
|
||||
if("alg")
|
||||
if (istype(src.active2, /datum/data/record))
|
||||
if(istype(src.active2, /datum/data/record))
|
||||
var/t1 = sanitize(copytext(input("Please state allergies:", "Med. records", src.active2.fields["alg"], null) as text,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
if((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
return
|
||||
src.active2.fields["alg"] = t1
|
||||
if("alg_d")
|
||||
if (istype(src.active2, /datum/data/record))
|
||||
if(istype(src.active2, /datum/data/record))
|
||||
var/t1 = sanitize(copytext(input("Please summarize allergies:", "Med. records", src.active2.fields["alg_d"], null) as message,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
if((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
return
|
||||
src.active2.fields["alg_d"] = t1
|
||||
if("cdi")
|
||||
if (istype(src.active2, /datum/data/record))
|
||||
if(istype(src.active2, /datum/data/record))
|
||||
var/t1 = sanitize(copytext(input("Please state diseases:", "Med. records", src.active2.fields["cdi"], null) as text,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
if((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
return
|
||||
src.active2.fields["cdi"] = t1
|
||||
if("cdi_d")
|
||||
if (istype(src.active2, /datum/data/record))
|
||||
if(istype(src.active2, /datum/data/record))
|
||||
var/t1 = sanitize(copytext(input("Please summarize diseases:", "Med. records", src.active2.fields["cdi_d"], null) as message,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
if((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
return
|
||||
src.active2.fields["cdi_d"] = t1
|
||||
if("notes")
|
||||
if (istype(src.active2, /datum/data/record))
|
||||
if(istype(src.active2, /datum/data/record))
|
||||
var/t1 = html_encode(trim(copytext(input("Please summarize notes:", "Med. records", html_decode(src.active2.fields["notes"]), null) as message,1,MAX_MESSAGE_LEN)))
|
||||
if ((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
if((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
return
|
||||
src.active2.fields["notes"] = t1
|
||||
if("p_stat")
|
||||
if (istype(src.active1, /datum/data/record))
|
||||
if(istype(src.active1, /datum/data/record))
|
||||
src.temp = text("<B>Physical Condition:</B><BR>\n\t<A href='?src=\ref[];temp=1;p_stat=deceased'>*Deceased*</A><BR>\n\t<A href='?src=\ref[];temp=1;p_stat=ssd'>*SSD*</A><BR>\n\t<A href='?src=\ref[];temp=1;p_stat=active'>Active</A><BR>\n\t<A href='?src=\ref[];temp=1;p_stat=unfit'>Physically Unfit</A><BR>\n\t<A href='?src=\ref[];temp=1;p_stat=disabled'>Disabled</A><BR>", src, src, src, src, src)
|
||||
if("m_stat")
|
||||
if (istype(src.active1, /datum/data/record))
|
||||
if(istype(src.active1, /datum/data/record))
|
||||
src.temp = text("<B>Mental Condition:</B><BR>\n\t<A href='?src=\ref[];temp=1;m_stat=insane'>*Insane*</A><BR>\n\t<A href='?src=\ref[];temp=1;m_stat=unstable'>*Unstable*</A><BR>\n\t<A href='?src=\ref[];temp=1;m_stat=watch'>*Watch*</A><BR>\n\t<A href='?src=\ref[];temp=1;m_stat=stable'>Stable</A><BR>", src, src, src, src)
|
||||
if("b_type")
|
||||
if (istype(src.active2, /datum/data/record))
|
||||
if(istype(src.active2, /datum/data/record))
|
||||
src.temp = text("<B>Blood Type:</B><BR>\n\t<A href='?src=\ref[];temp=1;b_type=an'>A-</A> <A href='?src=\ref[];temp=1;b_type=ap'>A+</A><BR>\n\t<A href='?src=\ref[];temp=1;b_type=bn'>B-</A> <A href='?src=\ref[];temp=1;b_type=bp'>B+</A><BR>\n\t<A href='?src=\ref[];temp=1;b_type=abn'>AB-</A> <A href='?src=\ref[];temp=1;b_type=abp'>AB+</A><BR>\n\t<A href='?src=\ref[];temp=1;b_type=on'>O-</A> <A href='?src=\ref[];temp=1;b_type=op'>O+</A><BR>", src, src, src, src, src, src, src, src)
|
||||
if("b_dna")
|
||||
if (istype(src.active1, /datum/data/record))
|
||||
if(istype(src.active1, /datum/data/record))
|
||||
var/t1 = sanitize(copytext(input("Please input DNA hash:", "Med. records", src.active1.fields["dna"], null) as text,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active1 != a1))
|
||||
if((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active1 != a1))
|
||||
return
|
||||
src.active1.fields["dna"] = t1
|
||||
if("vir_name")
|
||||
var/datum/data/record/v = locate(href_list["edit_vir"])
|
||||
if (v)
|
||||
if(v)
|
||||
var/t1 = sanitize(copytext(input("Please input pathogen name:", "VirusDB", v.fields["name"], null) as text,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active1 != a1))
|
||||
if((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active1 != a1))
|
||||
return
|
||||
v.fields["name"] = t1
|
||||
if("vir_desc")
|
||||
var/datum/data/record/v = locate(href_list["edit_vir"])
|
||||
if (v)
|
||||
if(v)
|
||||
var/t1 = sanitize(copytext(input("Please input information about pathogen:", "VirusDB", v.fields["description"], null) as message,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active1 != a1))
|
||||
if((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active1 != a1))
|
||||
return
|
||||
v.fields["description"] = t1
|
||||
else
|
||||
|
||||
if (href_list["p_stat"])
|
||||
if (src.active1)
|
||||
if(href_list["p_stat"])
|
||||
if(src.active1)
|
||||
switch(href_list["p_stat"])
|
||||
if("deceased")
|
||||
src.active1.fields["p_stat"] = "*Deceased*"
|
||||
@@ -369,8 +369,8 @@
|
||||
if("disabled")
|
||||
src.active1.fields["p_stat"] = "Disabled"
|
||||
|
||||
if (href_list["m_stat"])
|
||||
if (src.active1)
|
||||
if(href_list["m_stat"])
|
||||
if(src.active1)
|
||||
switch(href_list["m_stat"])
|
||||
if("insane")
|
||||
src.active1.fields["m_stat"] = "*Insane*"
|
||||
@@ -382,8 +382,8 @@
|
||||
src.active1.fields["m_stat"] = "Stable"
|
||||
|
||||
|
||||
if (href_list["b_type"])
|
||||
if (src.active2)
|
||||
if(href_list["b_type"])
|
||||
if(src.active2)
|
||||
switch(href_list["b_type"])
|
||||
if("an")
|
||||
src.active2.fields["b_type"] = "A-"
|
||||
@@ -403,23 +403,23 @@
|
||||
src.active2.fields["b_type"] = "O+"
|
||||
|
||||
|
||||
if (href_list["del_r"])
|
||||
if (src.active2)
|
||||
if(href_list["del_r"])
|
||||
if(src.active2)
|
||||
src.temp = text("Are you sure you wish to delete the record (Medical Portion Only)?<br>\n\t<A href='?src=\ref[];temp=1;del_r2=1'>Yes</A><br>\n\t<A href='?src=\ref[];temp=1'>No</A><br>", src, src)
|
||||
|
||||
if (href_list["del_r2"])
|
||||
if (src.active2)
|
||||
if(href_list["del_r2"])
|
||||
if(src.active2)
|
||||
//src.active2 = null
|
||||
qdel(src.active2)
|
||||
|
||||
if (href_list["d_rec"])
|
||||
if(href_list["d_rec"])
|
||||
var/datum/data/record/R = locate(href_list["d_rec"])
|
||||
var/datum/data/record/M = locate(href_list["d_rec"])
|
||||
if (!( data_core.general.Find(R) ))
|
||||
if(!( data_core.general.Find(R) ))
|
||||
src.temp = "Record Not Found!"
|
||||
return
|
||||
for(var/datum/data/record/E in data_core.medical)
|
||||
if ((E.fields["name"] == R.fields["name"] || E.fields["id"] == R.fields["id"]))
|
||||
if((E.fields["name"] == R.fields["name"] || E.fields["id"] == R.fields["id"]))
|
||||
M = E
|
||||
else
|
||||
//Foreach continue //goto(2540)
|
||||
@@ -427,8 +427,8 @@
|
||||
src.active2 = M
|
||||
src.screen = 4
|
||||
|
||||
if (href_list["new"])
|
||||
if ((istype(src.active1, /datum/data/record) && !( istype(src.active2, /datum/data/record) )))
|
||||
if(href_list["new"])
|
||||
if((istype(src.active1, /datum/data/record) && !( istype(src.active2, /datum/data/record) )))
|
||||
var/datum/data/record/R = new /datum/data/record( )
|
||||
R.fields["name"] = src.active1.fields["name"]
|
||||
R.fields["id"] = src.active1.fields["id"]
|
||||
@@ -448,63 +448,63 @@
|
||||
src.active2 = R
|
||||
src.screen = 4
|
||||
|
||||
if (href_list["add_c"])
|
||||
if (!( istype(src.active2, /datum/data/record) ))
|
||||
if(href_list["add_c"])
|
||||
if(!( istype(src.active2, /datum/data/record) ))
|
||||
return
|
||||
var/a2 = src.active2
|
||||
var/t1 = sanitize(copytext(input("Add Comment:", "Med. records", null, null) as message,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
if((!( t1 ) || !( src.authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || src.active2 != a2))
|
||||
return
|
||||
var/counter = 1
|
||||
while(src.active2.fields[text("com_[]", counter)])
|
||||
counter++
|
||||
src.active2.fields[text("com_[counter]")] = text("Made by [authenticated] ([rank]) on [time2text(world.realtime, "DDD MMM DD hh:mm:ss")], [game_year]<BR>[t1]")
|
||||
|
||||
if (href_list["del_c"])
|
||||
if ((istype(src.active2, /datum/data/record) && src.active2.fields[text("com_[]", href_list["del_c"])]))
|
||||
if(href_list["del_c"])
|
||||
if((istype(src.active2, /datum/data/record) && src.active2.fields[text("com_[]", href_list["del_c"])]))
|
||||
src.active2.fields[text("com_[]", href_list["del_c"])] = "<B>Deleted</B>"
|
||||
|
||||
if (href_list["search"])
|
||||
if(href_list["search"])
|
||||
var/t1 = input("Search String: (Name, DNA, or ID)", "Med. records", null, null) as text
|
||||
if ((!( t1 ) || usr.stat || !( src.authenticated ) || usr.restrained() || ((!interactable()) && (!istype(usr, /mob/living/silicon)))))
|
||||
if((!( t1 ) || usr.stat || !( src.authenticated ) || usr.restrained() || ((!interactable()) && (!istype(usr, /mob/living/silicon)))))
|
||||
return
|
||||
src.active1 = null
|
||||
src.active2 = null
|
||||
t1 = lowertext(t1)
|
||||
for(var/datum/data/record/R in data_core.medical)
|
||||
if ((lowertext(R.fields["name"]) == t1 || t1 == lowertext(R.fields["id"]) || t1 == lowertext(R.fields["b_dna"])))
|
||||
if((lowertext(R.fields["name"]) == t1 || t1 == lowertext(R.fields["id"]) || t1 == lowertext(R.fields["b_dna"])))
|
||||
src.active2 = R
|
||||
else
|
||||
//Foreach continue //goto(3229)
|
||||
if (!( src.active2 ))
|
||||
if(!( src.active2 ))
|
||||
src.temp = text("Could not locate record [].", t1)
|
||||
else
|
||||
for(var/datum/data/record/E in data_core.general)
|
||||
if ((E.fields["name"] == src.active2.fields["name"] || E.fields["id"] == src.active2.fields["id"]))
|
||||
if((E.fields["name"] == src.active2.fields["name"] || E.fields["id"] == src.active2.fields["id"]))
|
||||
src.active1 = E
|
||||
else
|
||||
//Foreach continue //goto(3334)
|
||||
src.screen = 4
|
||||
|
||||
if (href_list["print_p"])
|
||||
if (!( src.printing ))
|
||||
if(href_list["print_p"])
|
||||
if(!( src.printing ))
|
||||
src.printing = 1
|
||||
var/datum/data/record/record1 = null
|
||||
var/datum/data/record/record2 = null
|
||||
if ((istype(src.active1, /datum/data/record) && data_core.general.Find(src.active1)))
|
||||
if((istype(src.active1, /datum/data/record) && data_core.general.Find(src.active1)))
|
||||
record1 = active1
|
||||
if ((istype(src.active2, /datum/data/record) && data_core.medical.Find(src.active2)))
|
||||
if((istype(src.active2, /datum/data/record) && data_core.medical.Find(src.active2)))
|
||||
record2 = active2
|
||||
sleep(50)
|
||||
var/obj/item/weapon/paper/P = new /obj/item/weapon/paper( computer.loc )
|
||||
P.info = "<CENTER><B>Medical Record</B></CENTER><BR>"
|
||||
if (record1)
|
||||
if(record1)
|
||||
P.info += text("Name: [] ID: []<BR>\nSex: []<BR>\nAge: []<BR>\nFingerprint: []<BR>\nPhysical Status: []<BR>\nMental Status: []<BR>", record1.fields["name"], record1.fields["id"], record1.fields["sex"], record1.fields["age"], record1.fields["fingerprint"], record1.fields["p_stat"], record1.fields["m_stat"])
|
||||
P.name = text("Medical Record ([])", record1.fields["name"])
|
||||
else
|
||||
P.info += "<B>General Record Lost!</B><BR>"
|
||||
P.name = "Medical Record"
|
||||
if (record2)
|
||||
if(record2)
|
||||
P.info += text("<BR>\n<CENTER><B>Medical Data</B></CENTER><BR>\nBlood Type: []<BR>\nDNA: []<BR>\n<BR>\nMinor Disabilities: []<BR>\nDetails: []<BR>\n<BR>\nMajor Disabilities: []<BR>\nDetails: []<BR>\n<BR>\nAllergies: []<BR>\nDetails: []<BR>\n<BR>\nCurrent Diseases: [] (per disease info placed in log/comment section)<BR>\nDetails: []<BR>\n<BR>\nImportant Notes:<BR>\n\t[]<BR>\n<BR>\n<CENTER><B>Comments/Log</B></CENTER><BR>", record2.fields["b_type"], record2.fields["b_dna"], record2.fields["mi_dis"], record2.fields["mi_dis_d"], record2.fields["ma_dis"], record2.fields["ma_dis_d"], record2.fields["alg"], record2.fields["alg_d"], record2.fields["cdi"], record2.fields["cdi_d"], decode(record2.fields["notes"]))
|
||||
var/counter = 1
|
||||
while(record2.fields[text("com_[]", counter)])
|
||||
|
||||
@@ -242,7 +242,7 @@
|
||||
if(!interactable() || ..(href,href_list))
|
||||
return
|
||||
|
||||
if ("auth" in href_list)
|
||||
if("auth" in href_list)
|
||||
if(auth)
|
||||
auth = 0
|
||||
screen = 0
|
||||
@@ -255,10 +255,10 @@
|
||||
message = incorrectkey
|
||||
|
||||
//Turn the server on/off.
|
||||
if ("active" in href_list)
|
||||
if("active" in href_list)
|
||||
if(auth) linkedServer.active = !linkedServer.active
|
||||
//Find a server
|
||||
if ("find" in href_list)
|
||||
if("find" in href_list)
|
||||
if(message_servers && message_servers.len > 1)
|
||||
src.linkedServer = input(usr,"Please select a server.", "Select a server.", null) as null|anything in message_servers
|
||||
message = "<span class='alert'>NOTICE: Server selected.</span>"
|
||||
@@ -269,7 +269,7 @@
|
||||
message = noserver
|
||||
|
||||
//View the logs - KEY REQUIRED
|
||||
if ("view" in href_list)
|
||||
if("view" in href_list)
|
||||
if(src.linkedServer == null || (src.linkedServer.stat & (NOPOWER|BROKEN)))
|
||||
message = noserver
|
||||
else
|
||||
@@ -277,7 +277,7 @@
|
||||
src.screen = 1
|
||||
|
||||
//Clears the logs - KEY REQUIRED
|
||||
if ("clear" in href_list)
|
||||
if("clear" in href_list)
|
||||
if(!linkedServer || (src.linkedServer.stat & (NOPOWER|BROKEN)))
|
||||
message = noserver
|
||||
else
|
||||
@@ -285,7 +285,7 @@
|
||||
src.linkedServer.pda_msgs = list()
|
||||
message = "<span class='notice'>NOTICE: Logs cleared.</span>"
|
||||
//Clears the request console logs - KEY REQUIRED
|
||||
if ("clearr" in href_list)
|
||||
if("clearr" in href_list)
|
||||
if(!linkedServer || (src.linkedServer.stat & (NOPOWER|BROKEN)))
|
||||
message = noserver
|
||||
else
|
||||
@@ -293,7 +293,7 @@
|
||||
src.linkedServer.rc_msgs = list()
|
||||
message = "<span class='notice'>NOTICE: Logs cleared.</span>"
|
||||
//Change the password - KEY REQUIRED
|
||||
if ("pass" in href_list)
|
||||
if("pass" in href_list)
|
||||
if(!linkedServer || (src.linkedServer.stat & (NOPOWER|BROKEN)))
|
||||
message = noserver
|
||||
else
|
||||
@@ -313,7 +313,7 @@
|
||||
message = incorrectkey
|
||||
|
||||
//Hack the Console to get the password
|
||||
if ("hack" in href_list)
|
||||
if("hack" in href_list)
|
||||
if((istype(usr, /mob/living/silicon/ai) || istype(usr, /mob/living/silicon/robot)) && (usr.mind.special_role && usr.mind.original == usr))
|
||||
src.hacking = 1
|
||||
src.screen = 2
|
||||
@@ -323,7 +323,7 @@
|
||||
if(src && src.linkedServer && usr)
|
||||
BruteForce(usr)
|
||||
//Delete the log.
|
||||
if ("delete" in href_list)
|
||||
if("delete" in href_list)
|
||||
//Are they on the view logs screen?
|
||||
if(screen == 1)
|
||||
if(!linkedServer || (src.linkedServer.stat & (NOPOWER|BROKEN)))
|
||||
@@ -332,7 +332,7 @@
|
||||
src.linkedServer.pda_msgs -= locate(href_list["delete"])
|
||||
message = "<span class='notice'>NOTICE: Log Deleted!</span>"
|
||||
//Delete the request console log.
|
||||
if ("deleter" in href_list)
|
||||
if("deleter" in href_list)
|
||||
//Are they on the view logs screen?
|
||||
if(screen == 4)
|
||||
if(!linkedServer || (src.linkedServer.stat & (NOPOWER|BROKEN)))
|
||||
@@ -341,14 +341,14 @@
|
||||
src.linkedServer.rc_msgs -= locate(href_list["deleter"])
|
||||
message = "<span class='notice'>NOTICE: Log Deleted!</span>"
|
||||
//Create a custom message
|
||||
if ("msg" in href_list)
|
||||
if("msg" in href_list)
|
||||
if(src.linkedServer == null || (src.linkedServer.stat & (NOPOWER|BROKEN)))
|
||||
message = noserver
|
||||
else
|
||||
if(auth)
|
||||
src.screen = 3
|
||||
//Fake messaging selection - KEY REQUIRED
|
||||
if ("select" in href_list)
|
||||
if("select" in href_list)
|
||||
if(src.linkedServer == null || (src.linkedServer.stat & (NOPOWER|BROKEN)))
|
||||
message = noserver
|
||||
screen = 0
|
||||
@@ -400,17 +400,17 @@
|
||||
return src.attack_hand(usr)
|
||||
|
||||
var/obj/item/device/pda/PDARec = null
|
||||
for (var/obj/item/device/pda/P in PDAs)
|
||||
if (!P.owner || P.toff || P.hidden) continue
|
||||
for(var/obj/item/device/pda/P in PDAs)
|
||||
if(!P.owner || P.toff || P.hidden) continue
|
||||
if(P.owner == customsender)
|
||||
PDARec = P
|
||||
//Sender isn't faking as someone who exists
|
||||
if(isnull(PDARec))
|
||||
src.linkedServer.send_pda_message("[customrecepient.owner]", "[customsender]","[custommessage]")
|
||||
customrecepient.tnote += "<i><b>← From <a href='byond://?src=\ref[customrecepient];choice=Message;target=\ref[src]'>[customsender]</a> ([customjob]):</b></i><br>[custommessage]<br>"
|
||||
if (!customrecepient.silent)
|
||||
if(!customrecepient.silent)
|
||||
playsound(customrecepient.loc, 'sound/machines/twobeep.ogg', 50, 1)
|
||||
for (var/mob/O in hearers(3, customrecepient.loc))
|
||||
for(var/mob/O in hearers(3, customrecepient.loc))
|
||||
O.show_message(text("[bicon(customrecepient)] *[customrecepient.ttone]*"))
|
||||
if( customrecepient.loc && ishuman(customrecepient.loc) )
|
||||
var/mob/living/carbon/human/H = customrecepient.loc
|
||||
@@ -423,9 +423,9 @@
|
||||
else
|
||||
src.linkedServer.send_pda_message("[customrecepient.owner]", "[PDARec.owner]","[custommessage]")
|
||||
customrecepient.tnote += "<i><b>← From <a href='byond://?src=\ref[customrecepient];choice=Message;target=\ref[PDARec]'>[PDARec.owner]</a> ([customjob]):</b></i><br>[custommessage]<br>"
|
||||
if (!customrecepient.silent)
|
||||
if(!customrecepient.silent)
|
||||
playsound(customrecepient.loc, 'sound/machines/twobeep.ogg', 50, 1)
|
||||
for (var/mob/O in hearers(3, customrecepient.loc))
|
||||
for(var/mob/O in hearers(3, customrecepient.loc))
|
||||
O.show_message(text("[bicon(customrecepient)] *[customrecepient.ttone]*"))
|
||||
if( customrecepient.loc && ishuman(customrecepient.loc) )
|
||||
var/mob/living/carbon/human/H = customrecepient.loc
|
||||
@@ -447,6 +447,6 @@
|
||||
|
||||
// to_chat(usr, href_list["select"])
|
||||
|
||||
if ("back" in href_list)
|
||||
if("back" in href_list)
|
||||
src.screen = 0
|
||||
interact()
|
||||
@@ -40,12 +40,12 @@ var/prison_shuttle_timeleft = 0
|
||||
if(do_after(user, 20, target = src))
|
||||
var/obj/structure/computerframe/A = new /obj/structure/computerframe( src.loc )
|
||||
var/obj/item/part/board/circuit/prison_shuttle/M = new /obj/item/part/board/circuit/prison_shuttle( A )
|
||||
for (var/obj/C in src)
|
||||
for(var/obj/C in src)
|
||||
C.loc = src.loc
|
||||
A.circuit = M
|
||||
A.anchored = 1
|
||||
|
||||
if (src.stat & BROKEN)
|
||||
if(src.stat & BROKEN)
|
||||
to_chat(user, "\blue The broken glass falls out.")
|
||||
new /obj/item/trash/shard( src.loc )
|
||||
A.state = 3
|
||||
@@ -75,7 +75,7 @@ var/prison_shuttle_timeleft = 0
|
||||
user.set_machine(src)
|
||||
post_signal("prison")
|
||||
var/dat
|
||||
if (src.temp)
|
||||
if(src.temp)
|
||||
dat = src.temp
|
||||
else
|
||||
dat += {"<b>Location:</b> [prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison ? "Moving to station ([prison_shuttle_timeleft] Secs.)":prison_shuttle_at_station ? "Station":"Dock"]<BR>
|
||||
@@ -95,11 +95,11 @@ var/prison_shuttle_timeleft = 0
|
||||
if(..())
|
||||
return
|
||||
|
||||
if ((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf))) || (istype(usr, /mob/living/silicon)))
|
||||
if((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf))) || (istype(usr, /mob/living/silicon)))
|
||||
usr.set_machine(src)
|
||||
|
||||
if (href_list["sendtodock"])
|
||||
if (!prison_can_move())
|
||||
if(href_list["sendtodock"])
|
||||
if(!prison_can_move())
|
||||
to_chat(usr, "\red The prison shuttle is unable to leave.")
|
||||
return
|
||||
if(!prison_shuttle_at_station|| prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return
|
||||
@@ -112,8 +112,8 @@ var/prison_shuttle_timeleft = 0
|
||||
spawn(0)
|
||||
prison_process()
|
||||
|
||||
else if (href_list["sendtostation"])
|
||||
if (!prison_can_move())
|
||||
else if(href_list["sendtostation"])
|
||||
if(!prison_can_move())
|
||||
to_chat(usr, "\red The prison shuttle is unable to leave.")
|
||||
return
|
||||
if(prison_shuttle_at_station || prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return
|
||||
@@ -126,7 +126,7 @@ var/prison_shuttle_timeleft = 0
|
||||
spawn(0)
|
||||
prison_process()
|
||||
|
||||
else if (href_list["mainmenu"])
|
||||
else if(href_list["mainmenu"])
|
||||
src.temp = null
|
||||
|
||||
src.add_fingerprint(usr)
|
||||
@@ -141,13 +141,13 @@ var/prison_shuttle_timeleft = 0
|
||||
/*
|
||||
proc/prison_break()
|
||||
switch(prison_break)
|
||||
if (0)
|
||||
if(0)
|
||||
if(!prison_shuttle_at_station || prison_shuttle_moving_to_prison) return
|
||||
|
||||
prison_shuttle_moving_to_prison = 1
|
||||
prison_shuttle_at_station = prison_shuttle_at_station
|
||||
|
||||
if (!prison_shuttle_moving_to_prison || !prison_shuttle_moving_to_station)
|
||||
if(!prison_shuttle_moving_to_prison || !prison_shuttle_moving_to_station)
|
||||
prison_shuttle_time = world.timeofday + PRISON_MOVETIME
|
||||
spawn(0)
|
||||
prison_process()
|
||||
@@ -183,9 +183,9 @@ var/prison_shuttle_timeleft = 0
|
||||
|
||||
if(0)
|
||||
prison_shuttle_at_station = 1
|
||||
if (prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return
|
||||
if(prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return
|
||||
|
||||
if (!prison_can_move())
|
||||
if(!prison_can_move())
|
||||
to_chat(usr, "\red The prison shuttle is unable to leave.")
|
||||
return
|
||||
|
||||
@@ -212,9 +212,9 @@ var/prison_shuttle_timeleft = 0
|
||||
|
||||
if(1)
|
||||
prison_shuttle_at_station = 0
|
||||
if (prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return
|
||||
if(prison_shuttle_moving_to_station || prison_shuttle_moving_to_prison) return
|
||||
|
||||
if (!prison_can_move())
|
||||
if(!prison_can_move())
|
||||
to_chat(usr, "\red The prison shuttle is unable to leave.")
|
||||
return
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
if(!interactable() || computer.z > 6)
|
||||
return
|
||||
var/dat
|
||||
if (src.temp)
|
||||
if(src.temp)
|
||||
dat = "<TT>[src.temp]</TT><BR><BR><A href='?src=\ref[src];temp=1'>Clear Screen</A>"
|
||||
else
|
||||
if(screen == 0)
|
||||
@@ -44,10 +44,10 @@
|
||||
if(screen == 1)
|
||||
for(var/mob/living/silicon/robot/R in mob_list)
|
||||
if(istype(usr, /mob/living/silicon/ai))
|
||||
if (R.connected_ai != usr)
|
||||
if(R.connected_ai != usr)
|
||||
continue
|
||||
if(istype(usr, /mob/living/silicon/robot))
|
||||
if (R != usr)
|
||||
if(R != usr)
|
||||
continue
|
||||
if(R.scrambledcodes)
|
||||
continue
|
||||
@@ -55,11 +55,11 @@
|
||||
dat += "[R.name] |"
|
||||
if(R.stat)
|
||||
dat += " Not Responding |"
|
||||
else if (!R.canmove)
|
||||
else if(!R.canmove)
|
||||
dat += " Locked Down |"
|
||||
else
|
||||
dat += " Operating Normally |"
|
||||
if (!R.canmove)
|
||||
if(!R.canmove)
|
||||
else if(R.cell)
|
||||
dat += " Battery Installed ([R.cell.charge]/[R.cell.maxcharge]) |"
|
||||
else
|
||||
@@ -72,7 +72,7 @@
|
||||
dat += " Slaved to [R.connected_ai.name] |"
|
||||
else
|
||||
dat += " Independent from AI |"
|
||||
if (istype(usr, /mob/living/silicon))
|
||||
if(istype(usr, /mob/living/silicon))
|
||||
if(issilicon(usr) && is_special_character(usr) && !R.emagged)
|
||||
dat += "<A href='?src=\ref[src];magbot=\ref[R]'>(<i>Hack</i>)</A> "
|
||||
dat += "<A href='?src=\ref[src];stopbot=\ref[R]'>(<i>[R.canmove ? "Lockdown" : "Release"]</i>)</A> "
|
||||
@@ -105,19 +105,19 @@
|
||||
if(!interactable() || ..(href,href_list))
|
||||
return
|
||||
|
||||
if ("killall" in href_list)
|
||||
if("killall" in href_list)
|
||||
src.temp = {"Destroy Robots?<BR>
|
||||
<BR><B><A href='?src=\ref[src];do_killall'>\[Swipe ID to initiate destruction sequence\]</A></B><BR>
|
||||
<A href='?src=\ref[src];temp=1'>Cancel</A>"}
|
||||
|
||||
if ("do_killall" in href_list)
|
||||
if("do_killall" in href_list)
|
||||
var/obj/item/weapon/card/id/I = usr.get_active_hand()
|
||||
if (istype(I, /obj/item/device/pda))
|
||||
if(istype(I, /obj/item/device/pda))
|
||||
var/obj/item/device/pda/pda = I
|
||||
I = pda.id
|
||||
if (istype(I))
|
||||
if(istype(I))
|
||||
if(src.check_access(I))
|
||||
if (!status)
|
||||
if(!status)
|
||||
message_admins("\blue [key_name_admin(usr)] has initiated the global cyborg killswitch!")
|
||||
log_game("\blue [key_name(usr)] has initiated the global cyborg killswitch!")
|
||||
src.status = 1
|
||||
@@ -127,23 +127,23 @@
|
||||
else
|
||||
to_chat(usr, "\red Access Denied.")
|
||||
|
||||
if ("stop" in href_list)
|
||||
if("stop" in href_list)
|
||||
src.temp = {"
|
||||
Stop Robot Destruction Sequence?<BR>
|
||||
<BR><A href='?src=\ref[src];stop2=1'>Yes</A><BR>
|
||||
<A href='?src=\ref[src];temp=1'>No</A>"}
|
||||
|
||||
if ("stop2" in href_list)
|
||||
if("stop2" in href_list)
|
||||
src.stop = 1
|
||||
src.temp = null
|
||||
src.status = 0
|
||||
|
||||
if ("reset" in href_list)
|
||||
if("reset" in href_list)
|
||||
src.timeleft = 60
|
||||
|
||||
if ("temp" in href_list)
|
||||
if("temp" in href_list)
|
||||
src.temp = null
|
||||
if ("screen" in href_list)
|
||||
if("screen" in href_list)
|
||||
switch(href_list["screen"])
|
||||
if("0")
|
||||
screen = 0
|
||||
@@ -151,7 +151,7 @@
|
||||
screen = 1
|
||||
if("2")
|
||||
screen = 2
|
||||
if ("killbot" in href_list)
|
||||
if("killbot" in href_list)
|
||||
if(computer.allowed(usr))
|
||||
var/mob/living/silicon/robot/R = locate(href_list["killbot"])
|
||||
if(R)
|
||||
@@ -169,7 +169,7 @@
|
||||
else
|
||||
to_chat(usr, "\red Access Denied.")
|
||||
|
||||
if ("stopbot" in href_list)
|
||||
if("stopbot" in href_list)
|
||||
if(computer.allowed(usr))
|
||||
var/mob/living/silicon/robot/R = locate(href_list["stopbot"])
|
||||
if(R && istype(R)) // Extra sancheck because of input var references
|
||||
@@ -179,7 +179,7 @@
|
||||
message_admins("\blue [key_name_admin(usr)] [R.canmove ? "locked down" : "released"] [R.name]!")
|
||||
log_game("[key_name(usr)] [R.canmove ? "locked down" : "released"] [R.name]!")
|
||||
R.canmove = !R.canmove
|
||||
if (R.lockcharge)
|
||||
if(R.lockcharge)
|
||||
// R.cell.charge = R.lockcharge
|
||||
R.lockcharge = !R.lockcharge
|
||||
to_chat(R, "Your lockdown has been lifted!")
|
||||
@@ -191,7 +191,7 @@
|
||||
else
|
||||
to_chat(usr, "\red Access Denied.")
|
||||
|
||||
if ("magbot" in href_list)
|
||||
if("magbot" in href_list)
|
||||
if(computer.allowed(usr))
|
||||
var/mob/living/silicon/robot/R = locate(href_list["magbot"])
|
||||
if(R)
|
||||
|
||||
@@ -279,7 +279,7 @@
|
||||
var/rejuvenators = round(occupant.reagents.get_reagent_amount("inaprovaline") / REJUVENATORS_MAX * 100)
|
||||
status_html += "<div class='line'><div class='statusLabel'>Rejuvenators:</div><div class='progressBar'><div style='width: [rejuvenators]%;' class='progressFill highlight'></div></div><div class='statusValue'>[occupant.reagents.get_reagent_amount("inaprovaline")] units</div></div>"
|
||||
|
||||
if (dna_summary)
|
||||
if(dna_summary)
|
||||
status_html += "<div class='line'><div class='statusLabel'>Unique Enzymes :</div><div class='statusValue'><span class='highlight'>[uppertext(occupant.dna.unique_enzymes)]</span></div></div>"
|
||||
status_html += "<div class='line'><div class='statusLabel'>Unique Identifier:</div><div class='statusValue'><span class='highlight'>[occupant.dna.uni_identity]</span></div></div>"
|
||||
status_html += "<div class='line'><div class='statusLabel'>Structural Enzymes:</div><div class='statusValue'><span class='highlight'>[occupant.dna.struc_enzymes]</span></div></div>"
|
||||
@@ -384,7 +384,7 @@
|
||||
proc/emitter_menu()
|
||||
to_chat(var/dat = topic_link(src,"mode=0",", Main Menu") + "<br>")
|
||||
dat += "<h3>Radiation Emitter Settings</h3>"
|
||||
if (viable)
|
||||
if(viable)
|
||||
dat += topic_link(src,"pulse","Pulse Radiation")
|
||||
else
|
||||
dat += fake_link("Pulse Radiation")
|
||||
@@ -454,7 +454,7 @@
|
||||
updateappearance(scanner.occupant,scanner.occupant.dna.uni_identity)
|
||||
scanner.occupant.apply_effect(radstrength+radduration, IRRADIATE)
|
||||
if("ui-f")
|
||||
if (prob(20+radstrength))
|
||||
if(prob(20+radstrength))
|
||||
randmutb(scanner.occupant)
|
||||
domutcheck(scanner.occupant,scanner)
|
||||
else
|
||||
@@ -466,8 +466,8 @@
|
||||
var/se = scanner.occupant.dna.struc_enzymes
|
||||
var/targetblock = se_block
|
||||
|
||||
if (!(se_block in list(2,8,10,12)) && prob (20)) // shifts the target slightly
|
||||
if (se_block <= 5)
|
||||
if(!(se_block in list(2,8,10,12)) && prob (20)) // shifts the target slightly
|
||||
if(se_block <= 5)
|
||||
targetblock++
|
||||
else
|
||||
targetblock--
|
||||
@@ -484,7 +484,7 @@
|
||||
domutcheck(scanner.occupant,scanner)
|
||||
scanner.occupant.apply_effect(radstrength+radduration, IRRADIATE)
|
||||
if("se-f")
|
||||
if (prob(80-radduration))
|
||||
if(prob(80-radduration))
|
||||
randmutb(scanner.occupant)
|
||||
domutcheck(scanner.occupant,scanner)
|
||||
else
|
||||
@@ -493,7 +493,7 @@
|
||||
scanner.occupant.apply_effect((radstrength*2)+radduration, IRRADIATE)
|
||||
|
||||
if(null)
|
||||
if (prob(95))
|
||||
if(prob(95))
|
||||
if(prob(75))
|
||||
randmutb(scanner.occupant)
|
||||
else
|
||||
@@ -517,7 +517,7 @@
|
||||
if(istype(H))
|
||||
var/inap = H.reagents.get_reagent_amount("inaprovaline") // oh my *god* this section was ugly before I shortened it
|
||||
|
||||
if (inap < (REJUVENATORS_MAX - REJUVENATORS_INJECT))
|
||||
if(inap < (REJUVENATORS_MAX - REJUVENATORS_INJECT))
|
||||
H.reagents.add_reagent("inaprovaline", REJUVENATORS_INJECT)
|
||||
else
|
||||
H.reagents.add_reagent("inaprovaline", max(REJUVENATORS_MAX - inap,0))
|
||||
@@ -534,32 +534,32 @@
|
||||
var/viable_occupant = (occupant && occupant.dna && !(NOCLONE in occupant.mutations))
|
||||
var/mob/living/carbon/human/human_occupant = scanner.occupant
|
||||
|
||||
if (href_list["screen"]) // Passing a screen is only a request, we set current_screen here but it can be overridden below if necessary
|
||||
if(href_list["screen"]) // Passing a screen is only a request, we set current_screen here but it can be overridden below if necessary
|
||||
current_screen = href_list["screen"]
|
||||
|
||||
if (!viable_occupant) // If there is no viable occupant only allow certain screens
|
||||
if(!viable_occupant) // If there is no viable occupant only allow certain screens
|
||||
var/allowed_no_occupant_screens = list("mainmenu", "radsetmenu", "buffermenu") //These are the screens which will be allowed if there's no occupant
|
||||
if (!(current_screen in allowed_no_occupant_screens))
|
||||
if(!(current_screen in allowed_no_occupant_screens))
|
||||
href_list = new /list(0) // clear list of options
|
||||
current_screen = "mainmenu"
|
||||
|
||||
|
||||
if (!current_screen) // If no screen is set default to mainmenu
|
||||
if(!current_screen) // If no screen is set default to mainmenu
|
||||
current_screen = "mainmenu"
|
||||
|
||||
|
||||
if (!scanner) //Is the scanner not connected?
|
||||
if(!scanner) //Is the scanner not connected?
|
||||
scanner_status_html = "<span class='bad'>ERROR: No DNA Scanner connected.</span>"
|
||||
current_screen = null // blank does not exist in the switch below, so no screen will be outputted
|
||||
updateUsrDialog()
|
||||
return
|
||||
|
||||
usr.set_machine(src)
|
||||
if (href_list["locked"])
|
||||
if (scanner.occupant)
|
||||
if(href_list["locked"])
|
||||
if(scanner.occupant)
|
||||
scanner.locked = !( scanner.locked )
|
||||
////////////////////////////////////////////////////////
|
||||
if (href_list["genpulse"])
|
||||
if(href_list["genpulse"])
|
||||
if(!viable_occupant)//Makes sure someone is in there (And valid) before trying anything
|
||||
temp_html = text("No viable occupant detected.")//More than anything, this just acts as a sanity check in case the option DOES appear for whatever reason
|
||||
//usr << browse(temp_html, "window=scannernew;size=550x650")
|
||||
@@ -574,10 +574,10 @@
|
||||
var/lock_state = scanner.locked
|
||||
scanner.locked = 1//lock it
|
||||
sleep(10*radduration)
|
||||
if (!scanner.occupant)
|
||||
if(!scanner.occupant)
|
||||
temp_html = null
|
||||
return null
|
||||
if (prob(95))
|
||||
if(prob(95))
|
||||
if(prob(75))
|
||||
randmutb(scanner.occupant)
|
||||
else
|
||||
@@ -591,59 +591,59 @@
|
||||
scanner.locked = lock_state
|
||||
temp_html = null
|
||||
dopage(src,"screen=radsetmenu")
|
||||
if (href_list["radleplus"])
|
||||
if(href_list["radleplus"])
|
||||
if(!viable_occupant)
|
||||
temp_html = text("No viable occupant detected.")
|
||||
popup.set_content(temp_html)
|
||||
popup.open()
|
||||
if (radduration < 20)
|
||||
if(radduration < 20)
|
||||
radduration++
|
||||
radduration++
|
||||
dopage(src,"screen=radsetmenu")
|
||||
if (href_list["radleminus"])
|
||||
if(href_list["radleminus"])
|
||||
if(!viable_occupant)
|
||||
temp_html = text("No viable occupant detected.")
|
||||
popup.set_content(temp_html)
|
||||
popup.open()
|
||||
if (radduration > 2)
|
||||
if(radduration > 2)
|
||||
radduration--
|
||||
radduration--
|
||||
dopage(src,"screen=radsetmenu")
|
||||
if (href_list["radinplus"])
|
||||
if (radstrength < 10)
|
||||
if(href_list["radinplus"])
|
||||
if(radstrength < 10)
|
||||
radstrength++
|
||||
dopage(src,"screen=radsetmenu")
|
||||
if (href_list["radinminus"])
|
||||
if (radstrength > 1)
|
||||
if(href_list["radinminus"])
|
||||
if(radstrength > 1)
|
||||
radstrength--
|
||||
dopage(src,"screen=radsetmenu")
|
||||
////////////////////////////////////////////////////////
|
||||
if (href_list["unimenuplus"])
|
||||
if (ui_block < 13)
|
||||
if(href_list["unimenuplus"])
|
||||
if(ui_block < 13)
|
||||
ui_block++
|
||||
else
|
||||
ui_block = 1
|
||||
dopage(src,"screen=unimenu")
|
||||
if (href_list["unimenuminus"])
|
||||
if (ui_block > 1)
|
||||
if(href_list["unimenuminus"])
|
||||
if(ui_block > 1)
|
||||
ui_block--
|
||||
else
|
||||
ui_block = 13
|
||||
dopage(src,"screen=unimenu")
|
||||
if (href_list["unimenusubplus"])
|
||||
if (subblock < 3)
|
||||
if(href_list["unimenusubplus"])
|
||||
if(subblock < 3)
|
||||
subblock++
|
||||
else
|
||||
subblock = 1
|
||||
dopage(src,"screen=unimenu")
|
||||
if (href_list["unimenusubminus"])
|
||||
if (subblock > 1)
|
||||
if(href_list["unimenusubminus"])
|
||||
if(subblock > 1)
|
||||
subblock--
|
||||
else
|
||||
subblock = 3
|
||||
dopage(src,"screen=unimenu")
|
||||
if (href_list["unimenutargetplus"])
|
||||
if (unitarget < 15)
|
||||
if(href_list["unimenutargetplus"])
|
||||
if(unitarget < 15)
|
||||
unitarget++
|
||||
unitargethex = unitarget
|
||||
switch(unitarget)
|
||||
@@ -663,8 +663,8 @@
|
||||
unitarget = 0
|
||||
unitargethex = 0
|
||||
dopage(src,"screen=unimenu")
|
||||
if (href_list["unimenutargetminus"])
|
||||
if (unitarget > 0)
|
||||
if(href_list["unimenutargetminus"])
|
||||
if(unitarget > 0)
|
||||
unitarget--
|
||||
unitargethex = unitarget
|
||||
switch(unitarget)
|
||||
@@ -682,15 +682,15 @@
|
||||
unitarget = 15
|
||||
unitargethex = "F"
|
||||
dopage(src,"screen=unimenu")
|
||||
if (href_list["uimenuset"] && href_list["uimenusubset"]) // This chunk of code updates selected block / sub-block based on click
|
||||
if(href_list["uimenuset"] && href_list["uimenusubset"]) // This chunk of code updates selected block / sub-block based on click
|
||||
var/menuset = text2num(href_list["uimenuset"])
|
||||
var/menusubset = text2num(href_list["uimenusubset"])
|
||||
if ((menuset <= 13) && (menuset >= 1))
|
||||
if((menuset <= 13) && (menuset >= 1))
|
||||
ui_block = menuset
|
||||
if ((menusubset <= 3) && (menusubset >= 1))
|
||||
if((menusubset <= 3) && (menusubset >= 1))
|
||||
subblock = menusubset
|
||||
dopage(src, "unimenu")
|
||||
if (href_list["unipulse"])
|
||||
if(href_list["unipulse"])
|
||||
if(scanner.occupant)
|
||||
var/block
|
||||
var/newblock
|
||||
@@ -703,22 +703,22 @@
|
||||
var/lock_state = scanner.locked
|
||||
scanner.locked = 1//lock it
|
||||
sleep(10*radduration)
|
||||
if (!scanner.occupant)
|
||||
if(!scanner.occupant)
|
||||
temp_html = null
|
||||
return null
|
||||
///
|
||||
if (prob((80 + (radduration / 2))))
|
||||
if(prob((80 + (radduration / 2))))
|
||||
block = miniscrambletarget(num2text(unitarget), radstrength, radduration)
|
||||
newblock = null
|
||||
if (subblock == 1) newblock = block + getblock(getblock(scanner.occupant.dna.uni_identity,ui_block,3),2,1) + getblock(getblock(scanner.occupant.dna.uni_identity,ui_block,3),3,1)
|
||||
if (subblock == 2) newblock = getblock(getblock(scanner.occupant.dna.uni_identity,ui_block,3),1,1) + block + getblock(getblock(scanner.occupant.dna.uni_identity,ui_block,3),3,1)
|
||||
if (subblock == 3) newblock = getblock(getblock(scanner.occupant.dna.uni_identity,ui_block,3),1,1) + getblock(getblock(scanner.occupant.dna.uni_identity,ui_block,3),2,1) + block
|
||||
if(subblock == 1) newblock = block + getblock(getblock(scanner.occupant.dna.uni_identity,ui_block,3),2,1) + getblock(getblock(scanner.occupant.dna.uni_identity,ui_block,3),3,1)
|
||||
if(subblock == 2) newblock = getblock(getblock(scanner.occupant.dna.uni_identity,ui_block,3),1,1) + block + getblock(getblock(scanner.occupant.dna.uni_identity,ui_block,3),3,1)
|
||||
if(subblock == 3) newblock = getblock(getblock(scanner.occupant.dna.uni_identity,ui_block,3),1,1) + getblock(getblock(scanner.occupant.dna.uni_identity,ui_block,3),2,1) + block
|
||||
tstructure2 = setblock(scanner.occupant.dna.uni_identity, ui_block, newblock,3)
|
||||
scanner.occupant.dna.uni_identity = tstructure2
|
||||
updateappearance(scanner.occupant,scanner.occupant.dna.uni_identity)
|
||||
scanner.occupant.apply_effect(radstrength+radduration, IRRADIATE)
|
||||
else
|
||||
if (prob(20+radstrength))
|
||||
if(prob(20+radstrength))
|
||||
randmutb(scanner.occupant)
|
||||
domutcheck(scanner.occupant,scanner)
|
||||
else
|
||||
@@ -729,61 +729,61 @@
|
||||
dopage(src,"screen=unimenu")
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
if (href_list["rejuv"])
|
||||
if(href_list["rejuv"])
|
||||
if(!viable_occupant)
|
||||
temp_html = text("No viable occupant detected.")
|
||||
popup.set_content(temp_html)
|
||||
popup.open()
|
||||
else
|
||||
if(human_occupant)
|
||||
if (human_occupant.reagents.get_reagent_amount("inaprovaline") < REJUVENATORS_MAX)
|
||||
if (human_occupant.reagents.get_reagent_amount("inaprovaline") < (REJUVENATORS_MAX - REJUVENATORS_INJECT))
|
||||
if(human_occupant.reagents.get_reagent_amount("inaprovaline") < REJUVENATORS_MAX)
|
||||
if(human_occupant.reagents.get_reagent_amount("inaprovaline") < (REJUVENATORS_MAX - REJUVENATORS_INJECT))
|
||||
human_occupant.reagents.add_reagent("inaprovaline", REJUVENATORS_INJECT)
|
||||
else
|
||||
human_occupant.reagents.add_reagent("inaprovaline", round(REJUVENATORS_MAX - human_occupant.reagents.get_reagent_amount("inaprovaline")))
|
||||
// to_chat(usr, text("Occupant now has [] units of rejuvenation in his/her bloodstream.", human_occupant.reagents.get_reagent_amount("inaprovaline")))
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
if (href_list["strucmenuplus"])
|
||||
if (se_block < 14)
|
||||
if(href_list["strucmenuplus"])
|
||||
if(se_block < 14)
|
||||
se_block++
|
||||
else
|
||||
se_block = 1
|
||||
dopage(src,"screen=strucmenu")
|
||||
if (href_list["strucmenuminus"])
|
||||
if (se_block > 1)
|
||||
if(href_list["strucmenuminus"])
|
||||
if(se_block > 1)
|
||||
se_block--
|
||||
else
|
||||
se_block = 14
|
||||
dopage(src,"screen=strucmenu")
|
||||
if (href_list["strucmenusubplus"])
|
||||
if (subblock < 3)
|
||||
if(href_list["strucmenusubplus"])
|
||||
if(subblock < 3)
|
||||
subblock++
|
||||
else
|
||||
subblock = 1
|
||||
dopage(src,"screen=strucmenu")
|
||||
if (href_list["strucmenusubminus"])
|
||||
if (subblock > 1)
|
||||
if(href_list["strucmenusubminus"])
|
||||
if(subblock > 1)
|
||||
subblock--
|
||||
else
|
||||
subblock = 3
|
||||
dopage(src,"screen=strucmenu")
|
||||
if (href_list["semenuset"] && href_list["semenusubset"]) // This chunk of code updates selected block / sub-block based on click (se stands for strutural enzymes)
|
||||
if(href_list["semenuset"] && href_list["semenusubset"]) // This chunk of code updates selected block / sub-block based on click (se stands for strutural enzymes)
|
||||
var/menuset = text2num(href_list["semenuset"])
|
||||
var/menusubset = text2num(href_list["semenusubset"])
|
||||
if ((menuset <= 14) && (menuset >= 1))
|
||||
if((menuset <= 14) && (menuset >= 1))
|
||||
se_block = menuset
|
||||
if ((menusubset <= 3) && (menusubset >= 1))
|
||||
if((menusubset <= 3) && (menusubset >= 1))
|
||||
subblock = menusubset
|
||||
dopage(src, "strucmenu")
|
||||
if (href_list["strucpulse"])
|
||||
if(href_list["strucpulse"])
|
||||
var/block
|
||||
var/newblock
|
||||
var/tstructure2
|
||||
var/oldblock
|
||||
var/lock_state = scanner.locked
|
||||
scanner.locked = 1//lock it
|
||||
if (viable_occupant)
|
||||
if(viable_occupant)
|
||||
block = getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),subblock,1)
|
||||
|
||||
temp_html = text("Working ... Please wait ([] Seconds)", radduration)
|
||||
@@ -795,18 +795,18 @@
|
||||
return null
|
||||
///
|
||||
if(viable_occupant)
|
||||
if (prob((80 + (radduration / 2))))
|
||||
if ((se_block != 2 || se_block != 12 || se_block != 8 || se_block || 10) && prob (20))
|
||||
if(prob((80 + (radduration / 2))))
|
||||
if((se_block != 2 || se_block != 12 || se_block != 8 || se_block || 10) && prob (20))
|
||||
oldblock = se_block
|
||||
block = miniscramble(block, radstrength, radduration)
|
||||
newblock = null
|
||||
if (se_block > 1 && se_block < 5)
|
||||
if(se_block > 1 && se_block < 5)
|
||||
se_block++
|
||||
else if (se_block > 5 && se_block < 14)
|
||||
else if(se_block > 5 && se_block < 14)
|
||||
se_block--
|
||||
if (subblock == 1) newblock = block + getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),2,1) + getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),3,1)
|
||||
if (subblock == 2) newblock = getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),1,1) + block + getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),3,1)
|
||||
if (subblock == 3) newblock = getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),1,1) + getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),2,1) + block
|
||||
if(subblock == 1) newblock = block + getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),2,1) + getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),3,1)
|
||||
if(subblock == 2) newblock = getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),1,1) + block + getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),3,1)
|
||||
if(subblock == 3) newblock = getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),1,1) + getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),2,1) + block
|
||||
tstructure2 = setblock(scanner.occupant.dna.struc_enzymes, se_block, newblock,3)
|
||||
scanner.occupant.dna.struc_enzymes = tstructure2
|
||||
domutcheck(scanner.occupant,scanner)
|
||||
@@ -816,15 +816,15 @@
|
||||
//
|
||||
block = miniscramble(block, radstrength, radduration)
|
||||
newblock = null
|
||||
if (subblock == 1) newblock = block + getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),2,1) + getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),3,1)
|
||||
if (subblock == 2) newblock = getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),1,1) + block + getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),3,1)
|
||||
if (subblock == 3) newblock = getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),1,1) + getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),2,1) + block
|
||||
if(subblock == 1) newblock = block + getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),2,1) + getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),3,1)
|
||||
if(subblock == 2) newblock = getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),1,1) + block + getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),3,1)
|
||||
if(subblock == 3) newblock = getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),1,1) + getblock(getblock(scanner.occupant.dna.struc_enzymes,se_block,3),2,1) + block
|
||||
tstructure2 = setblock(scanner.occupant.dna.struc_enzymes, se_block, newblock,3)
|
||||
scanner.occupant.dna.struc_enzymes = tstructure2
|
||||
domutcheck(scanner.occupant,scanner)
|
||||
scanner.occupant.apply_effect(radstrength+radduration, IRRADIATE)
|
||||
else
|
||||
if (prob(80-radduration))
|
||||
if(prob(80-radduration))
|
||||
randmutb(scanner.occupant)
|
||||
domutcheck(scanner.occupant,scanner)
|
||||
else
|
||||
@@ -836,21 +836,21 @@
|
||||
dopage(src,"screen=strucmenu")
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
if (href_list["b1addui"])
|
||||
if(href_list["b1addui"])
|
||||
if(scanner.occupant && scanner.occupant.dna)
|
||||
buffer1iue = 0
|
||||
buffer1 = scanner.occupant.dna.uni_identity
|
||||
if (!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
if(!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
buffer1owner = scanner.occupant.name
|
||||
else
|
||||
buffer1owner = scanner.occupant.real_name
|
||||
buffer1label = "Unique Identifier"
|
||||
buffer1type = "ui"
|
||||
dopage(src,"screen=buffermenu")
|
||||
if (href_list["b1adduiue"])
|
||||
if(href_list["b1adduiue"])
|
||||
if(scanner.occupant && scanner.occupant.dna)
|
||||
buffer1 = scanner.occupant.dna.uni_identity
|
||||
if (!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
if(!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
buffer1owner = scanner.occupant.name
|
||||
else
|
||||
buffer1owner = scanner.occupant.real_name
|
||||
@@ -858,10 +858,10 @@
|
||||
buffer1type = "ui"
|
||||
buffer1iue = 1
|
||||
dopage(src,"screen=buffermenu")
|
||||
if (href_list["b2adduiue"])
|
||||
if(href_list["b2adduiue"])
|
||||
if(scanner.occupant && scanner.occupant.dna)
|
||||
buffer2 = scanner.occupant.dna.uni_identity
|
||||
if (!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
if(!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
buffer2owner = scanner.occupant.name
|
||||
else
|
||||
buffer2owner = scanner.occupant.real_name
|
||||
@@ -869,10 +869,10 @@
|
||||
buffer2type = "ui"
|
||||
buffer2iue = 1
|
||||
dopage(src,"screen=buffermenu")
|
||||
if (href_list["b3adduiue"])
|
||||
if(href_list["b3adduiue"])
|
||||
if(scanner.occupant && scanner.occupant.dna)
|
||||
buffer3 = scanner.occupant.dna.uni_identity
|
||||
if (!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
if(!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
buffer3owner = scanner.occupant.name
|
||||
else
|
||||
buffer3owner = scanner.occupant.real_name
|
||||
@@ -880,141 +880,141 @@
|
||||
buffer3type = "ui"
|
||||
buffer3iue = 1
|
||||
dopage(src,"screen=buffermenu")
|
||||
if (href_list["b2addui"])
|
||||
if(href_list["b2addui"])
|
||||
if(scanner.occupant && scanner.occupant.dna)
|
||||
buffer2iue = 0
|
||||
buffer2 = scanner.occupant.dna.uni_identity
|
||||
if (!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
if(!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
buffer2owner = scanner.occupant.name
|
||||
else
|
||||
buffer2owner = scanner.occupant.real_name
|
||||
buffer2label = "Unique Identifier"
|
||||
buffer2type = "ui"
|
||||
dopage(src,"screen=buffermenu")
|
||||
if (href_list["b3addui"])
|
||||
if(href_list["b3addui"])
|
||||
if(scanner.occupant && scanner.occupant.dna)
|
||||
buffer3iue = 0
|
||||
buffer3 = scanner.occupant.dna.uni_identity
|
||||
if (!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
if(!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
buffer3owner = scanner.occupant.name
|
||||
else
|
||||
buffer3owner = scanner.occupant.real_name
|
||||
buffer3label = "Unique Identifier"
|
||||
buffer3type = "ui"
|
||||
dopage(src,"screen=buffermenu")
|
||||
if (href_list["b1addse"])
|
||||
if(href_list["b1addse"])
|
||||
if(scanner.occupant && scanner.occupant.dna)
|
||||
buffer1iue = 0
|
||||
buffer1 = scanner.occupant.dna.struc_enzymes
|
||||
if (!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
if(!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
buffer1owner = scanner.occupant.name
|
||||
else
|
||||
buffer1owner = scanner.occupant.real_name
|
||||
buffer1label = "Structural Enzymes"
|
||||
buffer1type = "se"
|
||||
dopage(src,"screen=buffermenu")
|
||||
if (href_list["b2addse"])
|
||||
if(href_list["b2addse"])
|
||||
if(scanner.occupant && scanner.occupant.dna)
|
||||
buffer2iue = 0
|
||||
buffer2 = scanner.occupant.dna.struc_enzymes
|
||||
if (!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
if(!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
buffer2owner = scanner.occupant.name
|
||||
else
|
||||
buffer2owner = scanner.occupant.real_name
|
||||
buffer2label = "Structural Enzymes"
|
||||
buffer2type = "se"
|
||||
dopage(src,"screen=buffermenu")
|
||||
if (href_list["b3addse"])
|
||||
if(href_list["b3addse"])
|
||||
if(scanner.occupant && scanner.occupant.dna)
|
||||
buffer3iue = 0
|
||||
buffer3 = scanner.occupant.dna.struc_enzymes
|
||||
if (!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
if(!istype(scanner.occupant,/mob/living/carbon/human))
|
||||
buffer3owner = scanner.occupant.name
|
||||
else
|
||||
buffer3owner = scanner.occupant.real_name
|
||||
buffer3label = "Structural Enzymes"
|
||||
buffer3type = "se"
|
||||
dopage(src,"screen=buffermenu")
|
||||
if (href_list["b1clear"])
|
||||
if(href_list["b1clear"])
|
||||
buffer1 = null
|
||||
buffer1owner = null
|
||||
buffer1label = null
|
||||
buffer1iue = null
|
||||
dopage(src,"screen=buffermenu")
|
||||
if (href_list["b2clear"])
|
||||
if(href_list["b2clear"])
|
||||
buffer2 = null
|
||||
buffer2owner = null
|
||||
buffer2label = null
|
||||
buffer2iue = null
|
||||
dopage(src,"screen=buffermenu")
|
||||
if (href_list["b3clear"])
|
||||
if(href_list["b3clear"])
|
||||
buffer3 = null
|
||||
buffer3owner = null
|
||||
buffer3label = null
|
||||
buffer3iue = null
|
||||
dopage(src,"screen=buffermenu")
|
||||
if (href_list["b1label"])
|
||||
if(href_list["b1label"])
|
||||
buffer1label = sanitize(input("New Label:","Edit Label","Infos here"))
|
||||
dopage(src,"screen=buffermenu")
|
||||
if (href_list["b2label"])
|
||||
if(href_list["b2label"])
|
||||
buffer2label = sanitize(input("New Label:","Edit Label","Infos here"))
|
||||
dopage(src,"screen=buffermenu")
|
||||
if (href_list["b3label"])
|
||||
if(href_list["b3label"])
|
||||
buffer3label = sanitize(input("New Label:","Edit Label","Infos here"))
|
||||
dopage(src,"screen=buffermenu")
|
||||
if (href_list["b1transfer"])
|
||||
if (!scanner.occupant || (NOCLONE in scanner.occupant.mutations) || !scanner.occupant.dna)
|
||||
if(href_list["b1transfer"])
|
||||
if(!scanner.occupant || (NOCLONE in scanner.occupant.mutations) || !scanner.occupant.dna)
|
||||
return
|
||||
if (buffer1type == "ui")
|
||||
if (buffer1iue)
|
||||
if(buffer1type == "ui")
|
||||
if(buffer1iue)
|
||||
scanner.occupant.real_name = buffer1owner
|
||||
scanner.occupant.name = buffer1owner
|
||||
scanner.occupant.dna.uni_identity = buffer1
|
||||
updateappearance(scanner.occupant,scanner.occupant.dna.uni_identity)
|
||||
else if (buffer1type == "se")
|
||||
else if(buffer1type == "se")
|
||||
scanner.occupant.dna.struc_enzymes = buffer1
|
||||
domutcheck(scanner.occupant,scanner)
|
||||
temp_html = "Transfered."
|
||||
scanner.occupant.apply_effect(rand(20,50), IRRADIATE)
|
||||
|
||||
if (href_list["b2transfer"])
|
||||
if (!scanner.occupant || (NOCLONE in scanner.occupant.mutations) || !scanner.occupant.dna)
|
||||
if(href_list["b2transfer"])
|
||||
if(!scanner.occupant || (NOCLONE in scanner.occupant.mutations) || !scanner.occupant.dna)
|
||||
return
|
||||
if (buffer2type == "ui")
|
||||
if (buffer2iue)
|
||||
if(buffer2type == "ui")
|
||||
if(buffer2iue)
|
||||
scanner.occupant.real_name = buffer2owner
|
||||
scanner.occupant.name = buffer2owner
|
||||
scanner.occupant.dna.uni_identity = buffer2
|
||||
updateappearance(scanner.occupant,scanner.occupant.dna.uni_identity)
|
||||
else if (buffer2type == "se")
|
||||
else if(buffer2type == "se")
|
||||
scanner.occupant.dna.struc_enzymes = buffer2
|
||||
domutcheck(scanner.occupant,scanner)
|
||||
temp_html = "Transfered."
|
||||
scanner.occupant.apply_effect(rand(20,50), IRRADIATE)
|
||||
|
||||
if (href_list["b3transfer"])
|
||||
if (!scanner.occupant || (NOCLONE in scanner.occupant.mutations) || !scanner.occupant.dna)
|
||||
if(href_list["b3transfer"])
|
||||
if(!scanner.occupant || (NOCLONE in scanner.occupant.mutations) || !scanner.occupant.dna)
|
||||
return
|
||||
if (buffer3type == "ui")
|
||||
if (buffer3iue)
|
||||
if(buffer3type == "ui")
|
||||
if(buffer3iue)
|
||||
scanner.occupant.real_name = buffer3owner
|
||||
scanner.occupant.name = buffer3owner
|
||||
scanner.occupant.dna.uni_identity = buffer3
|
||||
updateappearance(scanner.occupant,scanner.occupant.dna.uni_identity)
|
||||
else if (buffer3type == "se")
|
||||
else if(buffer3type == "se")
|
||||
scanner.occupant.dna.struc_enzymes = buffer3
|
||||
domutcheck(scanner.occupant,scanner)
|
||||
temp_html = "Transfered."
|
||||
scanner.occupant.apply_effect(rand(20,50), IRRADIATE)
|
||||
|
||||
if (href_list["b1injector"])
|
||||
if (injectorready)
|
||||
if(href_list["b1injector"])
|
||||
if(injectorready)
|
||||
var/obj/item/tool/medical/dnainjector/I = new /obj/item/tool/medical/dnainjector
|
||||
I.dna = buffer1
|
||||
I.dnatype = buffer1type
|
||||
I.loc = loc
|
||||
I.name += " ([buffer1label])"
|
||||
if (buffer1iue) I.ue = buffer1owner //lazy haw haw
|
||||
if(buffer1iue) I.ue = buffer1owner //lazy haw haw
|
||||
temp_html = "Injector created."
|
||||
|
||||
injectorready = 0
|
||||
@@ -1023,14 +1023,14 @@
|
||||
else
|
||||
temp_html = "Replicator not ready yet."
|
||||
|
||||
if (href_list["b2injector"])
|
||||
if (injectorready)
|
||||
if(href_list["b2injector"])
|
||||
if(injectorready)
|
||||
var/obj/item/tool/medical/dnainjector/I = new /obj/item/tool/medical/dnainjector
|
||||
I.dna = buffer2
|
||||
I.dnatype = buffer2type
|
||||
I.loc = loc
|
||||
I.name += " ([buffer2label])"
|
||||
if (buffer2iue) I.ue = buffer2owner //lazy haw haw
|
||||
if(buffer2iue) I.ue = buffer2owner //lazy haw haw
|
||||
temp_html = "Injector created."
|
||||
|
||||
injectorready = 0
|
||||
@@ -1039,14 +1039,14 @@
|
||||
else
|
||||
temp_html = "Replicator not ready yet."
|
||||
|
||||
if (href_list["b3injector"])
|
||||
if (injectorready)
|
||||
if(href_list["b3injector"])
|
||||
if(injectorready)
|
||||
var/obj/item/tool/medical/dnainjector/I = new /obj/item/tool/medical/dnainjector
|
||||
I.dna = buffer3
|
||||
I.dnatype = buffer3type
|
||||
I.loc = loc
|
||||
I.name += " ([buffer3label])"
|
||||
if (buffer3iue) I.ue = buffer3owner //lazy haw haw
|
||||
if(buffer3iue) I.ue = buffer3owner //lazy haw haw
|
||||
temp_html = "Injector created."
|
||||
|
||||
injectorready = 0
|
||||
@@ -1056,11 +1056,11 @@
|
||||
temp_html = "Replicator not ready yet."
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
if (href_list["load_disk"])
|
||||
if(href_list["load_disk"])
|
||||
var/buffernum = text2num(href_list["load_disk"])
|
||||
if ((buffernum > 3) || (buffernum < 1))
|
||||
if((buffernum > 3) || (buffernum < 1))
|
||||
return
|
||||
if ((isnull(diskette)) || (!diskette.data) || (diskette.data == ""))
|
||||
if((isnull(diskette)) || (!diskette.data) || (diskette.data == ""))
|
||||
return
|
||||
switch(buffernum)
|
||||
if(1)
|
||||
@@ -1080,11 +1080,11 @@
|
||||
buffer3owner = diskette.owner
|
||||
temp_html = "Data loaded."
|
||||
|
||||
if (href_list["save_disk"])
|
||||
if(href_list["save_disk"])
|
||||
var/buffernum = text2num(href_list["save_disk"])
|
||||
if ((buffernum > 3) || (buffernum < 1))
|
||||
if((buffernum > 3) || (buffernum < 1))
|
||||
return
|
||||
if ((isnull(diskette)) || (diskette.read_only))
|
||||
if((isnull(diskette)) || (diskette.read_only))
|
||||
return
|
||||
switch(buffernum)
|
||||
if(1)
|
||||
@@ -1106,8 +1106,8 @@
|
||||
diskette.owner = buffer3owner
|
||||
diskette.name = "data disk - '[buffer3owner]'"
|
||||
temp_html = "Data saved."
|
||||
if (href_list["eject_disk"])
|
||||
if (!diskette)
|
||||
if(href_list["eject_disk"])
|
||||
if(!diskette)
|
||||
return
|
||||
diskette.loc = get_turf(src)
|
||||
diskette = null
|
||||
@@ -1115,9 +1115,9 @@
|
||||
|
||||
temp_html = temp_header_html
|
||||
switch(current_screen)
|
||||
if ("mainmenu")
|
||||
if("mainmenu")
|
||||
temp_html += "<h3>Main Menu</h3>"
|
||||
if (viable_occupant) //is there REALLY someone in there who can be modified?
|
||||
if(viable_occupant) //is there REALLY someone in there who can be modified?
|
||||
temp_html += text("<A href='?src=\ref[];screen=unimenu'>Modify Unique Identifier</A><br />", src)
|
||||
temp_html += text("<A href='?src=\ref[];screen=strucmenu'>Modify Structural Enzymes</A><br /><br />", src)
|
||||
else
|
||||
@@ -1126,7 +1126,7 @@
|
||||
temp_html += text("<A href='?src=\ref[];screen=radsetmenu'>Radiation Emitter Settings</A><br /><br />", src)
|
||||
temp_html += text("<A href='?src=\ref[];screen=buffermenu'>Transfer Buffer</A><br /><br />", src)
|
||||
|
||||
if ("unimenu")
|
||||
if("unimenu")
|
||||
if(!viable_occupant)
|
||||
temp_html = text("No viable occupant detected.")
|
||||
popup.set_content(temp_html)
|
||||
@@ -1141,7 +1141,7 @@
|
||||
temp_html += "<B>Modify Block</B><br />"
|
||||
temp_html += "<A href='?src=\ref[src];unipulse=1'>Irradiate</A></div>"
|
||||
|
||||
if ("strucmenu")
|
||||
if("strucmenu")
|
||||
if(!viable_occupant)
|
||||
temp_html = text("No viable occupant detected.")
|
||||
popup.set_content(temp_html)
|
||||
@@ -1155,61 +1155,61 @@
|
||||
temp_html += "<B>Modify Block</B><br />"
|
||||
temp_html += "<A href='?src=\ref[src];strucpulse=1'>Irradiate</A></div>"
|
||||
|
||||
if ("radsetmenu")
|
||||
if("radsetmenu")
|
||||
temp_html = "<A href='?src=\ref[src];screen=mainmenu'><< Main Menu</A><br />"
|
||||
temp_html += "<h3>Radiation Emitter Settings</h3>"
|
||||
if (viable_occupant)
|
||||
if(viable_occupant)
|
||||
temp_html += text("<A href='?src=\ref[];genpulse=1'>Pulse Radiation</A>", src)
|
||||
else
|
||||
temp_html += "<span class='linkOff'>Pulse Radiation</span>"
|
||||
temp_html += "<br /><br />Radiation Duration: <A href='?src=\ref[src];radleminus=1'>-</A> <font color='green'><B>[radduration]</B></FONT> <A href='?src=\ref[src];radleplus=1'>+</A><br />"
|
||||
temp_html += "Radiation Intensity: <A href='?src=\ref[src];radinminus=1'>-</A> <font color='green'><B>[radstrength]</B></FONT> <A href='?src=\ref[src];radinplus=1'>+</A><br /><br />"
|
||||
|
||||
if ("buffermenu")
|
||||
if("buffermenu")
|
||||
temp_html = "<A href='?src=\ref[src];screen=mainmenu'><< Main Menu</A><br />"
|
||||
temp_html += "<h3>Transfer Buffer</h3>"
|
||||
temp_html += "<h4>Buffer 1:</h4>"
|
||||
if (!(buffer1))
|
||||
if(!(buffer1))
|
||||
temp_html += "<i>Buffer Empty</i><br />"
|
||||
else
|
||||
temp_html += text("Data: <font class='highlight'>[]</FONT><br />", buffer1)
|
||||
temp_html += text("By: <font class='highlight'>[]</FONT><br />", buffer1owner)
|
||||
temp_html += text("Label: <font class='highlight'>[]</FONT><br />", buffer1label)
|
||||
if (viable_occupant) temp_html += text("Save : <A href='?src=\ref[];b1addui=1'>UI</A> - <A href='?src=\ref[];b1adduiue=1'>UI+UE</A> - <A href='?src=\ref[];b1addse=1'>SE</A><br />", src, src, src)
|
||||
if (buffer1) temp_html += text("Transfer to: <A href='?src=\ref[];b1transfer=1'>Occupant</A> - <A href='?src=\ref[];b1injector=1'>Injector</A><br />", src, src)
|
||||
//if (buffer1) temp_html += text("<A href='?src=\ref[];b1iso=1'>Isolate Block</A><br />", src)
|
||||
if (buffer1) temp_html += "Disk: <A href='?src=\ref[src];save_disk=1'>Save To</a> | <A href='?src=\ref[src];load_disk=1'>Load From</a><br />"
|
||||
if (buffer1) temp_html += text("<A href='?src=\ref[];b1label=1'>Edit Label</A><br />", src)
|
||||
if (buffer1) temp_html += text("<A href='?src=\ref[];b1clear=1'>Clear Buffer</A><br /><br />", src)
|
||||
if (!buffer1) temp_html += "<br />"
|
||||
if(viable_occupant) temp_html += text("Save : <A href='?src=\ref[];b1addui=1'>UI</A> - <A href='?src=\ref[];b1adduiue=1'>UI+UE</A> - <A href='?src=\ref[];b1addse=1'>SE</A><br />", src, src, src)
|
||||
if(buffer1) temp_html += text("Transfer to: <A href='?src=\ref[];b1transfer=1'>Occupant</A> - <A href='?src=\ref[];b1injector=1'>Injector</A><br />", src, src)
|
||||
//if(buffer1) temp_html += text("<A href='?src=\ref[];b1iso=1'>Isolate Block</A><br />", src)
|
||||
if(buffer1) temp_html += "Disk: <A href='?src=\ref[src];save_disk=1'>Save To</a> | <A href='?src=\ref[src];load_disk=1'>Load From</a><br />"
|
||||
if(buffer1) temp_html += text("<A href='?src=\ref[];b1label=1'>Edit Label</A><br />", src)
|
||||
if(buffer1) temp_html += text("<A href='?src=\ref[];b1clear=1'>Clear Buffer</A><br /><br />", src)
|
||||
if(!buffer1) temp_html += "<br />"
|
||||
temp_html += "<h4>Buffer 2:</h4>"
|
||||
if (!(buffer2))
|
||||
if(!(buffer2))
|
||||
temp_html += "<i>Buffer Empty</i><br />"
|
||||
else
|
||||
temp_html += text("Data: <font class='highlight'>[]</FONT><br />", buffer2)
|
||||
temp_html += text("By: <font class='highlight'>[]</FONT><br />", buffer2owner)
|
||||
temp_html += text("Label: <font class='highlight'>[]</FONT><br />", buffer2label)
|
||||
if (viable_occupant) temp_html += text("Save : <A href='?src=\ref[];b2addui=1'>UI</A> - <A href='?src=\ref[];b2adduiue=1'>UI+UE</A> - <A href='?src=\ref[];b2addse=1'>SE</A><br />", src, src, src)
|
||||
if (buffer2) temp_html += text("Transfer to: <A href='?src=\ref[];b2transfer=1'>Occupant</A> - <A href='?src=\ref[];b2injector=1'>Injector</A><br />", src, src)
|
||||
//if (buffer2) temp_html += text("<A href='?src=\ref[];b2iso=1'>Isolate Block</A><br />", src)
|
||||
if (buffer2) temp_html += "Disk: <A href='?src=\ref[src];save_disk=2'>Save To</a> | <A href='?src=\ref[src];load_disk=2'>Load From</a><br />"
|
||||
if (buffer2) temp_html += text("<A href='?src=\ref[];b2label=1'>Edit Label</A><br />", src)
|
||||
if (buffer2) temp_html += text("<A href='?src=\ref[];b2clear=1'>Clear Buffer</A><br /><br />", src)
|
||||
if (!buffer2) temp_html += "<br />"
|
||||
if(viable_occupant) temp_html += text("Save : <A href='?src=\ref[];b2addui=1'>UI</A> - <A href='?src=\ref[];b2adduiue=1'>UI+UE</A> - <A href='?src=\ref[];b2addse=1'>SE</A><br />", src, src, src)
|
||||
if(buffer2) temp_html += text("Transfer to: <A href='?src=\ref[];b2transfer=1'>Occupant</A> - <A href='?src=\ref[];b2injector=1'>Injector</A><br />", src, src)
|
||||
//if(buffer2) temp_html += text("<A href='?src=\ref[];b2iso=1'>Isolate Block</A><br />", src)
|
||||
if(buffer2) temp_html += "Disk: <A href='?src=\ref[src];save_disk=2'>Save To</a> | <A href='?src=\ref[src];load_disk=2'>Load From</a><br />"
|
||||
if(buffer2) temp_html += text("<A href='?src=\ref[];b2label=1'>Edit Label</A><br />", src)
|
||||
if(buffer2) temp_html += text("<A href='?src=\ref[];b2clear=1'>Clear Buffer</A><br /><br />", src)
|
||||
if(!buffer2) temp_html += "<br />"
|
||||
temp_html += "<h4>Buffer 3:</h4>"
|
||||
if (!(buffer3))
|
||||
if(!(buffer3))
|
||||
temp_html += "<i>Buffer Empty</i><br />"
|
||||
else
|
||||
temp_html += text("Data: <font class='highlight'>[]</FONT><br />", buffer3)
|
||||
temp_html += text("By: <font class='highlight'>[]</FONT><br />", buffer3owner)
|
||||
temp_html += text("Label: <font class='highlight'>[]</FONT><br />", buffer3label)
|
||||
if (viable_occupant) temp_html += text("Save : <A href='?src=\ref[];b3addui=1'>UI</A> - <A href='?src=\ref[];b3adduiue=1'>UI+UE</A> - <A href='?src=\ref[];b3addse=1'>SE</A><br />", src, src, src)
|
||||
if (buffer3) temp_html += text("Transfer to: <A href='?src=\ref[];b3transfer=1'>Occupant</A> - <A href='?src=\ref[];b3injector=1'>Injector</A><br />", src, src)
|
||||
//if (buffer3) temp_html += text("<A href='?src=\ref[];b3iso=1'>Isolate Block</A><br />", src)
|
||||
if (buffer3) temp_html += "Disk: <A href='?src=\ref[src];save_disk=3'>Save To</a> | <A href='?src=\ref[src];load_disk=3'>Load From</a><br />"
|
||||
if (buffer3) temp_html += text("<A href='?src=\ref[];b3label=1'>Edit Label</A><br />", src)
|
||||
if (buffer3) temp_html += text("<A href='?src=\ref[];b3clear=1'>Clear Buffer</A><br /><br />", src)
|
||||
if (!buffer3) temp_html += "<br />"
|
||||
if(viable_occupant) temp_html += text("Save : <A href='?src=\ref[];b3addui=1'>UI</A> - <A href='?src=\ref[];b3adduiue=1'>UI+UE</A> - <A href='?src=\ref[];b3addse=1'>SE</A><br />", src, src, src)
|
||||
if(buffer3) temp_html += text("Transfer to: <A href='?src=\ref[];b3transfer=1'>Occupant</A> - <A href='?src=\ref[];b3injector=1'>Injector</A><br />", src, src)
|
||||
//if(buffer3) temp_html += text("<A href='?src=\ref[];b3iso=1'>Isolate Block</A><br />", src)
|
||||
if(buffer3) temp_html += "Disk: <A href='?src=\ref[src];save_disk=3'>Save To</a> | <A href='?src=\ref[src];load_disk=3'>Load From</a><br />"
|
||||
if(buffer3) temp_html += text("<A href='?src=\ref[];b3label=1'>Edit Label</A><br />", src)
|
||||
if(buffer3) temp_html += text("<A href='?src=\ref[];b3clear=1'>Clear Buffer</A><br /><br />", src)
|
||||
if(!buffer3) temp_html += "<br />"
|
||||
temp_html += temp_footer_html
|
||||
|
||||
if(viable_occupant && !scanner_status_html && occupant) //is there REALLY someone in there?
|
||||
@@ -1219,7 +1219,7 @@
|
||||
var/rejuvenators = round(human_occupant.reagents.get_reagent_amount("inaprovaline") / REJUVENATORS_MAX * 100)
|
||||
scanner_status_html += "<div class='line'><div class='statusLabel'>Rejuvenators:</div><div class='progressBar'><div style='width: [rejuvenators]%;' class='progressFill highlight'></div></div><div class='statusValue'>[human_occupant.reagents.get_reagent_amount("inaprovaline")] units</div></div>"
|
||||
|
||||
if (current_screen == "mainmenu")
|
||||
if(current_screen == "mainmenu")
|
||||
scanner_status_html += "<div class='line'><div class='statusLabel'>Unique Enzymes :</div><div class='statusValue'><span class='highlight'>[uppertext(occupant.dna.unique_enzymes)]</span></div></div>"
|
||||
scanner_status_html += "<div class='line'><div class='statusLabel'>Unique Identifier:</div><div class='statusValue'><span class='highlight'>[occupant.dna.uni_identity]</span></div></div>"
|
||||
scanner_status_html += "<div class='line'><div class='statusLabel'>Structural Enzymes:</div><div class='statusValue'><span class='highlight'>[occupant.dna.struc_enzymes]</span></div></div>"
|
||||
@@ -1228,7 +1228,7 @@
|
||||
|
||||
var/occupant_status = "Scanner Unoccupied"
|
||||
if(occupant && occupant.dna) //is there REALLY someone in there?
|
||||
if (!istype(occupant,/mob/living/carbon/human))
|
||||
if(!istype(occupant,/mob/living/carbon/human))
|
||||
sleep(1)
|
||||
if(NOCLONE in occupant.mutations)
|
||||
occupant_status = "<span class='bad'>Invalid DNA structure</span>"
|
||||
@@ -1246,14 +1246,14 @@
|
||||
dat += "<div class='statusDisplay'>[occupant_status][scanner_status_html]</div>"
|
||||
|
||||
var/scanner_access_text = "Lock Scanner"
|
||||
if (scanner.locked)
|
||||
if(scanner.locked)
|
||||
scanner_access_text = "Unlock Scanner"
|
||||
|
||||
dat += "<A href='?src=\ref[src];'>Scan</A> "
|
||||
|
||||
if (occupant && occupant.dna)
|
||||
if(occupant && occupant.dna)
|
||||
dat += "<A href='?src=\ref[src];locked=1'>[scanner_access_text]</A> "
|
||||
if (human_occupant)
|
||||
if(human_occupant)
|
||||
dat += "<A href='?src=\ref[src];rejuv=1'>Inject Rejuvenators</A><br />"
|
||||
else
|
||||
dat += "<span class='linkOff'>Inject Rejuvenators</span><br />"
|
||||
@@ -1261,12 +1261,12 @@
|
||||
dat += "<span class='linkOff'>[scanner_access_text]</span> "
|
||||
dat += "<span class='linkOff'>Inject Rejuvenators</span><br />"
|
||||
|
||||
if (!isnull(diskette))
|
||||
if(!isnull(diskette))
|
||||
dat += text("<A href='?src=\ref[];eject_disk=1'>Eject Disk</A><br />", src)
|
||||
|
||||
dat += "<br />"
|
||||
|
||||
if (temp_html)
|
||||
if(temp_html)
|
||||
dat += temp_html
|
||||
|
||||
popup.set_content(dat)
|
||||
|
||||
@@ -51,26 +51,26 @@
|
||||
usr.set_machine(src)
|
||||
scan = computer.cardslot.reader
|
||||
|
||||
if (computer.cardslot.dualslot)
|
||||
if(computer.cardslot.dualslot)
|
||||
scan2 = computer.cardslot.writer
|
||||
|
||||
if(!interactable())
|
||||
return
|
||||
|
||||
if (computer.z > 6)
|
||||
if(computer.z > 6)
|
||||
to_chat(usr, "<span class='danger'>Unable to establish a connection</span>: You're too far away from the station!")
|
||||
return
|
||||
var/dat
|
||||
|
||||
if (temp)
|
||||
if(temp)
|
||||
dat = text("<TT>[]</TT><BR><BR><A href='?src=\ref[];choice=Clear Screen'>Clear Screen</A>", temp, src)
|
||||
else
|
||||
dat = text("Confirm Identity (R): <A href='?src=\ref[];choice=Confirm Identity R'>[]</A><HR>", src, (scan ? text("[]", scan.name) : "----------"))
|
||||
if (computer.cardslot.dualslot)
|
||||
if(computer.cardslot.dualslot)
|
||||
dat += text("Check Identity (W): <A href='?src=\ref[];choice=Confirm Identity W'>[]</A><BR>", src, (scan2 ? text("[]", scan2.name) : "----------"))
|
||||
if(scan2 && !scan)
|
||||
dat += text("<div class='notice'>Insert card into reader slot to log in.</div><br>")
|
||||
if (authenticated)
|
||||
if(authenticated)
|
||||
switch(screen)
|
||||
if(1.0)
|
||||
dat += {"
|
||||
@@ -96,7 +96,7 @@
|
||||
for(var/datum/data/record/R in sortRecord(data_core.general, sortBy, order))
|
||||
var/crimstat = ""
|
||||
for(var/datum/data/record/E in data_core.security)
|
||||
if ((E.fields["name"] == R.fields["name"] && E.fields["id"] == R.fields["id"]))
|
||||
if((E.fields["name"] == R.fields["name"] && E.fields["id"] == R.fields["id"]))
|
||||
crimstat = E.fields["criminal"]
|
||||
var/background
|
||||
switch(crimstat)
|
||||
@@ -126,7 +126,7 @@
|
||||
dat += "<BR><A href='?src=\ref[src];choice=Delete All Records'>Delete All Records</A><BR><BR><A href='?src=\ref[src];choice=Return'>Back</A>"
|
||||
if(3.0)
|
||||
dat += "<CENTER><B>Security Record</B></CENTER><BR>"
|
||||
if ((istype(active1, /datum/data/record) && data_core.general.Find(active1)))
|
||||
if((istype(active1, /datum/data/record) && data_core.general.Find(active1)))
|
||||
dat += text("<table><tr><td> \
|
||||
Name: <A href='?src=\ref[src];choice=Edit Field;field=name'>[active1.fields["name"]]</A><BR> \
|
||||
ID: <A href='?src=\ref[src];choice=Edit Field;field=id'>[active1.fields["id"]]</A><BR>\n \
|
||||
@@ -140,7 +140,7 @@
|
||||
<img src=[active1.fields["photo-west"]] height=80 width=80 border=4></td></tr></table>")
|
||||
else
|
||||
dat += "<B>General Record Lost!</B><BR>"
|
||||
if ((istype(active2, /datum/data/record) && data_core.security.Find(active2)))
|
||||
if((istype(active2, /datum/data/record) && data_core.security.Find(active2)))
|
||||
dat += text("<BR>\n<CENTER><B>Security Data</B></CENTER><BR>\nCriminal Status: <A href='?src=\ref[];choice=Edit Field;field=criminal'>[]</A><BR>\n<BR>\nMinor Crimes: <A href='?src=\ref[];choice=Edit Field;field=mi_crim'>[]</A><BR>\nDetails: <A href='?src=\ref[];choice=Edit Field;field=mi_crim_d'>[]</A><BR>\n<BR>\nMajor Crimes: <A href='?src=\ref[];choice=Edit Field;field=ma_crim'>[]</A><BR>\nDetails: <A href='?src=\ref[];choice=Edit Field;field=ma_crim_d'>[]</A><BR>\n<BR>\nImportant Notes:<BR>\n\t<A href='?src=\ref[];choice=Edit Field;field=notes'>[]</A><BR>\n<BR>\n<CENTER><B>Comments/Log</B></CENTER><BR>", src, active2.fields["criminal"], src, active2.fields["mi_crim"], src, active2.fields["mi_crim_d"], src, active2.fields["ma_crim"], src, active2.fields["ma_crim_d"], src, decode(active2.fields["notes"]))
|
||||
var/counter = 1
|
||||
while(active2.fields[text("com_[]", counter)])
|
||||
@@ -215,9 +215,9 @@ What a mess.*/
|
||||
Topic(href, href_list)
|
||||
if(!interactable() || !computer.cardslot || ..(href,href_list))
|
||||
return
|
||||
if (!( data_core.general.Find(active1) ))
|
||||
if(!( data_core.general.Find(active1) ))
|
||||
active1 = null
|
||||
if (!( data_core.security.Find(active2) ))
|
||||
if(!( data_core.security.Find(active2) ))
|
||||
active2 = null
|
||||
switch(href_list["choice"])
|
||||
// SORTING!
|
||||
@@ -236,13 +236,13 @@ What a mess.*/
|
||||
if("Clear Screen")
|
||||
temp = null
|
||||
|
||||
if ("Return")
|
||||
if("Return")
|
||||
screen = 1
|
||||
active1 = null
|
||||
active2 = null
|
||||
|
||||
if("Confirm Identity R")
|
||||
if (scan)
|
||||
if(scan)
|
||||
if(istype(usr,/mob/living/carbon/human) && !usr.get_active_hand())
|
||||
computer.cardslot.remove(1)
|
||||
else
|
||||
@@ -250,12 +250,12 @@ What a mess.*/
|
||||
scan = null
|
||||
else
|
||||
var/obj/item/I = usr.get_active_hand()
|
||||
if (istype(I, /obj/item/weapon/card/id))
|
||||
if(istype(I, /obj/item/weapon/card/id))
|
||||
computer.cardslot.insert(I, 1)
|
||||
scan = I
|
||||
|
||||
if("Confirm Identity W")
|
||||
if (scan2)
|
||||
if(scan2)
|
||||
if(istype(usr,/mob/living/carbon/human) && !usr.get_active_hand())
|
||||
computer.cardslot.remove(2)
|
||||
else
|
||||
@@ -263,7 +263,7 @@ What a mess.*/
|
||||
scan2 = null
|
||||
else
|
||||
var/obj/item/I = usr.get_active_hand()
|
||||
if (istype(I, /obj/item/weapon/card/id))
|
||||
if(istype(I, /obj/item/weapon/card/id))
|
||||
computer.cardslot.insert(I, 2)
|
||||
scan2 = I
|
||||
|
||||
@@ -274,20 +274,20 @@ What a mess.*/
|
||||
active2 = null
|
||||
|
||||
if("Log In")
|
||||
if (istype(usr, /mob/living/silicon/ai))
|
||||
if(istype(usr, /mob/living/silicon/ai))
|
||||
src.active1 = null
|
||||
src.active2 = null
|
||||
src.authenticated = usr.name
|
||||
src.rank = "AI"
|
||||
src.screen = 1
|
||||
else if (istype(usr, /mob/living/silicon/robot))
|
||||
else if(istype(usr, /mob/living/silicon/robot))
|
||||
src.active1 = null
|
||||
src.active2 = null
|
||||
src.authenticated = usr.name
|
||||
var/mob/living/silicon/robot/R = usr
|
||||
src.rank = "[R.modtype] [R.braintype]"
|
||||
src.screen = 1
|
||||
else if (istype(scan, /obj/item/weapon/card/id))
|
||||
else if(istype(scan, /obj/item/weapon/card/id))
|
||||
active1 = null
|
||||
active2 = null
|
||||
if(authenticate())
|
||||
@@ -297,7 +297,7 @@ What a mess.*/
|
||||
//RECORD FUNCTIONS
|
||||
if("Search Records")
|
||||
var/t1 = input("Search String: (Partial Name or ID or Fingerprints or Rank)", "Secure. records", null, null) as text
|
||||
if ((!( t1 ) || usr.stat || !( authenticated ) || usr.restrained() || !interactable()))
|
||||
if((!( t1 ) || usr.stat || !( authenticated ) || usr.restrained() || !interactable()))
|
||||
return
|
||||
Perp = new/list()
|
||||
t1 = lowertext(t1)
|
||||
@@ -314,7 +314,7 @@ What a mess.*/
|
||||
for(var/i = 1, i<=Perp.len, i+=2)
|
||||
for(var/datum/data/record/E in data_core.security)
|
||||
var/datum/data/record/R = Perp[i]
|
||||
if ((E.fields["name"] == R.fields["name"] && E.fields["id"] == R.fields["id"]))
|
||||
if((E.fields["name"] == R.fields["name"] && E.fields["id"] == R.fields["id"]))
|
||||
Perp[i+1] = E
|
||||
tempname = t1
|
||||
screen = 4
|
||||
@@ -324,56 +324,56 @@ What a mess.*/
|
||||
active1 = null
|
||||
active2 = null
|
||||
|
||||
if ("Browse Record")
|
||||
if("Browse Record")
|
||||
var/datum/data/record/R = locate(href_list["d_rec"])
|
||||
var/S = locate(href_list["d_rec"])
|
||||
if (!( data_core.general.Find(R) ))
|
||||
if(!( data_core.general.Find(R) ))
|
||||
temp = "Record Not Found!"
|
||||
else
|
||||
for(var/datum/data/record/E in data_core.security)
|
||||
if ((E.fields["name"] == R.fields["name"] || E.fields["id"] == R.fields["id"]))
|
||||
if((E.fields["name"] == R.fields["name"] || E.fields["id"] == R.fields["id"]))
|
||||
S = E
|
||||
active1 = R
|
||||
active2 = S
|
||||
screen = 3
|
||||
|
||||
/* if ("Search Fingerprints")
|
||||
/* if("Search Fingerprints")
|
||||
var/t1 = input("Search String: (Fingerprint)", "Secure. records", null, null) as text
|
||||
if ((!( t1 ) || usr.stat || !( authenticated ) || usr.restrained() || (!interactable()) && (!istype(usr, /mob/living/silicon))))
|
||||
if((!( t1 ) || usr.stat || !( authenticated ) || usr.restrained() || (!interactable()) && (!istype(usr, /mob/living/silicon))))
|
||||
return
|
||||
active1 = null
|
||||
active2 = null
|
||||
t1 = lowertext(t1)
|
||||
for(var/datum/data/record/R in data_core.general)
|
||||
if (lowertext(R.fields["fingerprint"]) == t1)
|
||||
if(lowertext(R.fields["fingerprint"]) == t1)
|
||||
active1 = R
|
||||
if (!( active1 ))
|
||||
if(!( active1 ))
|
||||
temp = text("Could not locate record [].", t1)
|
||||
else
|
||||
for(var/datum/data/record/E in data_core.security)
|
||||
if ((E.fields["name"] == active1.fields["name"] || E.fields["id"] == active1.fields["id"]))
|
||||
if((E.fields["name"] == active1.fields["name"] || E.fields["id"] == active1.fields["id"]))
|
||||
active2 = E
|
||||
screen = 3 */
|
||||
|
||||
if ("Print Record")
|
||||
if (!( printing ))
|
||||
if("Print Record")
|
||||
if(!( printing ))
|
||||
printing = 1
|
||||
var/datum/data/record/record1 = null
|
||||
var/datum/data/record/record2 = null
|
||||
if ((istype(active1, /datum/data/record) && data_core.general.Find(active1)))
|
||||
if((istype(active1, /datum/data/record) && data_core.general.Find(active1)))
|
||||
record1 = active1
|
||||
if ((istype(active2, /datum/data/record) && data_core.security.Find(active2)))
|
||||
if((istype(active2, /datum/data/record) && data_core.security.Find(active2)))
|
||||
record2 = active2
|
||||
sleep(50)
|
||||
var/obj/item/weapon/paper/P = new /obj/item/weapon/paper( computer.loc )
|
||||
P.info = "<CENTER><B>Security Record</B></CENTER><BR>"
|
||||
if (record1)
|
||||
if(record1)
|
||||
P.info += text("Name: [] ID: []<BR>\nSex: []<BR>\nAge: []<BR>\nFingerprint: []<BR>\nPhysical Status: []<BR>\nMental Status: []<BR>", record1.fields["name"], record1.fields["id"], record1.fields["sex"], record1.fields["age"], record1.fields["fingerprint"], record1.fields["p_stat"], record1.fields["m_stat"])
|
||||
P.name = text("Security Record ([])", record1.fields["name"])
|
||||
else
|
||||
P.info += "<B>General Record Lost!</B><BR>"
|
||||
P.name = "Security Record"
|
||||
if (record2)
|
||||
if(record2)
|
||||
P.info += text("<BR>\n<CENTER><B>Security Data</B></CENTER><BR>\nCriminal Status: []<BR>\n<BR>\nMinor Crimes: []<BR>\nDetails: []<BR>\n<BR>\nMajor Crimes: []<BR>\nDetails: []<BR>\n<BR>\nImportant Notes:<BR>\n\t[]<BR>\n<BR>\n<CENTER><B>Comments/Log</B></CENTER><BR>", record2.fields["criminal"], record2.fields["mi_crim"], record2.fields["mi_crim_d"], record2.fields["ma_crim"], record2.fields["ma_crim_d"], decode(record2.fields["notes"]))
|
||||
var/counter = 1
|
||||
while(record2.fields[text("com_[]", counter)])
|
||||
@@ -385,47 +385,47 @@ What a mess.*/
|
||||
printing = null
|
||||
computer.updateUsrDialog()
|
||||
//RECORD DELETE
|
||||
if ("Delete All Records")
|
||||
if("Delete All Records")
|
||||
temp = ""
|
||||
temp += "Are you sure you wish to delete all Security records?<br>"
|
||||
temp += "<a href='?src=\ref[src];choice=Purge All Records'>Yes</a><br>"
|
||||
temp += "<a href='?src=\ref[src];choice=Clear Screen'>No</a>"
|
||||
|
||||
if ("Purge All Records")
|
||||
if("Purge All Records")
|
||||
for(var/datum/data/record/R in data_core.security)
|
||||
qdel(R)
|
||||
temp = "All Security records deleted."
|
||||
|
||||
if ("Add Entry")
|
||||
if (!( istype(active2, /datum/data/record) ))
|
||||
if("Add Entry")
|
||||
if(!( istype(active2, /datum/data/record) ))
|
||||
return
|
||||
var/a2 = active2
|
||||
var/t1 = sanitize(copytext(input("Add Comment:", "Secure. records", null, null) as message,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active2 != a2))
|
||||
if((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active2 != a2))
|
||||
return
|
||||
var/counter = 1
|
||||
while(active2.fields[text("com_[]", counter)])
|
||||
counter++
|
||||
active2.fields[text("com_[counter]")] = text("Made by [authenticated] ([rank]) on [time2text(world.realtime, "DDD MMM DD hh:mm:ss")], [game_year]<BR>[t1]")
|
||||
|
||||
if ("Delete Record (ALL)")
|
||||
if (active1)
|
||||
if("Delete Record (ALL)")
|
||||
if(active1)
|
||||
temp = "<h5>Are you sure you wish to delete the record (ALL)?</h5>"
|
||||
temp += "<a href='?src=\ref[src];choice=Delete Record (ALL) Execute'>Yes</a><br>"
|
||||
temp += "<a href='?src=\ref[src];choice=Clear Screen'>No</a>"
|
||||
|
||||
if ("Delete Record (Security)")
|
||||
if (active2)
|
||||
if("Delete Record (Security)")
|
||||
if(active2)
|
||||
temp = "<h5>Are you sure you wish to delete the record (Security Portion Only)?</h5>"
|
||||
temp += "<a href='?src=\ref[src];choice=Delete Record (Security) Execute'>Yes</a><br>"
|
||||
temp += "<a href='?src=\ref[src];choice=Clear Screen'>No</a>"
|
||||
|
||||
if ("Delete Entry")
|
||||
if ((istype(active2, /datum/data/record) && active2.fields[text("com_[]", href_list["del_c"])]))
|
||||
if("Delete Entry")
|
||||
if((istype(active2, /datum/data/record) && active2.fields[text("com_[]", href_list["del_c"])]))
|
||||
active2.fields[text("com_[]", href_list["del_c"])] = "<B>Deleted</B>"
|
||||
//RECORD CREATE
|
||||
if ("New Record (Security)")
|
||||
if ((istype(active1, /datum/data/record) && !( istype(active2, /datum/data/record) )))
|
||||
if("New Record (Security)")
|
||||
if((istype(active1, /datum/data/record) && !( istype(active2, /datum/data/record) )))
|
||||
var/datum/data/record/R = new /datum/data/record()
|
||||
R.fields["name"] = active1.fields["name"]
|
||||
R.fields["id"] = active1.fields["id"]
|
||||
@@ -440,7 +440,7 @@ What a mess.*/
|
||||
active2 = R
|
||||
screen = 3
|
||||
|
||||
if ("New Record (General)")
|
||||
if("New Record (General)")
|
||||
var/datum/data/record/G = new /datum/data/record()
|
||||
G.fields["name"] = "New Record"
|
||||
G.fields["id"] = text("[]", add_zero(num2hex(rand(1, 1.6777215E7)), 6))
|
||||
@@ -457,72 +457,72 @@ What a mess.*/
|
||||
active2 = null
|
||||
|
||||
//FIELD FUNCTIONS
|
||||
if ("Edit Field")
|
||||
if("Edit Field")
|
||||
var/a1 = active1
|
||||
var/a2 = active2
|
||||
switch(href_list["field"])
|
||||
if("name")
|
||||
if (istype(active1, /datum/data/record))
|
||||
if(istype(active1, /datum/data/record))
|
||||
var/t1 = input("Please input name:", "Secure. records", active1.fields["name"], null) as text
|
||||
if ((!( t1 ) || !length(trim(t1)) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon)))) || active1 != a1)
|
||||
if((!( t1 ) || !length(trim(t1)) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon)))) || active1 != a1)
|
||||
return
|
||||
active1.fields["name"] = t1
|
||||
if("id")
|
||||
if (istype(active2, /datum/data/record))
|
||||
if(istype(active2, /datum/data/record))
|
||||
var/t1 = sanitize(copytext(input("Please input id:", "Secure. records", active1.fields["id"], null) as text,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active1 != a1))
|
||||
if((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active1 != a1))
|
||||
return
|
||||
active1.fields["id"] = t1
|
||||
if("fingerprint")
|
||||
if (istype(active1, /datum/data/record))
|
||||
if(istype(active1, /datum/data/record))
|
||||
var/t1 = sanitize(copytext(input("Please input fingerprint hash:", "Secure. records", active1.fields["fingerprint"], null) as text,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active1 != a1))
|
||||
if((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active1 != a1))
|
||||
return
|
||||
active1.fields["fingerprint"] = t1
|
||||
if("sex")
|
||||
if (istype(active1, /datum/data/record))
|
||||
if (active1.fields["sex"] == "Male")
|
||||
if(istype(active1, /datum/data/record))
|
||||
if(active1.fields["sex"] == "Male")
|
||||
active1.fields["sex"] = "Female"
|
||||
else
|
||||
active1.fields["sex"] = "Male"
|
||||
if("age")
|
||||
if (istype(active1, /datum/data/record))
|
||||
if(istype(active1, /datum/data/record))
|
||||
var/t1 = input("Please input age:", "Secure. records", active1.fields["age"], null) as num
|
||||
if ((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active1 != a1))
|
||||
if((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active1 != a1))
|
||||
return
|
||||
active1.fields["age"] = t1
|
||||
if("mi_crim")
|
||||
if (istype(active2, /datum/data/record))
|
||||
if(istype(active2, /datum/data/record))
|
||||
var/t1 = sanitize(copytext(input("Please input minor crimes list:", "Secure. records", active2.fields["mi_crim"], null) as text,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active2 != a2))
|
||||
if((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active2 != a2))
|
||||
return
|
||||
active2.fields["mi_crim"] = t1
|
||||
if("mi_crim_d")
|
||||
if (istype(active2, /datum/data/record))
|
||||
if(istype(active2, /datum/data/record))
|
||||
var/t1 = sanitize(copytext(input("Please summarize minor crimes:", "Secure. records", active2.fields["mi_crim_d"], null) as message,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active2 != a2))
|
||||
if((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active2 != a2))
|
||||
return
|
||||
active2.fields["mi_crim_d"] = t1
|
||||
if("ma_crim")
|
||||
if (istype(active2, /datum/data/record))
|
||||
if(istype(active2, /datum/data/record))
|
||||
var/t1 = sanitize(copytext(input("Please input major crimes list:", "Secure. records", active2.fields["ma_crim"], null) as text,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active2 != a2))
|
||||
if((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active2 != a2))
|
||||
return
|
||||
active2.fields["ma_crim"] = t1
|
||||
if("ma_crim_d")
|
||||
if (istype(active2, /datum/data/record))
|
||||
if(istype(active2, /datum/data/record))
|
||||
var/t1 = sanitize(copytext(input("Please summarize major crimes:", "Secure. records", active2.fields["ma_crim_d"], null) as message,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active2 != a2))
|
||||
if((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active2 != a2))
|
||||
return
|
||||
active2.fields["ma_crim_d"] = t1
|
||||
if("notes")
|
||||
if (istype(active2, /datum/data/record))
|
||||
if(istype(active2, /datum/data/record))
|
||||
var/t1 = trim(sanitize(copytext(input("Please summarize minor crimes:", "Secure. records", active2.fields["mi_crim_d"], null) as message,1,MAX_MESSAGE_LEN)))
|
||||
if ((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active2 != a2))
|
||||
if((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active2 != a2))
|
||||
return
|
||||
active2.fields["notes"] = t1
|
||||
if("criminal")
|
||||
if (istype(active2, /datum/data/record))
|
||||
if(istype(active2, /datum/data/record))
|
||||
temp = "<h5>Criminal Status:</h5>"
|
||||
temp += "<ul>"
|
||||
temp += "<li><a href='?src=\ref[src];choice=Change Criminal Status;criminal2=none'>None</a></li>"
|
||||
@@ -534,7 +534,7 @@ What a mess.*/
|
||||
if("rank")
|
||||
var/list/L = list( "Head of Personnel", "Captain", "AI" )
|
||||
//This was so silly before the change. Now it actually works without beating your head against the keyboard. /N
|
||||
if ((istype(active1, /datum/data/record) && L.Find(rank)))
|
||||
if((istype(active1, /datum/data/record) && L.Find(rank)))
|
||||
temp = "<h5>Rank:</h5>"
|
||||
temp += "<ul>"
|
||||
for(var/rank in joblist)
|
||||
@@ -543,9 +543,9 @@ What a mess.*/
|
||||
else
|
||||
alert(usr, "You do not have the required rank to do this!")
|
||||
if("species")
|
||||
if (istype(active1, /datum/data/record))
|
||||
if(istype(active1, /datum/data/record))
|
||||
var/t1 = sanitize(copytext(input("Please enter race:", "General records", active1.fields["species"], null) as message,1,MAX_MESSAGE_LEN))
|
||||
if ((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active1 != a1))
|
||||
if((!( t1 ) || !( authenticated ) || usr.stat || usr.restrained() || (!interactable() && (!istype(usr, /mob/living/silicon))) || active1 != a1))
|
||||
return
|
||||
active1.fields["species"] = t1
|
||||
|
||||
@@ -553,14 +553,14 @@ What a mess.*/
|
||||
else//To properly clear as per clear screen.
|
||||
temp=null
|
||||
switch(href_list["choice"])
|
||||
if ("Change Rank")
|
||||
if (active1)
|
||||
if("Change Rank")
|
||||
if(active1)
|
||||
active1.fields["rank"] = href_list["rank"]
|
||||
if(href_list["rank"] in joblist)
|
||||
active1.fields["real_rank"] = href_list["real_rank"]
|
||||
|
||||
if ("Change Criminal Status")
|
||||
if (active2)
|
||||
if("Change Criminal Status")
|
||||
if(active2)
|
||||
|
||||
switch(href_list["criminal2"])
|
||||
if("none")
|
||||
@@ -576,18 +576,18 @@ What a mess.*/
|
||||
for(var/mob/living/carbon/human/H in mob_list)
|
||||
H.sec_hud_set_security_status()
|
||||
|
||||
if ("Delete Record (Security) Execute")
|
||||
if (active2)
|
||||
if("Delete Record (Security) Execute")
|
||||
if(active2)
|
||||
qdel(active2)
|
||||
|
||||
if ("Delete Record (ALL) Execute")
|
||||
if (active1)
|
||||
if("Delete Record (ALL) Execute")
|
||||
if(active1)
|
||||
for(var/datum/data/record/R in data_core.medical)
|
||||
if ((R.fields["name"] == active1.fields["name"] || R.fields["id"] == active1.fields["id"]))
|
||||
if((R.fields["name"] == active1.fields["name"] || R.fields["id"] == active1.fields["id"]))
|
||||
qdel(R)
|
||||
else
|
||||
qdel(active1)
|
||||
if (active2)
|
||||
if(active2)
|
||||
qdel(active2)
|
||||
else
|
||||
temp = "This function does not appear to be working at the moment. Our apologies."
|
||||
|
||||
@@ -13,12 +13,12 @@
|
||||
|
||||
attackby(var/obj/item/card/W as obj, var/mob/user as mob, params)
|
||||
if(stat & (BROKEN|NOPOWER)) return
|
||||
if ((!( istype(W, /obj/item/card) ) || !( ticker ) || emergency_shuttle.location != 1 || !( user ))) return
|
||||
if (istype(W, /obj/item/card/id)||istype(W, /obj/item/device/pda))
|
||||
if (istype(W, /obj/item/device/pda))
|
||||
if((!( istype(W, /obj/item/card) ) || !( ticker ) || emergency_shuttle.location != 1 || !( user ))) return
|
||||
if(istype(W, /obj/item/card/id)||istype(W, /obj/item/device/pda))
|
||||
if(istype(W, /obj/item/device/pda))
|
||||
var/obj/item/device/pda/pda = W
|
||||
W = pda.id
|
||||
if (!W:access) //no access
|
||||
if(!W:access) //no access
|
||||
to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ")
|
||||
return
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
if("Authorize")
|
||||
src.authorized -= W:registered_name
|
||||
src.authorized += W:registered_name
|
||||
if (src.auth_need - src.authorized.len > 0)
|
||||
if(src.auth_need - src.authorized.len > 0)
|
||||
message_admins("[key_name_admin(user)] has authorized early shuttle launch")
|
||||
log_game("[user.ckey] has authorized early shuttle launch")
|
||||
to_chat(world, text("\blue <B>Alert: [] authorizations needed until shuttle is launched early</B>", src.auth_need - src.authorized.len))
|
||||
@@ -63,7 +63,7 @@
|
||||
return
|
||||
|
||||
emag_act(user as mob)
|
||||
if (!emagged)
|
||||
if(!emagged)
|
||||
var/choice = alert(user, "Would you like to launch the shuttle?","Shuttle control", "Launch", "Cancel")
|
||||
|
||||
if(!emagged && emergency_shuttle.location == 1)
|
||||
|
||||
@@ -55,9 +55,9 @@ var/specops_shuttle_timeleft = 0
|
||||
specops_shuttle_moving_to_centcom = 0
|
||||
|
||||
specops_shuttle_at_station = 1
|
||||
if (specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return
|
||||
if(specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return
|
||||
|
||||
if (!specops_can_move())
|
||||
if(!specops_can_move())
|
||||
to_chat(usr, "\red The Special Operations shuttle is unable to leave.")
|
||||
return
|
||||
|
||||
@@ -179,7 +179,7 @@ var/specops_shuttle_timeleft = 0
|
||||
to_chat(user, "\red Access Denied.")
|
||||
return
|
||||
|
||||
if (sent_strike_team == 0)
|
||||
if(sent_strike_team == 0)
|
||||
to_chat(usr, "\red The strike team has not yet deployed.")
|
||||
return
|
||||
|
||||
@@ -188,7 +188,7 @@ var/specops_shuttle_timeleft = 0
|
||||
|
||||
user.set_machine(src)
|
||||
var/dat
|
||||
if (temp)
|
||||
if(temp)
|
||||
dat = temp
|
||||
else
|
||||
dat += {"
|
||||
@@ -208,19 +208,19 @@ var/specops_shuttle_timeleft = 0
|
||||
if(..())
|
||||
return
|
||||
|
||||
if ((usr.contents.Find(src) || (in_range(src, usr) && istype(loc, /turf))) || (istype(usr, /mob/living/silicon)))
|
||||
if((usr.contents.Find(src) || (in_range(src, usr) && istype(loc, /turf))) || (istype(usr, /mob/living/silicon)))
|
||||
usr.set_machine(src)
|
||||
|
||||
if (href_list["sendtodock"])
|
||||
if(href_list["sendtodock"])
|
||||
if(!specops_shuttle_at_station|| specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return
|
||||
|
||||
to_chat(usr, "\blue Central Command will not allow the Special Operations shuttle to return.")
|
||||
return
|
||||
|
||||
else if (href_list["sendtostation"])
|
||||
else if(href_list["sendtostation"])
|
||||
if(specops_shuttle_at_station || specops_shuttle_moving_to_station || specops_shuttle_moving_to_centcom) return
|
||||
|
||||
if (!specops_can_move())
|
||||
if(!specops_can_move())
|
||||
to_chat(usr, "\red The Special Operations shuttle is unable to leave.")
|
||||
return
|
||||
|
||||
@@ -238,7 +238,7 @@ var/specops_shuttle_timeleft = 0
|
||||
spawn(0)
|
||||
specops_process()
|
||||
|
||||
else if (href_list["mainmenu"])
|
||||
else if(href_list["mainmenu"])
|
||||
temp = null
|
||||
|
||||
add_fingerprint(usr)
|
||||
|
||||
@@ -16,18 +16,18 @@
|
||||
return
|
||||
var/dat = "<HEAD><TITLE>Current Station Alerts</TITLE><META HTTP-EQUIV='Refresh' CONTENT='10'></HEAD><BODY>\n"
|
||||
dat += "<A HREF='?src=\ref[user];mach_close=alerts'>Close</A><br><br>"
|
||||
for (var/cat in src.alarms)
|
||||
for(var/cat in src.alarms)
|
||||
dat += text("<B>[]</B><BR>\n", cat)
|
||||
var/list/L = src.alarms[cat]
|
||||
if (L.len)
|
||||
for (var/alarm in L)
|
||||
if(L.len)
|
||||
for(var/alarm in L)
|
||||
var/list/alm = L[alarm]
|
||||
var/area/A = alm[1]
|
||||
var/list/sources = alm[3]
|
||||
dat += "<NOBR>"
|
||||
dat += "• "
|
||||
dat += "[A.name]"
|
||||
if (sources.len > 1)
|
||||
if(sources.len > 1)
|
||||
dat += text(" - [] sources", sources.len)
|
||||
dat += "</NOBR><BR>\n"
|
||||
else
|
||||
@@ -49,20 +49,20 @@
|
||||
|
||||
proc/triggerAlarm(var/class, area/A, var/O, var/alarmsource)
|
||||
var/list/L = src.alarms[class]
|
||||
for (var/I in L)
|
||||
if (I == A.name)
|
||||
for(var/I in L)
|
||||
if(I == A.name)
|
||||
var/list/alarm = L[I]
|
||||
var/list/sources = alarm[3]
|
||||
if (!(alarmsource in sources))
|
||||
if(!(alarmsource in sources))
|
||||
sources += alarmsource
|
||||
return 1
|
||||
var/obj/machinery/camera/C = null
|
||||
var/list/CL = null
|
||||
if (O && istype(O, /list))
|
||||
if(O && istype(O, /list))
|
||||
CL = O
|
||||
if (CL.len == 1)
|
||||
if(CL.len == 1)
|
||||
C = CL[1]
|
||||
else if (O && istype(O, /obj/machinery/camera))
|
||||
else if(O && istype(O, /obj/machinery/camera))
|
||||
C = O
|
||||
L[A.name] = list(A, (C) ? C : O, list(alarmsource))
|
||||
return 1
|
||||
@@ -71,13 +71,13 @@
|
||||
proc/cancelAlarm(var/class, area/A as area, obj/origin)
|
||||
var/list/L = src.alarms[class]
|
||||
var/cleared = 0
|
||||
for (var/I in L)
|
||||
if (I == A.name)
|
||||
for(var/I in L)
|
||||
if(I == A.name)
|
||||
var/list/alarm = L[I]
|
||||
var/list/srcs = alarm[3]
|
||||
if (origin in srcs)
|
||||
if(origin in srcs)
|
||||
srcs -= origin
|
||||
if (srcs.len == 0)
|
||||
if(srcs.len == 0)
|
||||
cleared = 1
|
||||
L -= I
|
||||
return !cleared
|
||||
@@ -86,7 +86,7 @@
|
||||
|
||||
process()
|
||||
var/active_alarms = 0
|
||||
for (var/cat in src.alarms)
|
||||
for(var/cat in src.alarms)
|
||||
var/list/L = src.alarms[cat]
|
||||
if(L.len) active_alarms = 1
|
||||
if(active_alarms)
|
||||
|
||||
@@ -55,9 +55,9 @@ var/syndicate_elite_shuttle_timeleft = 0
|
||||
syndicate_elite_shuttle_moving_to_mothership = 0
|
||||
|
||||
syndicate_elite_shuttle_at_station = 1
|
||||
if (syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return
|
||||
if(syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return
|
||||
|
||||
if (!syndicate_elite_can_move())
|
||||
if(!syndicate_elite_can_move())
|
||||
to_chat(usr, "\red The Syndicate Elite shuttle is unable to leave.")
|
||||
return
|
||||
|
||||
@@ -192,7 +192,7 @@ var/syndicate_elite_shuttle_timeleft = 0
|
||||
to_chat(user, "\red Access Denied.")
|
||||
return
|
||||
|
||||
// if (sent_syndicate_strike_team == 0)
|
||||
// if(sent_syndicate_strike_team == 0)
|
||||
// to_chat(usr, "\red The strike team has not yet deployed.")
|
||||
// return
|
||||
|
||||
@@ -201,7 +201,7 @@ var/syndicate_elite_shuttle_timeleft = 0
|
||||
|
||||
user.set_machine(src)
|
||||
var/dat
|
||||
if (temp)
|
||||
if(temp)
|
||||
dat = temp
|
||||
else
|
||||
dat = {"<b>Location:</b> [syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership ? "Departing for [station_name] in ([syndicate_elite_shuttle_timeleft] seconds.)":syndicate_elite_shuttle_at_station ? "Station":"Dock"]<BR>
|
||||
@@ -220,19 +220,19 @@ var/syndicate_elite_shuttle_timeleft = 0
|
||||
if(..())
|
||||
return
|
||||
|
||||
if ((usr.contents.Find(src) || (in_range(src, usr) && istype(loc, /turf))) || (istype(usr, /mob/living/silicon)))
|
||||
if((usr.contents.Find(src) || (in_range(src, usr) && istype(loc, /turf))) || (istype(usr, /mob/living/silicon)))
|
||||
usr.set_machine(src)
|
||||
|
||||
if (href_list["sendtodock"])
|
||||
if(href_list["sendtodock"])
|
||||
if(!syndicate_elite_shuttle_at_station|| syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return
|
||||
|
||||
to_chat(usr, "\blue The Syndicate will not allow the Elite Squad shuttle to return.")
|
||||
return
|
||||
|
||||
else if (href_list["sendtostation"])
|
||||
else if(href_list["sendtostation"])
|
||||
if(syndicate_elite_shuttle_at_station || syndicate_elite_shuttle_moving_to_station || syndicate_elite_shuttle_moving_to_mothership) return
|
||||
|
||||
if (!specops_can_move())
|
||||
if(!specops_can_move())
|
||||
to_chat(usr, "\red The Syndicate Elite shuttle is unable to leave.")
|
||||
return
|
||||
|
||||
@@ -251,7 +251,7 @@ var/syndicate_elite_shuttle_timeleft = 0
|
||||
syndicate_elite_process()
|
||||
|
||||
|
||||
else if (href_list["mainmenu"])
|
||||
else if(href_list["mainmenu"])
|
||||
temp = null
|
||||
|
||||
add_fingerprint(usr)
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
|
||||
/obj/machinery/lapvend/blob_act()
|
||||
if (prob(50))
|
||||
if(prob(50))
|
||||
spawn(0)
|
||||
qdel(src)
|
||||
return
|
||||
@@ -82,7 +82,7 @@
|
||||
dat += "<b>Total: [total()]</b><br>"
|
||||
if(cardreader == 1)
|
||||
dat += "<A href='?src=\ref[src];choice=single_rem'>Card Reader: (single) (50)</a><br>"
|
||||
else if (cardreader == 2)
|
||||
else if(cardreader == 2)
|
||||
dat += "<A href='?src=\ref[src];choice=dual_rem'>Card Reader: (double) (125)</a><br>"
|
||||
else
|
||||
dat += "Card Reader: None<br>"
|
||||
@@ -106,9 +106,9 @@
|
||||
dat += "<A href='?src=\ref[src];choice=cable_rem'>Network card: Powernet (25)</a><br>"
|
||||
else
|
||||
dat += "Network card: None<br>"
|
||||
if (power == 0)
|
||||
if(power == 0)
|
||||
dat += "Power source: Regular<br>"
|
||||
else if (power == 1)
|
||||
else if(power == 1)
|
||||
dat += "<A href='?src=\ref[src];choice=high_rem'>Power source: Extended (175)</a><br>"
|
||||
else
|
||||
dat += "<A href='?src=\ref[src];choice=super_rem'>Power source: Unreal (250)</a><br>"
|
||||
@@ -133,41 +133,41 @@
|
||||
|
||||
|
||||
/obj/machinery/lapvend/Topic(href, href_list)
|
||||
if ((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf))))
|
||||
if((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf))))
|
||||
usr.set_machine(src)
|
||||
switch(href_list["choice"])
|
||||
if("single_add")
|
||||
cardreader = 1
|
||||
if ("dual_add")
|
||||
if("dual_add")
|
||||
cardreader = 2
|
||||
if ("floppy_add")
|
||||
if("floppy_add")
|
||||
floppy = 1
|
||||
if ("radio_add")
|
||||
if("radio_add")
|
||||
radionet = 1
|
||||
if ("camnet_add")
|
||||
if("camnet_add")
|
||||
camera = 1
|
||||
if ("area_add")
|
||||
if("area_add")
|
||||
network = 1
|
||||
if ("prox_add")
|
||||
if("prox_add")
|
||||
network = 2
|
||||
if ("cable_add")
|
||||
if("cable_add")
|
||||
network = 3
|
||||
if ("high_add")
|
||||
if("high_add")
|
||||
power = 1
|
||||
if ("super_add")
|
||||
if("super_add")
|
||||
power = 2
|
||||
|
||||
if ("single_rem" || "dual_rem")
|
||||
if("single_rem" || "dual_rem")
|
||||
cardreader = 0
|
||||
if ("floppy_rem")
|
||||
if("floppy_rem")
|
||||
floppy = 0
|
||||
if ("radio_rem")
|
||||
if("radio_rem")
|
||||
radionet = 0
|
||||
if ("camnet_rem")
|
||||
if("camnet_rem")
|
||||
camera = 0
|
||||
if ("area_rem" || "prox_rem" || "cable_rem")
|
||||
if("area_rem" || "prox_rem" || "cable_rem")
|
||||
network = 0
|
||||
if ("high_rem" || "super_rem")
|
||||
if("high_rem" || "super_rem")
|
||||
power = 0
|
||||
|
||||
if("vend")
|
||||
@@ -194,23 +194,23 @@
|
||||
newlap.spawn_parts += (/obj/item/part/computer/networking/radio)
|
||||
if(camera == 1)
|
||||
newlap.spawn_parts += (/obj/item/part/computer/networking/cameras)
|
||||
if (network == 1)
|
||||
if(network == 1)
|
||||
newlap.spawn_parts += (/obj/item/part/computer/networking/area)
|
||||
if (network == 2)
|
||||
if(network == 2)
|
||||
newlap.spawn_parts += (/obj/item/part/computer/networking/prox)
|
||||
if (network == 3)
|
||||
if(network == 3)
|
||||
newlap.spawn_parts += (/obj/item/part/computer/networking/cable)
|
||||
if (power == 1)
|
||||
if(power == 1)
|
||||
qdel(newlap.battery)
|
||||
newlap.battery = new /obj/item/weapon/stock_parts/cell/high(newlap)
|
||||
if (power == 2)
|
||||
if(power == 2)
|
||||
qdel(newlap.battery)
|
||||
newlap.battery = new /obj/item/weapon/stock_parts/cell/super(newlap)
|
||||
|
||||
newlap.spawn_parts()
|
||||
|
||||
/obj/machinery/lapvend/proc/scan_card(var/obj/item/weapon/card/I)
|
||||
if (istype(I, /obj/item/weapon/card/id))
|
||||
if(istype(I, /obj/item/weapon/card/id))
|
||||
var/obj/item/weapon/card/id/C = I
|
||||
visible_message("<span class='info'>[usr] swipes a card through [src].</span>")
|
||||
if(vendor_account)
|
||||
@@ -312,7 +312,7 @@
|
||||
newlap.spawn_files += (/datum/file/program/communications)
|
||||
if((access_medical in C.access) || (access_forensics_lockers in C.access)) //Gives detective the medical records program, but not the crew monitoring one.
|
||||
newlap.spawn_files += (/datum/file/program/med_data)
|
||||
if (access_medical in C.access)
|
||||
if(access_medical in C.access)
|
||||
newlap.spawn_files += (/datum/file/program/crew)
|
||||
if(access_engine in C.access)
|
||||
newlap.spawn_files += (/datum/file/program/powermon)
|
||||
@@ -359,7 +359,7 @@
|
||||
|
||||
|
||||
/obj/machinery/lapvend/proc/reimburse(var/obj/item/weapon/card/I)
|
||||
if (istype(I, /obj/item/weapon/card/id))
|
||||
if(istype(I, /obj/item/weapon/card/id))
|
||||
var/obj/item/weapon/card/id/C = I
|
||||
visible_message("<span class='info'>[usr] swipes a card through [src].</span>")
|
||||
if(vendor_account)
|
||||
|
||||
Reference in New Issue
Block a user