{"action":"created","comment":{"url":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments/61783405","id":61783405,"diff_hunk":"@@ -0,0 +1,304 @@\n+/datum/personal_crafting\n+\tvar/busy\n+\tvar/viewing_category = 1 //typical powergamer starting on the Weapons tab\n+\tvar/list/categories = list(CAT_WEAPON,CAT_AMMO,CAT_ROBOT,CAT_FOOD,CAT_MISC,CAT_PRIMAL)\n+\tvar/datum/action/innate/crafting/button\n+\n+/datum/personal_crafting/New(mob/living/carbon/human/H)\n+\tbutton = new()\n+\tbutton.Grant(H)\n+\n+/datum/personal_crafting/proc/check_contents(datum/crafting_recipe/R, list/contents)\n+\tmain_loop:\n+\t\tfor(var/A in R.reqs)\n+\t\t\tvar/needed_amount = R.reqs[A]\n+\t\t\tfor(var/B in contents)\n+\t\t\t\tif(ispath(B, A))\n+\t\t\t\t\tif(contents[B] >= R.reqs[A])\n+\t\t\t\t\t\tcontinue main_loop\n+\t\t\t\t\telse\n+\t\t\t\t\t\tneeded_amount -= contents[B]\n+\t\t\t\t\t\tif(needed_amount <= 0)\n+\t\t\t\t\t\t\tcontinue main_loop\n+\t\t\t\t\t\telse\n+\t\t\t\t\t\t\tcontinue\n+\t\t\treturn 0\n+\tfor(var/A in R.chem_catalysts)\n+\t\tif(contents[A] < R.chem_catalysts[A])\n+\t\t\treturn 0\n+\treturn 1\n+\n+/datum/personal_crafting/proc/get_environment(mob/user)\n+\t. = list()\n+\t. += range(2, user.loc)\n+\t. += user.contents","path":"code/modules/crafting/craft.dm","position":34,"original_position":34,"commit_id":"87d87d090786feb87dc9708ffd70b587ca2660be","original_commit_id":"15077d51c965a1d01a1a3601021b848d4a5f5243","user":{"login":"nullbear","id":8071504,"avatar_url":"https://avatars.githubusercontent.com/u/8071504?v=3","gravatar_id":"","url":"https://api.github.com/users/nullbear","html_url":"https://github.com/nullbear","followers_url":"https://api.github.com/users/nullbear/followers","following_url":"https://api.github.com/users/nullbear/following{/other_user}","gists_url":"https://api.github.com/users/nullbear/gists{/gist_id}","starred_url":"https://api.github.com/users/nullbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nullbear/subscriptions","organizations_url":"https://api.github.com/users/nullbear/orgs","repos_url":"https://api.github.com/users/nullbear/repos","events_url":"https://api.github.com/users/nullbear/events{/privacy}","received_events_url":"https://api.github.com/users/nullbear/received_events","type":"User","site_admin":false},"body":"check user.hands, not user.contents. Otherwise people will be able to do stuff like craft brainburgers using their own brain.","created_at":"2016-05-02T18:47:17Z","updated_at":"2016-05-02T18:47:17Z","html_url":"https://github.com/tgstation/-tg-station/pull/17341#discussion_r61783405","pull_request_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/17341","_links":{"self":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments/61783405"},"html":{"href":"https://github.com/tgstation/-tg-station/pull/17341#discussion_r61783405"},"pull_request":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/17341"}}},"pull_request":{"url":"https://api.github.com/repos/tgstation/-tg-station/pulls/17341","id":68599065,"html_url":"https://github.com/tgstation/-tg-station/pull/17341","diff_url":"https://github.com/tgstation/-tg-station/pull/17341.diff","patch_url":"https://github.com/tgstation/-tg-station/pull/17341.patch","issue_url":"https://api.github.com/repos/tgstation/-tg-station/issues/17341","number":17341,"state":"open","locked":false,"title":"Turns tablecrafting into personal crafting","user":{"login":"Razharas","id":5615294,"avatar_url":"https://avatars.githubusercontent.com/u/5615294?v=3","gravatar_id":"","url":"https://api.github.com/users/Razharas","html_url":"https://github.com/Razharas","followers_url":"https://api.github.com/users/Razharas/followers","following_url":"https://api.github.com/users/Razharas/following{/other_user}","gists_url":"https://api.github.com/users/Razharas/gists{/gist_id}","starred_url":"https://api.github.com/users/Razharas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Razharas/subscriptions","organizations_url":"https://api.github.com/users/Razharas/orgs","repos_url":"https://api.github.com/users/Razharas/repos","events_url":"https://api.github.com/users/Razharas/events{/privacy}","received_events_url":"https://api.github.com/users/Razharas/received_events","type":"User","site_admin":false},"body":"Turns tablecrafting into personal crafting, you dont need tables anymore\r\nApart from being datum and opening by clicking on UI button its all the same externally\r\nInternally a lot of crafting procs are rewritten, lots of useless shit thrown out, lots of useful shit thrown in\r\n:star2: Like, comment, upvote & subscribe :star2: ","created_at":"2016-05-02T18:26:30Z","updated_at":"2016-05-02T18:47:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"06f047bb564de70f8b285ab928c17eb85b105e94","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/17341/commits","review_comments_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/17341/comments","review_comment_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tgstation/-tg-station/issues/17341/comments","statuses_url":"https://api.github.com/repos/tgstation/-tg-station/statuses/87d87d090786feb87dc9708ffd70b587ca2660be","head":{"label":"Razharas:TCfix","ref":"TCfix","sha":"87d87d090786feb87dc9708ffd70b587ca2660be","user":{"login":"Razharas","id":5615294,"avatar_url":"https://avatars.githubusercontent.com/u/5615294?v=3","gravatar_id":"","url":"https://api.github.com/users/Razharas","html_url":"https://github.com/Razharas","followers_url":"https://api.github.com/users/Razharas/followers","following_url":"https://api.github.com/users/Razharas/following{/other_user}","gists_url":"https://api.github.com/users/Razharas/gists{/gist_id}","starred_url":"https://api.github.com/users/Razharas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Razharas/subscriptions","organizations_url":"https://api.github.com/users/Razharas/orgs","repos_url":"https://api.github.com/users/Razharas/repos","events_url":"https://api.github.com/users/Razharas/events{/privacy}","received_events_url":"https://api.github.com/users/Razharas/received_events","type":"User","site_admin":false},"repo":{"id":15289320,"name":"-tg-station","full_name":"Razharas/-tg-station","owner":{"login":"Razharas","id":5615294,"avatar_url":"https://avatars.githubusercontent.com/u/5615294?v=3","gravatar_id":"","url":"https://api.github.com/users/Razharas","html_url":"https://github.com/Razharas","followers_url":"https://api.github.com/users/Razharas/followers","following_url":"https://api.github.com/users/Razharas/following{/other_user}","gists_url":"https://api.github.com/users/Razharas/gists{/gist_id}","starred_url":"https://api.github.com/users/Razharas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Razharas/subscriptions","organizations_url":"https://api.github.com/users/Razharas/orgs","repos_url":"https://api.github.com/users/Razharas/repos","events_url":"https://api.github.com/users/Razharas/events{/privacy}","received_events_url":"https://api.github.com/users/Razharas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Razharas/-tg-station","description":"/tg/'s SS13 branch","fork":true,"url":"https://api.github.com/repos/Razharas/-tg-station","forks_url":"https://api.github.com/repos/Razharas/-tg-station/forks","keys_url":"https://api.github.com/repos/Razharas/-tg-station/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Razharas/-tg-station/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Razharas/-tg-station/teams","hooks_url":"https://api.github.com/repos/Razharas/-tg-station/hooks","issue_events_url":"https://api.github.com/repos/Razharas/-tg-station/issues/events{/number}","events_url":"https://api.github.com/repos/Razharas/-tg-station/events","assignees_url":"https://api.github.com/repos/Razharas/-tg-station/assignees{/user}","branches_url":"https://api.github.com/repos/Razharas/-tg-station/branches{/branch}","tags_url":"https://api.github.com/repos/Razharas/-tg-station/tags","blobs_url":"https://api.github.com/repos/Razharas/-tg-station/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Razharas/-tg-station/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Razharas/-tg-station/git/refs{/sha}","trees_url":"https://api.github.com/repos/Razharas/-tg-station/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Razharas/-tg-station/statuses/{sha}","languages_url":"https://api.github.com/repos/Razharas/-tg-station/languages","stargazers_url":"https://api.github.com/repos/Razharas/-tg-station/stargazers","contributors_url":"https://api.github.com/repos/Razharas/-tg-station/contributors","subscribers_url":"https://api.github.com/repos/Razharas/-tg-station/subscribers","subscription_url":"https://api.github.com/repos/Razharas/-tg-station/subscription","commits_url":"https://api.github.com/repos/Razharas/-tg-station/commits{/sha}","git_commits_url":"https://api.github.com/repos/Razharas/-tg-station/git/commits{/sha}","comments_url":"https://api.github.com/repos/Razharas/-tg-station/comments{/number}","issue_comment_url":"https://api.github.com/repos/Razharas/-tg-station/issues/comments{/number}","contents_url":"https://api.github.com/repos/Razharas/-tg-station/contents/{+path}","compare_url":"https://api.github.com/repos/Razharas/-tg-station/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Razharas/-tg-station/merges","archive_url":"https://api.github.com/repos/Razharas/-tg-station/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Razharas/-tg-station/downloads","issues_url":"https://api.github.com/repos/Razharas/-tg-station/issues{/number}","pulls_url":"https://api.github.com/repos/Razharas/-tg-station/pulls{/number}","milestones_url":"https://api.github.com/repos/Razharas/-tg-station/milestones{/number}","notifications_url":"https://api.github.com/repos/Razharas/-tg-station/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Razharas/-tg-station/labels{/name}","releases_url":"https://api.github.com/repos/Razharas/-tg-station/releases{/id}","deployments_url":"https://api.github.com/repos/Razharas/-tg-station/deployments","created_at":"2013-12-18T17:14:00Z","updated_at":"2015-01-27T05:11:43Z","pushed_at":"2016-05-02T18:36:44Z","git_url":"git://github.com/Razharas/-tg-station.git","ssh_url":"git@github.com:Razharas/-tg-station.git","clone_url":"https://github.com/Razharas/-tg-station.git","svn_url":"https://github.com/Razharas/-tg-station","homepage":"","size":573807,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"tgstation:master","ref":"master","sha":"340b1d01fffb91d7342c97b7b0521e0c8c622918","user":{"login":"tgstation","id":1363778,"avatar_url":"https://avatars.githubusercontent.com/u/1363778?v=3","gravatar_id":"","url":"https://api.github.com/users/tgstation","html_url":"https://github.com/tgstation","followers_url":"https://api.github.com/users/tgstation/followers","following_url":"https://api.github.com/users/tgstation/following{/other_user}","gists_url":"https://api.github.com/users/tgstation/gists{/gist_id}","starred_url":"https://api.github.com/users/tgstation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgstation/subscriptions","organizations_url":"https://api.github.com/users/tgstation/orgs","repos_url":"https://api.github.com/users/tgstation/repos","events_url":"https://api.github.com/users/tgstation/events{/privacy}","received_events_url":"https://api.github.com/users/tgstation/received_events","type":"Organization","site_admin":false},"repo":{"id":3234987,"name":"-tg-station","full_name":"tgstation/-tg-station","owner":{"login":"tgstation","id":1363778,"avatar_url":"https://avatars.githubusercontent.com/u/1363778?v=3","gravatar_id":"","url":"https://api.github.com/users/tgstation","html_url":"https://github.com/tgstation","followers_url":"https://api.github.com/users/tgstation/followers","following_url":"https://api.github.com/users/tgstation/following{/other_user}","gists_url":"https://api.github.com/users/tgstation/gists{/gist_id}","starred_url":"https://api.github.com/users/tgstation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgstation/subscriptions","organizations_url":"https://api.github.com/users/tgstation/orgs","repos_url":"https://api.github.com/users/tgstation/repos","events_url":"https://api.github.com/users/tgstation/events{/privacy}","received_events_url":"https://api.github.com/users/tgstation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tgstation/-tg-station","description":"the /tg/station branch of SS13","fork":false,"url":"https://api.github.com/repos/tgstation/-tg-station","forks_url":"https://api.github.com/repos/tgstation/-tg-station/forks","keys_url":"https://api.github.com/repos/tgstation/-tg-station/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tgstation/-tg-station/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tgstation/-tg-station/teams","hooks_url":"https://api.github.com/repos/tgstation/-tg-station/hooks","issue_events_url":"https://api.github.com/repos/tgstation/-tg-station/issues/events{/number}","events_url":"https://api.github.com/repos/tgstation/-tg-station/events","assignees_url":"https://api.github.com/repos/tgstation/-tg-station/assignees{/user}","branches_url":"https://api.github.com/repos/tgstation/-tg-station/branches{/branch}","tags_url":"https://api.github.com/repos/tgstation/-tg-station/tags","blobs_url":"https://api.github.com/repos/tgstation/-tg-station/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tgstation/-tg-station/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tgstation/-tg-station/git/refs{/sha}","trees_url":"https://api.github.com/repos/tgstation/-tg-station/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tgstation/-tg-station/statuses/{sha}","languages_url":"https://api.github.com/repos/tgstation/-tg-station/languages","stargazers_url":"https://api.github.com/repos/tgstation/-tg-station/stargazers","contributors_url":"https://api.github.com/repos/tgstation/-tg-station/contributors","subscribers_url":"https://api.github.com/repos/tgstation/-tg-station/subscribers","subscription_url":"https://api.github.com/repos/tgstation/-tg-station/subscription","commits_url":"https://api.github.com/repos/tgstation/-tg-station/commits{/sha}","git_commits_url":"https://api.github.com/repos/tgstation/-tg-station/git/commits{/sha}","comments_url":"https://api.github.com/repos/tgstation/-tg-station/comments{/number}","issue_comment_url":"https://api.github.com/repos/tgstation/-tg-station/issues/comments{/number}","contents_url":"https://api.github.com/repos/tgstation/-tg-station/contents/{+path}","compare_url":"https://api.github.com/repos/tgstation/-tg-station/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tgstation/-tg-station/merges","archive_url":"https://api.github.com/repos/tgstation/-tg-station/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tgstation/-tg-station/downloads","issues_url":"https://api.github.com/repos/tgstation/-tg-station/issues{/number}","pulls_url":"https://api.github.com/repos/tgstation/-tg-station/pulls{/number}","milestones_url":"https://api.github.com/repos/tgstation/-tg-station/milestones{/number}","notifications_url":"https://api.github.com/repos/tgstation/-tg-station/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tgstation/-tg-station/labels{/name}","releases_url":"https://api.github.com/repos/tgstation/-tg-station/releases{/id}","deployments_url":"https://api.github.com/repos/tgstation/-tg-station/deployments","created_at":"2012-01-21T17:32:47Z","updated_at":"2016-05-01T02:08:32Z","pushed_at":"2016-05-02T18:36:45Z","git_url":"git://github.com/tgstation/-tg-station.git","ssh_url":"git@github.com:tgstation/-tg-station.git","clone_url":"https://github.com/tgstation/-tg-station.git","svn_url":"https://github.com/tgstation/-tg-station","homepage":"http://www.tgstation13.org/","size":796888,"stargazers_count":292,"watchers_count":292,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1037,"mirror_url":null,"open_issues_count":933,"forks":1037,"open_issues":933,"watchers":292,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/17341"},"html":{"href":"https://github.com/tgstation/-tg-station/pull/17341"},"issue":{"href":"https://api.github.com/repos/tgstation/-tg-station/issues/17341"},"comments":{"href":"https://api.github.com/repos/tgstation/-tg-station/issues/17341/comments"},"review_comments":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/17341/comments"},"review_comment":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/17341/commits"},"statuses":{"href":"https://api.github.com/repos/tgstation/-tg-station/statuses/87d87d090786feb87dc9708ffd70b587ca2660be"}}}}