mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
TG: -Renamed RIG suits to hardsuits
-Slight remapping of atmos refilling station -Fixed Atmos Distro Loop Monitoring computer (about time!) -Restored security newscaster in Warden's office due to demand Revision: r3689 Author: ericgfw...@hotmail.com
This commit is contained in:
@@ -5,10 +5,11 @@
|
||||
icon_state = "filing_cabinet0"
|
||||
density = 1
|
||||
anchored = 1
|
||||
var/list/items = new/list()
|
||||
|
||||
/obj/structure/filingcabinet/attackby(obj/item/P as obj, mob/user as mob)
|
||||
if(istype(P, /obj/item/weapon/paper) || istype(P, /obj/item/weapon/folder))
|
||||
user << "You put the [P] in the [src]."
|
||||
user << "You put the [P] in the [name]."
|
||||
user.drop_item()
|
||||
P.loc = src
|
||||
spawn()
|
||||
@@ -23,15 +24,34 @@
|
||||
user << "You can't put a [P] in the [src]!"
|
||||
|
||||
/obj/structure/filingcabinet/attack_hand(mob/user as mob)
|
||||
if(src.contents.len <= 0)
|
||||
if(contents.len <= 0)
|
||||
user << "The [src] is empty."
|
||||
return
|
||||
icon_state = "filing_cabinet1" //make it look open for kicks
|
||||
var/obj/item/P = input(user,"Choose a file or folder to take out.","[src]", "Cancel") as null|obj in contents
|
||||
if(!isnull(P) && in_range(src,user))
|
||||
if(!user.get_active_hand())
|
||||
user.put_in_hand(P)
|
||||
else
|
||||
P.loc = get_turf_loc(src)
|
||||
icon_state = "filing_cabinet0"
|
||||
return
|
||||
|
||||
var/dat = "<center><table>"
|
||||
var/i
|
||||
for(i=contents.len, i>=1, i--)
|
||||
var/obj/item/P = contents[i]
|
||||
dat += "<tr><td><a href='?src=\ref[src];retrieve=\ref[P]'>[P.name]</a></td></tr>"
|
||||
dat += "</table></center>"
|
||||
user << browse("<html><head><title>[name]</title></head><body>[dat]</body></html>", "window=filingcabinet;size=250x300")
|
||||
|
||||
return
|
||||
|
||||
/obj/structure/filingcabinet/Topic(href, href_list)
|
||||
if(href_list["retrieve"])
|
||||
usr << browse("", "window=filingcabinet") // Close the menu
|
||||
|
||||
//var/retrieveindex = text2num(href_list["retrieve"])
|
||||
var/obj/item/P = locate(href_list["retrieve"])//contents[retrieveindex]
|
||||
if(!isnull(P) && in_range(src,usr))
|
||||
if(!usr.get_active_hand())
|
||||
usr.put_in_hand(P)
|
||||
else
|
||||
P.loc = get_turf_loc(src)
|
||||
|
||||
icon_state = "filing_cabinet1"
|
||||
sleep(5)
|
||||
icon_state = "filing_cabinet0"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user