Fixed a bug with the wardrobe, changed a lot of strings and added a seal for the wardrobe, allowing people to check whether a wardrobe has been opened before or not.

This commit is contained in:
Melvin Melonstorm
2012-02-08 19:15:10 +01:00
parent 96df31b9cd
commit f8f3f290c5
3 changed files with 53 additions and 38 deletions
Regular → Executable
+9 -4
View File
@@ -219,6 +219,7 @@
O.amount -= 1
else if(istype(W,/obj/item/wardrobe))
var/obj/item/wardrobe/I = W
var/could_fill = 1
for (var/obj/O in locate(src.x,src.y,src.z))
if (I.contents.len < 20)
if(istype(O,/obj/item/wardrobe))
@@ -227,10 +228,14 @@
continue
I.contents += O;
else
user << "\blue The wardrobe is full."
return
user << "\blue You pick up all the items."
user.visible_message("\blue [user] gathers up the pile of stuff, and puts it into \the [W]")
could_fill = 0
break
if(could_fill)
user << "\blue You pick up all the items."
else
user << "\blue You try to pick up all of the items, but run out of space in the bag."
user.visible_message("\blue [user] gathers up[could_fill ? " " : " most of "]the pile of items and puts it into the [W].")
I.update_icon()
/obj/item/attack_self(mob/user as mob)