Bookcases and filing cabinets can now be prestocked from the map, by placing books and papers on top of them. Updated the example away mission- it's now a complete mission, and should demonstrate everything that's necessary in an away mission. It has a few power issues, but hopefully someone can fix those for me~

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4666 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
petethegoat@gmail.com
2012-09-09 15:28:05 +00:00
parent 76982301be
commit d7c1fec43b
3 changed files with 194 additions and 171 deletions

View File

@@ -19,6 +19,12 @@
density = 1
opacity = 1
/obj/structure/bookcase/initialize()
for(var/obj/item/I in loc)
if(istype(I, /obj/item/weapon/book))
I.loc = src
update_icon()
/obj/structure/bookcase/attackby(obj/O as obj, mob/user as mob)
if(istype(O, /obj/item/weapon/book))
user.drop_item()

View File

@@ -7,7 +7,6 @@
var/icon_open = "filing_cabinet1"
density = 1
anchored = 1
var/list/items = new/list()
/obj/structure/filingcabinet/chestdrawer
name = "chest drawer"
@@ -20,9 +19,14 @@
icon_closed = "filingcabinet"
icon_open = "filingcabinet-open"
/obj/structure/filingcabinet/initialize()
for(var/obj/item/I in loc)
if(istype(I, /obj/item/weapon/paper) || istype(I, /obj/item/weapon/folder))
I.loc = src
/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 << "<span class='notice'>You put the [P] in \the [src].</span>"
user << "<span class='notice'>You put [P] in [src].</span>"
user.drop_item()
P.loc = src
spawn()
@@ -34,7 +38,7 @@
anchored = !anchored
user << "<span class='notice'>You [anchored ? "wrench" : "unwrench"] \the [src].</span>"
else
user << "<span class='notice'>You can't put a [P] in \the [src]!</span>"
user << "<span class='notice'>You can't put [P] in [src]!</span>"
/obj/structure/filingcabinet/attack_hand(mob/user as mob)
if(contents.len <= 0)