Bugfixes for some of the previous commit. Added new icons that are less derpy.

This commit is contained in:
SkyMarshal
2012-01-26 23:18:57 -07:00
parent cd5e2476bd
commit e8de0a1dca
4 changed files with 31 additions and 4 deletions

View File

@@ -14,6 +14,7 @@
user.visible_message("\blue [user] unwraps the clothing from the [src]")
for(var/obj/item/I in src)
I.loc = get_turf(src)
update_icon()
return
attackby(var/obj/item/I as obj, var/mob/user as mob)
@@ -22,7 +23,7 @@
if(contents.len < 20)
if(istype(I, /obj/item/weapon/grab))
return
usr.drop_item()
user.drop_item()
if(I)
I.loc = src.loc
else
@@ -30,11 +31,23 @@
return
examine()
set src in oview(4)
set src in usr
..()
usr << "It claims to contain [contents.len ? descriptor : descriptor + "...but it looks empty"]"
return
update_icon()
if(contents.len)
icon_state = "wardrobe"
else
icon_state = "wardrobe_empty"
return
New()
..()
pixel_x = random(0,4) -2
pixel_y = random(0,4) -2
/obj/item/wardrobe/assistant
name = "assistant wardrobe"
descriptor = "clothing for an assistant"