From 39c22b7aa34c3b09284d16a1cc8515a9e89cd479 Mon Sep 17 00:00:00 2001 From: "petethegoat@gmail.com" Date: Sun, 17 Feb 2013 21:12:16 +0000 Subject: [PATCH] Updated hub.dm to be slightly more descriptive. Fixes bedsheet bins not updating their icon. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5726 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/objects/structures/bedsheet_bin.dm | 10 ++++++---- code/hub.dm | 9 ++++++--- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/code/game/objects/structures/bedsheet_bin.dm b/code/game/objects/structures/bedsheet_bin.dm index 2288be5fa3b..f42261cdbf6 100644 --- a/code/game/objects/structures/bedsheet_bin.dm +++ b/code/game/objects/structures/bedsheet_bin.dm @@ -105,7 +105,7 @@ LINEN BINS icon = 'icons/obj/structures.dmi' icon_state = "linenbin-full" anchored = 1 - var/amount = 20 + var/amount = 10 var/list/sheets = list() var/obj/item/hidden = null @@ -123,9 +123,9 @@ LINEN BINS /obj/structure/bedsheetbin/update_icon() switch(amount) - if(0) icon_state = "linenbin-empty" - if(1 to amount / 2) icon_state = "linenbin-half" - else icon_state = "linenbin-full" + if(0) icon_state = "linenbin-empty" + if(1 to 5) icon_state = "linenbin-half" + else icon_state = "linenbin-full" /obj/structure/bedsheetbin/attackby(obj/item/I as obj, mob/user as mob) @@ -135,6 +135,7 @@ LINEN BINS sheets.Add(I) amount++ user << "You put [I] in [src]." + update_icon() else if(amount && !hidden && I.w_class < 4) //make sure there's sheets to hide it among, make sure nothing else is hidden in there. user.drop_item() I.loc = src @@ -162,6 +163,7 @@ LINEN BINS B.loc = user.loc user.put_in_hands(B) user << "You take [B] out of [src]." + update_icon() if(hidden) hidden.loc = user.loc diff --git a/code/hub.dm b/code/hub.dm index 03e026f39b7..69b90bd6782 100644 --- a/code/hub.dm +++ b/code/hub.dm @@ -3,11 +3,14 @@ hub = "Exadv1.spacestation13" hub_password = "SORRYNOPASSWORD" name = "/tg/ Station 13" -/* This is for any host that would like their server to appear on the main SS13 hub. -To use it, simply replace the password above, with the password found below, and it should work. -If not, let us know on the main tgstation IRC channel of irc.rizon.net #tgstation13 we can help you there. + +/* +This is for any host that would like their server to appear on the main SS13 hub. +To use it, simply replace the password above with the password found below, and recompile, and it should work. +If not, let us know on the main tgstation IRC channel of irc.rizon.net #tgstation13: we can help you there. hub = "Exadv1.spacestation13" hub_password = "kMZy3U5jJHSiBQjr" name = "Space Station 13" + */ \ No newline at end of file