renamed a bunch of files to be a little more visible, added the beginnings of the new artifact scanners

Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
Cael_Aislinn
2013-03-06 20:50:17 +10:00
parent 0481c1eb3f
commit dc794f5dac
11 changed files with 55 additions and 19 deletions

View File

@@ -12,16 +12,9 @@
var/temperature = 273 //measured in kelvin, if this exceeds 1200, the machine is damaged and requires repairs
//if this exceeds 600 and safety is enabled it will shutdown
//temp greater than 600 also requires a safety prompt to initiate scanning
var/scanner_dir = 0
var/obj/machinery/anomaly/scanner/owned_scanner = null
/obj/machinery/anomaly/New()
..()
//connect to a nearby scanner pad
if(scanner_dir)
owned_scanner = locate(/obj/machinery/anomaly/scanner) in get_step(src, scanner_dir)
if(!owned_scanner)
owned_scanner = locate(/obj/machinery/anomaly/scanner) in orange(1)
//for analysis debugging
var/obj/item/weapon/reagent_containers/glass/solution_tray/S = new(src.loc)

View File

@@ -0,0 +1,44 @@
//cael - some changes here. the analysis pad is entirely new
/obj/machinery/anomaly/artifact_analyser
name = "Artifact Analyser"
desc = "Studies the structure of artifacts to discover their uses."
icon = 'virology.dmi'
icon_state = "analyser"
anchored = 1
density = 1
var/scan_progress = 0
var/scan_num = 0
var/cur_scanning_atom
var/obj/machinery/scanner/owned_scanner = null
/obj/machinery/anomaly/artifact_analyser/New()
..()
//connect to a nearby scanner pad
owned_scanner = locate(/obj/machinery/anomaly/scanner) in get_step(src, dir)
if(!owned_scanner)
owned_scanner = locate(/obj/machinery/anomaly/scanner) in orange(1, src)
/obj/machinery/anomaly/artifact_analyser/attack_hand(var/mob/user as mob)
if(stat & (NOPOWER|BROKEN))
return
user.machine = src
var/dat = "<B>Anomalous material analyser</B><BR>"
dat += "<HR>"
if(!owned_pad)
owned_pad = locate() in orange(1, src)
if(!owned_pad)
dat += "<b><font color=red>Unable to locate analysis pad.</font></b><br>"
else if(scan_progress)
dat += "<b>Please wait. Analysis in progress.</b><br>"
else
dat += "Place an item to be scanned on the pad to begin."
dat += "<hr>"
dat += "<a href='?src=\ref[src]'>Refresh</a> <a href='?src=\ref[src];close=1'>Close</a>"
user << browse(dat, "window=artanalyser;size=450x500")
onclose(user, "artanalyser")

View File

@@ -29,7 +29,7 @@
var/list/alltriggers = list("Contact with Living Organism","Heavy Impact","Contact with Energy Source","Contact with Hydrogen","Contact with Corrosive Substance","Contact with Volatile Substance","Contact with Toxins","Exposure to Heat")
var/list/alleffects = list("Healing Device","Anti-biological Weapon","Non-lethal Stunning Trap","Mechanoid Repair Module","Mechanoid Deconstruction Device","Power Generator","Power Drain","Stellar Mineral Attractor","Agriculture Regulator","Shield Generator","Space-Time Displacer")
var/list/allranges = list("Constant Short-Range Energy Field","Medium Range Energy Pulses","Long Range Energy Pulses","Extreme Range Energy Pulses","Requires contact with subject")
/*
/obj/machinery/artifact_analyser/New()
..()
origin_bonuses = new/list()
@@ -316,4 +316,3 @@
analyser.owned_pad = src
world << "pad set analyser to self"
break*/
*/

View File

@@ -1,5 +1,5 @@
/obj/machinery/anomaly/scanner
/obj/machinery/scanner
name = "scanner pad"
desc = "Place larger objects here for scanning."
icon = 'stationobjs.dmi'