{"action":"created","comment":{"url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/comments/197625937","pull_request_review_id":131409209,"id":197625937,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzYyNTkzNw==","diff_hunk":"@@ -1,58 +1,65 @@\n #   Documentation: https://elanthipedia.play.net/Lich_script_repository#restock\n-\n custom_require.call(%w[common common-items common-money])\n-\n class Restock\n   include DRC\n   include DRCM\n   include DRCI\n-\n   def initialize\n     setup\n-\n     items = parse_restockable_items\n+\n+    custom_loc_items = items.select{ |k| k['hometown'] }\n+\n+    items -= custom_loc_items\n+    restock_items(items)\n+\n+    unique_hometowns = custom_loc_items.map{ |k| \"#{k['hometown']}\" }.uniq","path":"restock.lic","position":20,"original_position":20,"commit_id":"31ef271be75ef73e1c57d1fcb071885c32f9e924","original_commit_id":"31ef271be75ef73e1c57d1fcb071885c32f9e924","user":{"login":"jayRyan24","id":12435369,"node_id":"MDQ6VXNlcjEyNDM1MzY5","avatar_url":"https://avatars0.githubusercontent.com/u/12435369?v=4","gravatar_id":"","url":"https://api.github.com/users/jayRyan24","html_url":"https://github.com/jayRyan24","followers_url":"https://api.github.com/users/jayRyan24/followers","following_url":"https://api.github.com/users/jayRyan24/following{/other_user}","gists_url":"https://api.github.com/users/jayRyan24/gists{/gist_id}","starred_url":"https://api.github.com/users/jayRyan24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayRyan24/subscriptions","organizations_url":"https://api.github.com/users/jayRyan24/orgs","repos_url":"https://api.github.com/users/jayRyan24/repos","events_url":"https://api.github.com/users/jayRyan24/events{/privacy}","received_events_url":"https://api.github.com/users/jayRyan24/received_events","type":"User","site_admin":false},"body":"Not sure, but I fixed it. ","created_at":"2018-06-24T01:13:57Z","updated_at":"2018-06-24T01:13:57Z","html_url":"https://github.com/rpherbig/dr-scripts/pull/2798#discussion_r197625937","pull_request_url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/2798","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/comments/197625937"},"html":{"href":"https://github.com/rpherbig/dr-scripts/pull/2798#discussion_r197625937"},"pull_request":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/2798"}},"in_reply_to_id":197625194},"pull_request":{"url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/2798","id":196297417,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2Mjk3NDE3","html_url":"https://github.com/rpherbig/dr-scripts/pull/2798","diff_url":"https://github.com/rpherbig/dr-scripts/pull/2798.diff","patch_url":"https://github.com/rpherbig/dr-scripts/pull/2798.patch","issue_url":"https://api.github.com/repos/rpherbig/dr-scripts/issues/2798","number":2798,"state":"open","locked":false,"title":"Restock supports custom hometowns for buying items.","user":{"login":"jayRyan24","id":12435369,"node_id":"MDQ6VXNlcjEyNDM1MzY5","avatar_url":"https://avatars0.githubusercontent.com/u/12435369?v=4","gravatar_id":"","url":"https://api.github.com/users/jayRyan24","html_url":"https://github.com/jayRyan24","followers_url":"https://api.github.com/users/jayRyan24/followers","following_url":"https://api.github.com/users/jayRyan24/following{/other_user}","gists_url":"https://api.github.com/users/jayRyan24/gists{/gist_id}","starred_url":"https://api.github.com/users/jayRyan24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayRyan24/subscriptions","organizations_url":"https://api.github.com/users/jayRyan24/orgs","repos_url":"https://api.github.com/users/jayRyan24/repos","events_url":"https://api.github.com/users/jayRyan24/events{/privacy}","received_events_url":"https://api.github.com/users/jayRyan24/received_events","type":"User","site_admin":false},"body":"Initial commit for adding custom hometowns to restock. If a hometown is found, it will then go to that hometown instead. I added two new money methods to handle things. Also fixed a bug in the base consumables for hib's items needing price and not cost.","created_at":"2018-06-20T23:17:22Z","updated_at":"2018-06-24T01:13:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f29e27fe0579d798f6abc98284038494335cc3c7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/2798/commits","review_comments_url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/2798/comments","review_comment_url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rpherbig/dr-scripts/issues/2798/comments","statuses_url":"https://api.github.com/repos/rpherbig/dr-scripts/statuses/31ef271be75ef73e1c57d1fcb071885c32f9e924","head":{"label":"jayRyan24:refactor-restock-support-multiple-towns","ref":"refactor-restock-support-multiple-towns","sha":"31ef271be75ef73e1c57d1fcb071885c32f9e924","user":{"login":"jayRyan24","id":12435369,"node_id":"MDQ6VXNlcjEyNDM1MzY5","avatar_url":"https://avatars0.githubusercontent.com/u/12435369?v=4","gravatar_id":"","url":"https://api.github.com/users/jayRyan24","html_url":"https://github.com/jayRyan24","followers_url":"https://api.github.com/users/jayRyan24/followers","following_url":"https://api.github.com/users/jayRyan24/following{/other_user}","gists_url":"https://api.github.com/users/jayRyan24/gists{/gist_id}","starred_url":"https://api.github.com/users/jayRyan24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayRyan24/subscriptions","organizations_url":"https://api.github.com/users/jayRyan24/orgs","repos_url":"https://api.github.com/users/jayRyan24/repos","events_url":"https://api.github.com/users/jayRyan24/events{/privacy}","received_events_url":"https://api.github.com/users/jayRyan24/received_events","type":"User","site_admin":false},"repo":{"id":110279313,"node_id":"MDEwOlJlcG9zaXRvcnkxMTAyNzkzMTM=","name":"dr-scripts","full_name":"jayRyan24/dr-scripts","owner":{"login":"jayRyan24","id":12435369,"node_id":"MDQ6VXNlcjEyNDM1MzY5","avatar_url":"https://avatars0.githubusercontent.com/u/12435369?v=4","gravatar_id":"","url":"https://api.github.com/users/jayRyan24","html_url":"https://github.com/jayRyan24","followers_url":"https://api.github.com/users/jayRyan24/followers","following_url":"https://api.github.com/users/jayRyan24/following{/other_user}","gists_url":"https://api.github.com/users/jayRyan24/gists{/gist_id}","starred_url":"https://api.github.com/users/jayRyan24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayRyan24/subscriptions","organizations_url":"https://api.github.com/users/jayRyan24/orgs","repos_url":"https://api.github.com/users/jayRyan24/repos","events_url":"https://api.github.com/users/jayRyan24/events{/privacy}","received_events_url":"https://api.github.com/users/jayRyan24/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jayRyan24/dr-scripts","description":"A series of Lich (https://lichproject.org/) scripts for use in DragonRealms (http://www.play.net/dr/). Donations are welcome (http://www.paypal.me/rcuhljr)!","fork":true,"url":"https://api.github.com/repos/jayRyan24/dr-scripts","forks_url":"https://api.github.com/repos/jayRyan24/dr-scripts/forks","keys_url":"https://api.github.com/repos/jayRyan24/dr-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jayRyan24/dr-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jayRyan24/dr-scripts/teams","hooks_url":"https://api.github.com/repos/jayRyan24/dr-scripts/hooks","issue_events_url":"https://api.github.com/repos/jayRyan24/dr-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/jayRyan24/dr-scripts/events","assignees_url":"https://api.github.com/repos/jayRyan24/dr-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/jayRyan24/dr-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/jayRyan24/dr-scripts/tags","blobs_url":"https://api.github.com/repos/jayRyan24/dr-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jayRyan24/dr-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jayRyan24/dr-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/jayRyan24/dr-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jayRyan24/dr-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/jayRyan24/dr-scripts/languages","stargazers_url":"https://api.github.com/repos/jayRyan24/dr-scripts/stargazers","contributors_url":"https://api.github.com/repos/jayRyan24/dr-scripts/contributors","subscribers_url":"https://api.github.com/repos/jayRyan24/dr-scripts/subscribers","subscription_url":"https://api.github.com/repos/jayRyan24/dr-scripts/subscription","commits_url":"https://api.github.com/repos/jayRyan24/dr-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/jayRyan24/dr-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/jayRyan24/dr-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/jayRyan24/dr-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/jayRyan24/dr-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/jayRyan24/dr-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jayRyan24/dr-scripts/merges","archive_url":"https://api.github.com/repos/jayRyan24/dr-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jayRyan24/dr-scripts/downloads","issues_url":"https://api.github.com/repos/jayRyan24/dr-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/jayRyan24/dr-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/jayRyan24/dr-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/jayRyan24/dr-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jayRyan24/dr-scripts/labels{/name}","releases_url":"https://api.github.com/repos/jayRyan24/dr-scripts/releases{/id}","deployments_url":"https://api.github.com/repos/jayRyan24/dr-scripts/deployments","created_at":"2017-11-10T18:25:03Z","updated_at":"2017-11-10T18:25:05Z","pushed_at":"2018-06-23T19:43:08Z","git_url":"git://github.com/jayRyan24/dr-scripts.git","ssh_url":"git@github.com:jayRyan24/dr-scripts.git","clone_url":"https://github.com/jayRyan24/dr-scripts.git","svn_url":"https://github.com/jayRyan24/dr-scripts","homepage":"","size":9339,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rpherbig:master","ref":"master","sha":"911fb115a5199fda62a8a66917dddc385c70dfe7","user":{"login":"rpherbig","id":1181607,"node_id":"MDQ6VXNlcjExODE2MDc=","avatar_url":"https://avatars1.githubusercontent.com/u/1181607?v=4","gravatar_id":"","url":"https://api.github.com/users/rpherbig","html_url":"https://github.com/rpherbig","followers_url":"https://api.github.com/users/rpherbig/followers","following_url":"https://api.github.com/users/rpherbig/following{/other_user}","gists_url":"https://api.github.com/users/rpherbig/gists{/gist_id}","starred_url":"https://api.github.com/users/rpherbig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpherbig/subscriptions","organizations_url":"https://api.github.com/users/rpherbig/orgs","repos_url":"https://api.github.com/users/rpherbig/repos","events_url":"https://api.github.com/users/rpherbig/events{/privacy}","received_events_url":"https://api.github.com/users/rpherbig/received_events","type":"User","site_admin":false},"repo":{"id":44390324,"node_id":"MDEwOlJlcG9zaXRvcnk0NDM5MDMyNA==","name":"dr-scripts","full_name":"rpherbig/dr-scripts","owner":{"login":"rpherbig","id":1181607,"node_id":"MDQ6VXNlcjExODE2MDc=","avatar_url":"https://avatars1.githubusercontent.com/u/1181607?v=4","gravatar_id":"","url":"https://api.github.com/users/rpherbig","html_url":"https://github.com/rpherbig","followers_url":"https://api.github.com/users/rpherbig/followers","following_url":"https://api.github.com/users/rpherbig/following{/other_user}","gists_url":"https://api.github.com/users/rpherbig/gists{/gist_id}","starred_url":"https://api.github.com/users/rpherbig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpherbig/subscriptions","organizations_url":"https://api.github.com/users/rpherbig/orgs","repos_url":"https://api.github.com/users/rpherbig/repos","events_url":"https://api.github.com/users/rpherbig/events{/privacy}","received_events_url":"https://api.github.com/users/rpherbig/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rpherbig/dr-scripts","description":"A series of Lich (https://lichproject.org/) scripts for use in DragonRealms (http://www.play.net/dr/). Donations are welcome (http://www.paypal.me/rcuhljr)!","fork":false,"url":"https://api.github.com/repos/rpherbig/dr-scripts","forks_url":"https://api.github.com/repos/rpherbig/dr-scripts/forks","keys_url":"https://api.github.com/repos/rpherbig/dr-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rpherbig/dr-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rpherbig/dr-scripts/teams","hooks_url":"https://api.github.com/repos/rpherbig/dr-scripts/hooks","issue_events_url":"https://api.github.com/repos/rpherbig/dr-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/rpherbig/dr-scripts/events","assignees_url":"https://api.github.com/repos/rpherbig/dr-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/rpherbig/dr-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/rpherbig/dr-scripts/tags","blobs_url":"https://api.github.com/repos/rpherbig/dr-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rpherbig/dr-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rpherbig/dr-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/rpherbig/dr-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rpherbig/dr-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/rpherbig/dr-scripts/languages","stargazers_url":"https://api.github.com/repos/rpherbig/dr-scripts/stargazers","contributors_url":"https://api.github.com/repos/rpherbig/dr-scripts/contributors","subscribers_url":"https://api.github.com/repos/rpherbig/dr-scripts/subscribers","subscription_url":"https://api.github.com/repos/rpherbig/dr-scripts/subscription","commits_url":"https://api.github.com/repos/rpherbig/dr-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/rpherbig/dr-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/rpherbig/dr-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/rpherbig/dr-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/rpherbig/dr-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/rpherbig/dr-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rpherbig/dr-scripts/merges","archive_url":"https://api.github.com/repos/rpherbig/dr-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rpherbig/dr-scripts/downloads","issues_url":"https://api.github.com/repos/rpherbig/dr-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/rpherbig/dr-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/rpherbig/dr-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/rpherbig/dr-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rpherbig/dr-scripts/labels{/name}","releases_url":"https://api.github.com/repos/rpherbig/dr-scripts/releases{/id}","deployments_url":"https://api.github.com/repos/rpherbig/dr-scripts/deployments","created_at":"2015-10-16T14:28:28Z","updated_at":"2018-06-24T01:04:03Z","pushed_at":"2018-06-24T01:04:00Z","git_url":"git://github.com/rpherbig/dr-scripts.git","ssh_url":"git@github.com:rpherbig/dr-scripts.git","clone_url":"https://github.com/rpherbig/dr-scripts.git","svn_url":"https://github.com/rpherbig/dr-scripts","homepage":"","size":9247,"stargazers_count":25,"watchers_count":25,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":80,"mirror_url":null,"archived":false,"open_issues_count":329,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":80,"open_issues":329,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/2798"},"html":{"href":"https://github.com/rpherbig/dr-scripts/pull/2798"},"issue":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/issues/2798"},"comments":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/issues/2798/comments"},"review_comments":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/2798/comments"},"review_comment":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/pulls/2798/commits"},"statuses":{"href":"https://api.github.com/repos/rpherbig/dr-scripts/statuses/31ef271be75ef73e1c57d1fcb071885c32f9e924"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jayRyan24"}}