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

View File

@@ -244,7 +244,7 @@
return return
//What the fuck is this code //What the fuck is this code Looks to be the parrying code. If you're grabbing someone, it might hit them instead... or something.--SkyMarshal
/mob/attackby(obj/item/weapon/W as obj, mob/user as mob) /mob/attackby(obj/item/weapon/W as obj, mob/user as mob)
if (user.intent != "harm") if (user.intent != "harm")
if (istype(src.l_hand,/obj/item/latexballon) && src.l_hand:air_contents && is_sharp(W)) if (istype(src.l_hand,/obj/item/latexballon) && src.l_hand:air_contents && is_sharp(W))

View File

@@ -194,7 +194,7 @@
user.update_clothing() user.update_clothing()
return return
/obj/item/attackby(obj/item/weapon/W as obj, mob/user as mob) /obj/item/attackby(obj/item/W as obj, mob/user as mob)
if (istype(W, /obj/item/weapon/packageWrap)) if (istype(W, /obj/item/weapon/packageWrap))
if(istype(src,/obj/item/weapon/storage) && istype(src.loc, /mob)) //Put it into the bag if(istype(src,/obj/item/weapon/storage) && istype(src.loc, /mob)) //Put it into the bag
return return
@@ -212,6 +212,20 @@
src.loc = P src.loc = P
O.amount -= 1 O.amount -= 1
else if(istype(W,/obj/item/wardrobe))
var/obj/item/wardrobe/I = W
for (var/obj/O in locate(src.x,src.y,src.z))
if (I.contents.len < 20)
if(istype(O,/obj/item/wardrobe))
continue
if(O.anchored)
continue
I.contents += O;
else
user << "\blue The wardrobe is full."
return
user << "\blue You pick up all the items."
I.update_icon()
/obj/item/attack_self(mob/user as mob) /obj/item/attack_self(mob/user as mob)
..() ..()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 49 KiB