{"action":"created","comment":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/41867437","id":41867437,"diff_hunk":"@@ -0,0 +1,87 @@\n+// -----------------------------\n+//        Laundry Basket\n+// -----------------------------\n+// An item designed for hauling the belongings of a character.\n+// So this cannot be abused for other uses, we make it two-handed and inable to have its storage looked into.\n+/obj/item/weapon/storage/laundry_basket\n+\tname = \"laundry basket\"\n+\ticon = 'icons/obj/janitor.dmi'\n+\ticon_state = \"laundry-empty\"\n+\titem_state = \"laundry\"\n+\tdesc = \"The peak of thousands of years of laundry evolution.\"\n+\n+\tw_class = 5\n+\tmax_w_class = 4\n+\tmax_storage_space = 25 //20 for clothes + a bit of additional space for non-clothing items that were worn on body\n+\tstorage_slots = 14\n+\tuse_to_pickup = 1\n+\tallow_quick_empty = 1\n+\tallow_quick_gather = 1\n+\tcollection_mode = 1\n+\tvar/linked\n+\n+\n+/obj/item/weapon/storage/laundry_basket/attack_hand(mob/user as mob)\n+\tif(ishuman(user))\n+\t\tvar/mob/living/carbon/human/H = user\n+\t\tvar/obj/item/organ/external/temp = H.get_organ(\"r_hand\")\n+\t\tif (user.hand)\n+\t\t\ttemp = H.get_organ(\"l_hand\")\n+\t\tif(!temp)\n+\t\t\tuser << \"<span class='warning'>You need two hands to pick this up!</span>\"\n+\t\t\treturn\n+\n+\tif(user.get_inactive_hand())\n+\t\tuser << \"<span class='warning'>You need your other hand to be empty</span>\"\n+\t\treturn\n+\treturn ..()\n+\n+/obj/item/weapon/storage/laundry_basket/attack_self(mob/user as mob)\n+\tvar/turf/T = get_turf(user)\n+\tuser << \"<span class='notice'>You dump the [src]'s contents onto \\the [T].</span>\"\n+\treturn ..()\n+\n+/obj/item/weapon/storage/laundry_basket/pickup(mob/user)\n+\tvar/obj/item/weapon/storage/laundry_basket/offhand/O = new(user)\n+\tO.name = \"[name] - second hand\"\n+\tO.desc = \"Your second grip on the [name].\"\n+\tO.linked = src\n+\tuser.put_in_inactive_hand(O)\n+\tlinked = O\n+\treturn\n+\n+/obj/item/weapon/storage/laundry_basket/update_icon()\n+\tif(contents.len)\n+\t\ticon_state = \"laundry-full\"\n+\telse\n+\t\ticon_state = \"laundry-empty\"\n+\treturn\n+\n+\n+/obj/item/weapon/storage/laundry_basket/MouseDrop(obj/over_object as obj)\n+\tif(over_object == usr)\n+\t\treturn\n+\telse\n+\t\treturn ..()\n+\n+/obj/item/weapon/storage/laundry_basket/dropped(mob/user as mob)\n+\tqdel(linked)\n+\treturn ..()\n+\n+/obj/item/weapon/storage/laundry_basket/show_to(mob/user as mob)\n+\treturn\n+\n+/obj/item/weapon/storage/laundry_basket/open(mob/user as mob)","path":"code/game/objects/items/weapons/storage/laundry_basket.dm","position":74,"original_position":74,"commit_id":"ba19c28c33eeeadf41d258e3e313fe252e47a9dd","original_commit_id":"ba19c28c33eeeadf41d258e3e313fe252e47a9dd","user":{"login":"Hubblenaut","id":6383576,"avatar_url":"https://avatars.githubusercontent.com/u/6383576?v=3","gravatar_id":"","url":"https://api.github.com/users/Hubblenaut","html_url":"https://github.com/Hubblenaut","followers_url":"https://api.github.com/users/Hubblenaut/followers","following_url":"https://api.github.com/users/Hubblenaut/following{/other_user}","gists_url":"https://api.github.com/users/Hubblenaut/gists{/gist_id}","starred_url":"https://api.github.com/users/Hubblenaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hubblenaut/subscriptions","organizations_url":"https://api.github.com/users/Hubblenaut/orgs","repos_url":"https://api.github.com/users/Hubblenaut/repos","events_url":"https://api.github.com/users/Hubblenaut/events{/privacy}","received_events_url":"https://api.github.com/users/Hubblenaut/received_events","type":"User","site_admin":false},"body":"Overridden so the inventory can not directly be accessed","created_at":"2015-10-13T13:52:23Z","updated_at":"2015-10-13T13:52:23Z","html_url":"https://github.com/Baystation12/Baystation12/pull/11247#discussion_r41867437","pull_request_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/11247","_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/41867437"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/11247#discussion_r41867437"},"pull_request":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/11247"}}},"pull_request":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/11247","id":46796849,"html_url":"https://github.com/Baystation12/Baystation12/pull/11247","diff_url":"https://github.com/Baystation12/Baystation12/pull/11247.diff","patch_url":"https://github.com/Baystation12/Baystation12/pull/11247.patch","issue_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/11247","number":11247,"state":"open","locked":false,"title":"Adds laundry basket","user":{"login":"Hubblenaut","id":6383576,"avatar_url":"https://avatars.githubusercontent.com/u/6383576?v=3","gravatar_id":"","url":"https://api.github.com/users/Hubblenaut","html_url":"https://github.com/Hubblenaut","followers_url":"https://api.github.com/users/Hubblenaut/followers","following_url":"https://api.github.com/users/Hubblenaut/following{/other_user}","gists_url":"https://api.github.com/users/Hubblenaut/gists{/gist_id}","starred_url":"https://api.github.com/users/Hubblenaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hubblenaut/subscriptions","organizations_url":"https://api.github.com/users/Hubblenaut/orgs","repos_url":"https://api.github.com/users/Hubblenaut/repos","events_url":"https://api.github.com/users/Hubblenaut/events{/privacy}","received_events_url":"https://api.github.com/users/Hubblenaut/received_events","type":"User","site_admin":false},"body":"![Laundry basket](http://i.imgur.com/DFL38q3.png)\r\n\r\nAdds a laundry basket storage item. Has just enough storage to hold the equipped belongings of one person. Quick-gathering and quick-emptying enabled. Requires two hands for carrying. Contents cannot be directly accessed, but have to be dumped onto the floor first.\r\n\r\nThis is to replace the need of lockers to haul the belongings of a patient or prisoner - thus, I'll map it into the cloning lab, brig and locker room.","created_at":"2015-10-05T15:40:38Z","updated_at":"2015-10-13T13:52:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38ae01819f778ce3181147379a11dfbf4e04a447","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/11247/commits","review_comments_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/11247/comments","review_comment_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/11247/comments","statuses_url":"https://api.github.com/repos/Baystation12/Baystation12/statuses/ba19c28c33eeeadf41d258e3e313fe252e47a9dd","head":{"label":"Hubblenaut:laundry","ref":"laundry","sha":"ba19c28c33eeeadf41d258e3e313fe252e47a9dd","user":{"login":"Hubblenaut","id":6383576,"avatar_url":"https://avatars.githubusercontent.com/u/6383576?v=3","gravatar_id":"","url":"https://api.github.com/users/Hubblenaut","html_url":"https://github.com/Hubblenaut","followers_url":"https://api.github.com/users/Hubblenaut/followers","following_url":"https://api.github.com/users/Hubblenaut/following{/other_user}","gists_url":"https://api.github.com/users/Hubblenaut/gists{/gist_id}","starred_url":"https://api.github.com/users/Hubblenaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hubblenaut/subscriptions","organizations_url":"https://api.github.com/users/Hubblenaut/orgs","repos_url":"https://api.github.com/users/Hubblenaut/repos","events_url":"https://api.github.com/users/Hubblenaut/events{/privacy}","received_events_url":"https://api.github.com/users/Hubblenaut/received_events","type":"User","site_admin":false},"repo":{"id":19297757,"name":"Baystation12","full_name":"Hubblenaut/Baystation12","owner":{"login":"Hubblenaut","id":6383576,"avatar_url":"https://avatars.githubusercontent.com/u/6383576?v=3","gravatar_id":"","url":"https://api.github.com/users/Hubblenaut","html_url":"https://github.com/Hubblenaut","followers_url":"https://api.github.com/users/Hubblenaut/followers","following_url":"https://api.github.com/users/Hubblenaut/following{/other_user}","gists_url":"https://api.github.com/users/Hubblenaut/gists{/gist_id}","starred_url":"https://api.github.com/users/Hubblenaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hubblenaut/subscriptions","organizations_url":"https://api.github.com/users/Hubblenaut/orgs","repos_url":"https://api.github.com/users/Hubblenaut/repos","events_url":"https://api.github.com/users/Hubblenaut/events{/privacy}","received_events_url":"https://api.github.com/users/Hubblenaut/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Hubblenaut/Baystation12","description":"The code for Baystation12's branch of SS13","fork":true,"url":"https://api.github.com/repos/Hubblenaut/Baystation12","forks_url":"https://api.github.com/repos/Hubblenaut/Baystation12/forks","keys_url":"https://api.github.com/repos/Hubblenaut/Baystation12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hubblenaut/Baystation12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hubblenaut/Baystation12/teams","hooks_url":"https://api.github.com/repos/Hubblenaut/Baystation12/hooks","issue_events_url":"https://api.github.com/repos/Hubblenaut/Baystation12/issues/events{/number}","events_url":"https://api.github.com/repos/Hubblenaut/Baystation12/events","assignees_url":"https://api.github.com/repos/Hubblenaut/Baystation12/assignees{/user}","branches_url":"https://api.github.com/repos/Hubblenaut/Baystation12/branches{/branch}","tags_url":"https://api.github.com/repos/Hubblenaut/Baystation12/tags","blobs_url":"https://api.github.com/repos/Hubblenaut/Baystation12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hubblenaut/Baystation12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hubblenaut/Baystation12/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hubblenaut/Baystation12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hubblenaut/Baystation12/statuses/{sha}","languages_url":"https://api.github.com/repos/Hubblenaut/Baystation12/languages","stargazers_url":"https://api.github.com/repos/Hubblenaut/Baystation12/stargazers","contributors_url":"https://api.github.com/repos/Hubblenaut/Baystation12/contributors","subscribers_url":"https://api.github.com/repos/Hubblenaut/Baystation12/subscribers","subscription_url":"https://api.github.com/repos/Hubblenaut/Baystation12/subscription","commits_url":"https://api.github.com/repos/Hubblenaut/Baystation12/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hubblenaut/Baystation12/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hubblenaut/Baystation12/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hubblenaut/Baystation12/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hubblenaut/Baystation12/contents/{+path}","compare_url":"https://api.github.com/repos/Hubblenaut/Baystation12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hubblenaut/Baystation12/merges","archive_url":"https://api.github.com/repos/Hubblenaut/Baystation12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hubblenaut/Baystation12/downloads","issues_url":"https://api.github.com/repos/Hubblenaut/Baystation12/issues{/number}","pulls_url":"https://api.github.com/repos/Hubblenaut/Baystation12/pulls{/number}","milestones_url":"https://api.github.com/repos/Hubblenaut/Baystation12/milestones{/number}","notifications_url":"https://api.github.com/repos/Hubblenaut/Baystation12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hubblenaut/Baystation12/labels{/name}","releases_url":"https://api.github.com/repos/Hubblenaut/Baystation12/releases{/id}","created_at":"2014-04-30T01:56:30Z","updated_at":"2015-02-16T23:19:13Z","pushed_at":"2015-10-12T16:47:51Z","git_url":"git://github.com/Hubblenaut/Baystation12.git","ssh_url":"git@github.com:Hubblenaut/Baystation12.git","clone_url":"https://github.com/Hubblenaut/Baystation12.git","svn_url":"https://github.com/Hubblenaut/Baystation12","homepage":"http://baystation12.net/","size":626118,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Baystation12:dev","ref":"dev","sha":"4ca487e291df6fa7637a975623582d46d3fa0e3f","user":{"login":"Baystation12","id":1174322,"avatar_url":"https://avatars.githubusercontent.com/u/1174322?v=3","gravatar_id":"","url":"https://api.github.com/users/Baystation12","html_url":"https://github.com/Baystation12","followers_url":"https://api.github.com/users/Baystation12/followers","following_url":"https://api.github.com/users/Baystation12/following{/other_user}","gists_url":"https://api.github.com/users/Baystation12/gists{/gist_id}","starred_url":"https://api.github.com/users/Baystation12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baystation12/subscriptions","organizations_url":"https://api.github.com/users/Baystation12/orgs","repos_url":"https://api.github.com/users/Baystation12/repos","events_url":"https://api.github.com/users/Baystation12/events{/privacy}","received_events_url":"https://api.github.com/users/Baystation12/received_events","type":"Organization","site_admin":false},"repo":{"id":2715933,"name":"Baystation12","full_name":"Baystation12/Baystation12","owner":{"login":"Baystation12","id":1174322,"avatar_url":"https://avatars.githubusercontent.com/u/1174322?v=3","gravatar_id":"","url":"https://api.github.com/users/Baystation12","html_url":"https://github.com/Baystation12","followers_url":"https://api.github.com/users/Baystation12/followers","following_url":"https://api.github.com/users/Baystation12/following{/other_user}","gists_url":"https://api.github.com/users/Baystation12/gists{/gist_id}","starred_url":"https://api.github.com/users/Baystation12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baystation12/subscriptions","organizations_url":"https://api.github.com/users/Baystation12/orgs","repos_url":"https://api.github.com/users/Baystation12/repos","events_url":"https://api.github.com/users/Baystation12/events{/privacy}","received_events_url":"https://api.github.com/users/Baystation12/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Baystation12/Baystation12","description":"The code for Baystation12's branch of SS13","fork":false,"url":"https://api.github.com/repos/Baystation12/Baystation12","forks_url":"https://api.github.com/repos/Baystation12/Baystation12/forks","keys_url":"https://api.github.com/repos/Baystation12/Baystation12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Baystation12/Baystation12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Baystation12/Baystation12/teams","hooks_url":"https://api.github.com/repos/Baystation12/Baystation12/hooks","issue_events_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/events{/number}","events_url":"https://api.github.com/repos/Baystation12/Baystation12/events","assignees_url":"https://api.github.com/repos/Baystation12/Baystation12/assignees{/user}","branches_url":"https://api.github.com/repos/Baystation12/Baystation12/branches{/branch}","tags_url":"https://api.github.com/repos/Baystation12/Baystation12/tags","blobs_url":"https://api.github.com/repos/Baystation12/Baystation12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Baystation12/Baystation12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Baystation12/Baystation12/git/refs{/sha}","trees_url":"https://api.github.com/repos/Baystation12/Baystation12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Baystation12/Baystation12/statuses/{sha}","languages_url":"https://api.github.com/repos/Baystation12/Baystation12/languages","stargazers_url":"https://api.github.com/repos/Baystation12/Baystation12/stargazers","contributors_url":"https://api.github.com/repos/Baystation12/Baystation12/contributors","subscribers_url":"https://api.github.com/repos/Baystation12/Baystation12/subscribers","subscription_url":"https://api.github.com/repos/Baystation12/Baystation12/subscription","commits_url":"https://api.github.com/repos/Baystation12/Baystation12/commits{/sha}","git_commits_url":"https://api.github.com/repos/Baystation12/Baystation12/git/commits{/sha}","comments_url":"https://api.github.com/repos/Baystation12/Baystation12/comments{/number}","issue_comment_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/comments{/number}","contents_url":"https://api.github.com/repos/Baystation12/Baystation12/contents/{+path}","compare_url":"https://api.github.com/repos/Baystation12/Baystation12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Baystation12/Baystation12/merges","archive_url":"https://api.github.com/repos/Baystation12/Baystation12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Baystation12/Baystation12/downloads","issues_url":"https://api.github.com/repos/Baystation12/Baystation12/issues{/number}","pulls_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls{/number}","milestones_url":"https://api.github.com/repos/Baystation12/Baystation12/milestones{/number}","notifications_url":"https://api.github.com/repos/Baystation12/Baystation12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Baystation12/Baystation12/labels{/name}","releases_url":"https://api.github.com/repos/Baystation12/Baystation12/releases{/id}","created_at":"2011-11-05T16:12:41Z","updated_at":"2015-10-12T16:40:14Z","pushed_at":"2015-10-13T07:04:22Z","git_url":"git://github.com/Baystation12/Baystation12.git","ssh_url":"git@github.com:Baystation12/Baystation12.git","clone_url":"https://github.com/Baystation12/Baystation12.git","svn_url":"https://github.com/Baystation12/Baystation12","homepage":"http://baystation12.net/","size":1553154,"stargazers_count":204,"watchers_count":204,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":877,"mirror_url":null,"open_issues_count":306,"forks":877,"open_issues":306,"watchers":204,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/11247"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/11247"},"issue":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/11247"},"comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/11247/comments"},"review_comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/11247/comments"},"review_comment":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/11247/commits"},"statuses":{"href":"https://api.github.com/repos/Baystation12/Baystation12/statuses/ba19c28c33eeeadf41d258e3e313fe252e47a9dd"}}}}