{"action":"created","comment":{"url":"https://api.github.com/repos/PolarisSS13/Polaris/pulls/comments/68525393","id":68525393,"diff_hunk":"@@ -4,26 +4,51 @@\n \tname = \"Nutriment\"\n \tid = \"nutriment\"\n \tdescription = \"All the vitamins, minerals, and carbohydrates the body needs in pure form.\"\n+\ttaste_mult = 4\n \treagent_state = SOLID\n \tmetabolism = REM * 4\n \tvar/nutriment_factor = 30 // Per unit\n \tvar/injectable = 0\n \tcolor = \"#664330\"\n \n+/datum/reagent/nutriment/mix_data(var/list/newdata, var/newamount)\n+\n+\tif(!islist(newdata) || !newdata.len)\n+\t\treturn\n+\tfor(var/i in 1 to newdata.len)\n+\t\tif(!(newdata[i] in data))\n+\t\t\tdata.Add(newdata[i])\n+\t\t\tdata[newdata[i]] = 0\n+\t\tdata[newdata[i]] += newdata[newdata[i]]\n+\tvar/totalFlavor = 0\n+\tfor(var/i in 1 to data.len)\n+\t\ttotalFlavor += data[data[i]]\n+\tfor(var/i in 1 to data.len) //cull the tasteless\n+\t\tif(data[data[i]]/totalFlavor * 100 < 10)\n+\t\t\tdata[data[i]] = null\n+\t\t\tdata -= data[i]\n+\t\t\tdata -= null\n+\n /datum/reagent/nutriment/affect_blood(var/mob/living/carbon/M, var/alien, var/removed)\n \tif(!injectable)\n-\t\tM.adjustToxLoss(0.1 * removed)\n+\t\tM.adjustToxLoss(0.2 * removed)\n \t\treturn\n \taffect_ingest(M, alien, removed)\n \n /datum/reagent/nutriment/affect_ingest(var/mob/living/carbon/M, var/alien, var/removed)\n+\tM.heal_organ_damage(0.5 * removed, 0) //what\n \tswitch(alien)\n \t\tif(IS_UNATHI) removed *= 0.5\n \tif(issmall(M)) removed *= 2 // Small bodymass, more effect from lower volume.\n-\tM.heal_organ_damage(0.5 * removed, 0)\n-\tM.nutrition += nutriment_factor * removed // For hunger and fatness\n+\tadjust_nutrition(M, alien, removed)\n \tM.add_chemical_effect(CE_BLOODRESTORE, 4 * removed)\n \n+/datum/reagent/nutriment/proc/adjust_nutrition(var/mob/living/carbon/M, var/alien, var/removed)\n+\tswitch(alien)\n+\t\tif(IS_TESHARI) removed *= 0.8 // Resomi get a bit more nutrition from meat, a bit less from other stuff to compensate\n+\t\tif(IS_UNATHI) removed *= 0.1 // Unathi get most of their nutrition from meat.","path":"code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks.dm","position":49,"original_position":49,"commit_id":"979e15b4c98f08575779983e105c00883936696c","original_commit_id":"979e15b4c98f08575779983e105c00883936696c","user":{"login":"Iamgoofball","id":4081722,"avatar_url":"https://avatars.githubusercontent.com/u/4081722?v=3","gravatar_id":"","url":"https://api.github.com/users/Iamgoofball","html_url":"https://github.com/Iamgoofball","followers_url":"https://api.github.com/users/Iamgoofball/followers","following_url":"https://api.github.com/users/Iamgoofball/following{/other_user}","gists_url":"https://api.github.com/users/Iamgoofball/gists{/gist_id}","starred_url":"https://api.github.com/users/Iamgoofball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Iamgoofball/subscriptions","organizations_url":"https://api.github.com/users/Iamgoofball/orgs","repos_url":"https://api.github.com/users/Iamgoofball/repos","events_url":"https://api.github.com/users/Iamgoofball/events{/privacy}","received_events_url":"https://api.github.com/users/Iamgoofball/received_events","type":"User","site_admin":false},"body":"snowflake and magic numbers","created_at":"2016-06-27T05:55:04Z","updated_at":"2016-06-27T05:55:04Z","html_url":"https://github.com/PolarisSS13/Polaris/pull/1984#discussion_r68525393","pull_request_url":"https://api.github.com/repos/PolarisSS13/Polaris/pulls/1984","_links":{"self":{"href":"https://api.github.com/repos/PolarisSS13/Polaris/pulls/comments/68525393"},"html":{"href":"https://github.com/PolarisSS13/Polaris/pull/1984#discussion_r68525393"},"pull_request":{"href":"https://api.github.com/repos/PolarisSS13/Polaris/pulls/1984"}}},"pull_request":{"url":"https://api.github.com/repos/PolarisSS13/Polaris/pulls/1984","id":75244526,"html_url":"https://github.com/PolarisSS13/Polaris/pull/1984","diff_url":"https://github.com/PolarisSS13/Polaris/pull/1984.diff","patch_url":"https://github.com/PolarisSS13/Polaris/pull/1984.patch","issue_url":"https://api.github.com/repos/PolarisSS13/Polaris/issues/1984","number":1984,"state":"open","locked":false,"title":"Taste and Chemistry rebrand","user":{"login":"aztectornado","id":8277254,"avatar_url":"https://avatars.githubusercontent.com/u/8277254?v=3","gravatar_id":"","url":"https://api.github.com/users/aztectornado","html_url":"https://github.com/aztectornado","followers_url":"https://api.github.com/users/aztectornado/followers","following_url":"https://api.github.com/users/aztectornado/following{/other_user}","gists_url":"https://api.github.com/users/aztectornado/gists{/gist_id}","starred_url":"https://api.github.com/users/aztectornado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aztectornado/subscriptions","organizations_url":"https://api.github.com/users/aztectornado/orgs","repos_url":"https://api.github.com/users/aztectornado/repos","events_url":"https://api.github.com/users/aztectornado/events{/privacy}","received_events_url":"https://api.github.com/users/aztectornado/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-26T23:52:26Z","updated_at":"2016-06-27T05:55:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"843d6d7fdacd7551da1d6576022b7abb23336332","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PolarisSS13/Polaris/pulls/1984/commits","review_comments_url":"https://api.github.com/repos/PolarisSS13/Polaris/pulls/1984/comments","review_comment_url":"https://api.github.com/repos/PolarisSS13/Polaris/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PolarisSS13/Polaris/issues/1984/comments","statuses_url":"https://api.github.com/repos/PolarisSS13/Polaris/statuses/979e15b4c98f08575779983e105c00883936696c","head":{"label":"aztectornado:master","ref":"master","sha":"979e15b4c98f08575779983e105c00883936696c","user":{"login":"aztectornado","id":8277254,"avatar_url":"https://avatars.githubusercontent.com/u/8277254?v=3","gravatar_id":"","url":"https://api.github.com/users/aztectornado","html_url":"https://github.com/aztectornado","followers_url":"https://api.github.com/users/aztectornado/followers","following_url":"https://api.github.com/users/aztectornado/following{/other_user}","gists_url":"https://api.github.com/users/aztectornado/gists{/gist_id}","starred_url":"https://api.github.com/users/aztectornado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aztectornado/subscriptions","organizations_url":"https://api.github.com/users/aztectornado/orgs","repos_url":"https://api.github.com/users/aztectornado/repos","events_url":"https://api.github.com/users/aztectornado/events{/privacy}","received_events_url":"https://api.github.com/users/aztectornado/received_events","type":"User","site_admin":false},"repo":{"id":61973076,"name":"Polaris","full_name":"aztectornado/Polaris","owner":{"login":"aztectornado","id":8277254,"avatar_url":"https://avatars.githubusercontent.com/u/8277254?v=3","gravatar_id":"","url":"https://api.github.com/users/aztectornado","html_url":"https://github.com/aztectornado","followers_url":"https://api.github.com/users/aztectornado/followers","following_url":"https://api.github.com/users/aztectornado/following{/other_user}","gists_url":"https://api.github.com/users/aztectornado/gists{/gist_id}","starred_url":"https://api.github.com/users/aztectornado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aztectornado/subscriptions","organizations_url":"https://api.github.com/users/aztectornado/orgs","repos_url":"https://api.github.com/users/aztectornado/repos","events_url":"https://api.github.com/users/aztectornado/events{/privacy}","received_events_url":"https://api.github.com/users/aztectornado/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aztectornado/Polaris","description":" Polaris - A version of Spacestation13, forked from Baystation12.","fork":true,"url":"https://api.github.com/repos/aztectornado/Polaris","forks_url":"https://api.github.com/repos/aztectornado/Polaris/forks","keys_url":"https://api.github.com/repos/aztectornado/Polaris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aztectornado/Polaris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aztectornado/Polaris/teams","hooks_url":"https://api.github.com/repos/aztectornado/Polaris/hooks","issue_events_url":"https://api.github.com/repos/aztectornado/Polaris/issues/events{/number}","events_url":"https://api.github.com/repos/aztectornado/Polaris/events","assignees_url":"https://api.github.com/repos/aztectornado/Polaris/assignees{/user}","branches_url":"https://api.github.com/repos/aztectornado/Polaris/branches{/branch}","tags_url":"https://api.github.com/repos/aztectornado/Polaris/tags","blobs_url":"https://api.github.com/repos/aztectornado/Polaris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aztectornado/Polaris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aztectornado/Polaris/git/refs{/sha}","trees_url":"https://api.github.com/repos/aztectornado/Polaris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aztectornado/Polaris/statuses/{sha}","languages_url":"https://api.github.com/repos/aztectornado/Polaris/languages","stargazers_url":"https://api.github.com/repos/aztectornado/Polaris/stargazers","contributors_url":"https://api.github.com/repos/aztectornado/Polaris/contributors","subscribers_url":"https://api.github.com/repos/aztectornado/Polaris/subscribers","subscription_url":"https://api.github.com/repos/aztectornado/Polaris/subscription","commits_url":"https://api.github.com/repos/aztectornado/Polaris/commits{/sha}","git_commits_url":"https://api.github.com/repos/aztectornado/Polaris/git/commits{/sha}","comments_url":"https://api.github.com/repos/aztectornado/Polaris/comments{/number}","issue_comment_url":"https://api.github.com/repos/aztectornado/Polaris/issues/comments{/number}","contents_url":"https://api.github.com/repos/aztectornado/Polaris/contents/{+path}","compare_url":"https://api.github.com/repos/aztectornado/Polaris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aztectornado/Polaris/merges","archive_url":"https://api.github.com/repos/aztectornado/Polaris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aztectornado/Polaris/downloads","issues_url":"https://api.github.com/repos/aztectornado/Polaris/issues{/number}","pulls_url":"https://api.github.com/repos/aztectornado/Polaris/pulls{/number}","milestones_url":"https://api.github.com/repos/aztectornado/Polaris/milestones{/number}","notifications_url":"https://api.github.com/repos/aztectornado/Polaris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aztectornado/Polaris/labels{/name}","releases_url":"https://api.github.com/repos/aztectornado/Polaris/releases{/id}","deployments_url":"https://api.github.com/repos/aztectornado/Polaris/deployments","created_at":"2016-06-26T04:06:25Z","updated_at":"2016-06-26T04:06:34Z","pushed_at":"2016-06-27T05:49:56Z","git_url":"git://github.com/aztectornado/Polaris.git","ssh_url":"git@github.com:aztectornado/Polaris.git","clone_url":"https://github.com/aztectornado/Polaris.git","svn_url":"https://github.com/aztectornado/Polaris","homepage":null,"size":668738,"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":"PolarisSS13:master","ref":"master","sha":"6374bc2c4c342b53bbf2950b9e792ec7e2084495","user":{"login":"PolarisSS13","id":11812425,"avatar_url":"https://avatars.githubusercontent.com/u/11812425?v=3","gravatar_id":"","url":"https://api.github.com/users/PolarisSS13","html_url":"https://github.com/PolarisSS13","followers_url":"https://api.github.com/users/PolarisSS13/followers","following_url":"https://api.github.com/users/PolarisSS13/following{/other_user}","gists_url":"https://api.github.com/users/PolarisSS13/gists{/gist_id}","starred_url":"https://api.github.com/users/PolarisSS13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolarisSS13/subscriptions","organizations_url":"https://api.github.com/users/PolarisSS13/orgs","repos_url":"https://api.github.com/users/PolarisSS13/repos","events_url":"https://api.github.com/users/PolarisSS13/events{/privacy}","received_events_url":"https://api.github.com/users/PolarisSS13/received_events","type":"Organization","site_admin":false},"repo":{"id":33467707,"name":"Polaris","full_name":"PolarisSS13/Polaris","owner":{"login":"PolarisSS13","id":11812425,"avatar_url":"https://avatars.githubusercontent.com/u/11812425?v=3","gravatar_id":"","url":"https://api.github.com/users/PolarisSS13","html_url":"https://github.com/PolarisSS13","followers_url":"https://api.github.com/users/PolarisSS13/followers","following_url":"https://api.github.com/users/PolarisSS13/following{/other_user}","gists_url":"https://api.github.com/users/PolarisSS13/gists{/gist_id}","starred_url":"https://api.github.com/users/PolarisSS13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolarisSS13/subscriptions","organizations_url":"https://api.github.com/users/PolarisSS13/orgs","repos_url":"https://api.github.com/users/PolarisSS13/repos","events_url":"https://api.github.com/users/PolarisSS13/events{/privacy}","received_events_url":"https://api.github.com/users/PolarisSS13/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolarisSS13/Polaris","description":" Polaris - A version of Spacestation13, forked from Baystation12.","fork":false,"url":"https://api.github.com/repos/PolarisSS13/Polaris","forks_url":"https://api.github.com/repos/PolarisSS13/Polaris/forks","keys_url":"https://api.github.com/repos/PolarisSS13/Polaris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolarisSS13/Polaris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolarisSS13/Polaris/teams","hooks_url":"https://api.github.com/repos/PolarisSS13/Polaris/hooks","issue_events_url":"https://api.github.com/repos/PolarisSS13/Polaris/issues/events{/number}","events_url":"https://api.github.com/repos/PolarisSS13/Polaris/events","assignees_url":"https://api.github.com/repos/PolarisSS13/Polaris/assignees{/user}","branches_url":"https://api.github.com/repos/PolarisSS13/Polaris/branches{/branch}","tags_url":"https://api.github.com/repos/PolarisSS13/Polaris/tags","blobs_url":"https://api.github.com/repos/PolarisSS13/Polaris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolarisSS13/Polaris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolarisSS13/Polaris/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolarisSS13/Polaris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolarisSS13/Polaris/statuses/{sha}","languages_url":"https://api.github.com/repos/PolarisSS13/Polaris/languages","stargazers_url":"https://api.github.com/repos/PolarisSS13/Polaris/stargazers","contributors_url":"https://api.github.com/repos/PolarisSS13/Polaris/contributors","subscribers_url":"https://api.github.com/repos/PolarisSS13/Polaris/subscribers","subscription_url":"https://api.github.com/repos/PolarisSS13/Polaris/subscription","commits_url":"https://api.github.com/repos/PolarisSS13/Polaris/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolarisSS13/Polaris/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolarisSS13/Polaris/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolarisSS13/Polaris/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolarisSS13/Polaris/contents/{+path}","compare_url":"https://api.github.com/repos/PolarisSS13/Polaris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolarisSS13/Polaris/merges","archive_url":"https://api.github.com/repos/PolarisSS13/Polaris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolarisSS13/Polaris/downloads","issues_url":"https://api.github.com/repos/PolarisSS13/Polaris/issues{/number}","pulls_url":"https://api.github.com/repos/PolarisSS13/Polaris/pulls{/number}","milestones_url":"https://api.github.com/repos/PolarisSS13/Polaris/milestones{/number}","notifications_url":"https://api.github.com/repos/PolarisSS13/Polaris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolarisSS13/Polaris/labels{/name}","releases_url":"https://api.github.com/repos/PolarisSS13/Polaris/releases{/id}","deployments_url":"https://api.github.com/repos/PolarisSS13/Polaris/deployments","created_at":"2015-04-06T05:10:58Z","updated_at":"2016-06-02T23:33:48Z","pushed_at":"2016-06-27T05:49:57Z","git_url":"git://github.com/PolarisSS13/Polaris.git","ssh_url":"git@github.com:PolarisSS13/Polaris.git","clone_url":"https://github.com/PolarisSS13/Polaris.git","svn_url":"https://github.com/PolarisSS13/Polaris","homepage":null,"size":757862,"stargazers_count":26,"watchers_count":26,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":79,"mirror_url":null,"open_issues_count":189,"forks":79,"open_issues":189,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PolarisSS13/Polaris/pulls/1984"},"html":{"href":"https://github.com/PolarisSS13/Polaris/pull/1984"},"issue":{"href":"https://api.github.com/repos/PolarisSS13/Polaris/issues/1984"},"comments":{"href":"https://api.github.com/repos/PolarisSS13/Polaris/issues/1984/comments"},"review_comments":{"href":"https://api.github.com/repos/PolarisSS13/Polaris/pulls/1984/comments"},"review_comment":{"href":"https://api.github.com/repos/PolarisSS13/Polaris/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PolarisSS13/Polaris/pulls/1984/commits"},"statuses":{"href":"https://api.github.com/repos/PolarisSS13/Polaris/statuses/979e15b4c98f08575779983e105c00883936696c"}}}}
{"actor":{"display_login":"Iamgoofball"}}