{"action":"created","comment":{"url":"https://api.github.com/repos/apollo-rsps/apollo/pulls/comments/57252079","id":57252079,"diff_hunk":"@@ -7,27 +7,28 @@\n \n # A pickaxe that can be mined with.\n class Pickaxe\n-  attr_reader :id, :level, :animation, :pulses\n+  attr_reader :id, :level, :animation, :pulses, :ratio\n \n-  def initialize(id, level, animation, pulses)\n+  def initialize(id, level, animation, pulses, ratio)\n     @id = id\n     @level = level\n     @animation = Animation.new(animation)\n     @pulses = pulses\n+    @ratio = ratio\n   end\n end\n \n def append_pickaxe(pickaxe)\n   PICKAXES[pickaxe.id] = pickaxe\n-  PICKAXE_IDS << pickaxe.id # tacky way of keeping things in order\n+  PICKAXE_IDS << pickaxe.id\n end\n \n # NOTE: ADD LOWER LEVEL PICKAXES FIRST\n-append_pickaxe(Pickaxe.new(1265, 1,  625, 8)) # bronze pickaxe\n-append_pickaxe(Pickaxe.new(1267, 1,  626, 7)) # iron pickaxe\n-append_pickaxe(Pickaxe.new(1269, 1,  627, 6)) # steel pickaxe\n-append_pickaxe(Pickaxe.new(1273, 21, 629, 5)) # mithril pickaxe\n-append_pickaxe(Pickaxe.new(1271, 31, 628, 4)) # adamant pickaxe\n-append_pickaxe(Pickaxe.new(1275, 41, 624, 3)) # rune pickaxe\n+append_pickaxe(Pickaxe.new(1265, 1,  625, 8, 0.05)) # bronze pickaxe","path":"data/plugins/skill/mining/pickaxe.rb","position":30,"original_position":30,"commit_id":"6f8dd170885ea1e62b9affadfc953aa4ade1f050","original_commit_id":"6f8dd170885ea1e62b9affadfc953aa4ade1f050","user":{"login":"garyttierney","id":1180094,"avatar_url":"https://avatars.githubusercontent.com/u/1180094?v=3","gravatar_id":"","url":"https://api.github.com/users/garyttierney","html_url":"https://github.com/garyttierney","followers_url":"https://api.github.com/users/garyttierney/followers","following_url":"https://api.github.com/users/garyttierney/following{/other_user}","gists_url":"https://api.github.com/users/garyttierney/gists{/gist_id}","starred_url":"https://api.github.com/users/garyttierney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garyttierney/subscriptions","organizations_url":"https://api.github.com/users/garyttierney/orgs","repos_url":"https://api.github.com/users/garyttierney/repos","events_url":"https://api.github.com/users/garyttierney/events{/privacy}","received_events_url":"https://api.github.com/users/garyttierney/received_events","type":"User","site_admin":false},"body":"Could you change this to take named parameters like you have done with `gem.rb`?","created_at":"2016-03-23T23:02:48Z","updated_at":"2016-03-23T23:02:48Z","html_url":"https://github.com/apollo-rsps/apollo/pull/297#discussion_r57252079","pull_request_url":"https://api.github.com/repos/apollo-rsps/apollo/pulls/297","_links":{"self":{"href":"https://api.github.com/repos/apollo-rsps/apollo/pulls/comments/57252079"},"html":{"href":"https://github.com/apollo-rsps/apollo/pull/297#discussion_r57252079"},"pull_request":{"href":"https://api.github.com/repos/apollo-rsps/apollo/pulls/297"}}},"pull_request":{"url":"https://api.github.com/repos/apollo-rsps/apollo/pulls/297","id":63483358,"html_url":"https://github.com/apollo-rsps/apollo/pull/297","diff_url":"https://github.com/apollo-rsps/apollo/pull/297.diff","patch_url":"https://github.com/apollo-rsps/apollo/pull/297.patch","issue_url":"https://api.github.com/repos/apollo-rsps/apollo/issues/297","number":297,"state":"open","locked":false,"title":"Mining","user":{"login":"WizardJesse1","id":720173,"avatar_url":"https://avatars.githubusercontent.com/u/720173?v=3","gravatar_id":"","url":"https://api.github.com/users/WizardJesse1","html_url":"https://github.com/WizardJesse1","followers_url":"https://api.github.com/users/WizardJesse1/followers","following_url":"https://api.github.com/users/WizardJesse1/following{/other_user}","gists_url":"https://api.github.com/users/WizardJesse1/gists{/gist_id}","starred_url":"https://api.github.com/users/WizardJesse1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WizardJesse1/subscriptions","organizations_url":"https://api.github.com/users/WizardJesse1/orgs","repos_url":"https://api.github.com/users/WizardJesse1/repos","events_url":"https://api.github.com/users/WizardJesse1/events{/privacy}","received_events_url":"https://api.github.com/users/WizardJesse1/received_events","type":"User","site_admin":false},"body":"* Full object restoring and depleting (Fix Issue #182)\r\n\r\n* Pickaxes now go to the highest one (Fix Issue #247)\r\n\r\n* Full essence mining support (Fix Issue #184)\r\n\r\n* Object sizes for the rocks are checked from the definition now\r\n\r\n* Still needs work but players have a chance to fail mining ores (Fix Issue #183)\r\n\r\n* Sand stone & Granite support with randomize rocks\r\n\r\n* Expired mining check added\r\n\r\n* Stopping the action is not based from when you get the ore but now from when the ore depletes\r\n\r\n* Supports all message types from regular rocks to ores. \r\n\r\n* Pickaxes have a rate added to them since its based off the counter pulse anymore.","created_at":"2016-03-20T00:46:07Z","updated_at":"2016-03-23T23:02:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c42a4d491764ad1c27e2f683d2b1a1b80123349b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apollo-rsps/apollo/pulls/297/commits","review_comments_url":"https://api.github.com/repos/apollo-rsps/apollo/pulls/297/comments","review_comment_url":"https://api.github.com/repos/apollo-rsps/apollo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apollo-rsps/apollo/issues/297/comments","statuses_url":"https://api.github.com/repos/apollo-rsps/apollo/statuses/6f8dd170885ea1e62b9affadfc953aa4ade1f050","head":{"label":"WizardJesse1:master","ref":"master","sha":"6f8dd170885ea1e62b9affadfc953aa4ade1f050","user":{"login":"WizardJesse1","id":720173,"avatar_url":"https://avatars.githubusercontent.com/u/720173?v=3","gravatar_id":"","url":"https://api.github.com/users/WizardJesse1","html_url":"https://github.com/WizardJesse1","followers_url":"https://api.github.com/users/WizardJesse1/followers","following_url":"https://api.github.com/users/WizardJesse1/following{/other_user}","gists_url":"https://api.github.com/users/WizardJesse1/gists{/gist_id}","starred_url":"https://api.github.com/users/WizardJesse1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WizardJesse1/subscriptions","organizations_url":"https://api.github.com/users/WizardJesse1/orgs","repos_url":"https://api.github.com/users/WizardJesse1/repos","events_url":"https://api.github.com/users/WizardJesse1/events{/privacy}","received_events_url":"https://api.github.com/users/WizardJesse1/received_events","type":"User","site_admin":false},"repo":{"id":54293811,"name":"apollo","full_name":"WizardJesse1/apollo","owner":{"login":"WizardJesse1","id":720173,"avatar_url":"https://avatars.githubusercontent.com/u/720173?v=3","gravatar_id":"","url":"https://api.github.com/users/WizardJesse1","html_url":"https://github.com/WizardJesse1","followers_url":"https://api.github.com/users/WizardJesse1/followers","following_url":"https://api.github.com/users/WizardJesse1/following{/other_user}","gists_url":"https://api.github.com/users/WizardJesse1/gists{/gist_id}","starred_url":"https://api.github.com/users/WizardJesse1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WizardJesse1/subscriptions","organizations_url":"https://api.github.com/users/WizardJesse1/orgs","repos_url":"https://api.github.com/users/WizardJesse1/repos","events_url":"https://api.github.com/users/WizardJesse1/events{/privacy}","received_events_url":"https://api.github.com/users/WizardJesse1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WizardJesse1/apollo","description":"An open-source Java game server suite designed to be lightweight, fast and secure.","fork":true,"url":"https://api.github.com/repos/WizardJesse1/apollo","forks_url":"https://api.github.com/repos/WizardJesse1/apollo/forks","keys_url":"https://api.github.com/repos/WizardJesse1/apollo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WizardJesse1/apollo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WizardJesse1/apollo/teams","hooks_url":"https://api.github.com/repos/WizardJesse1/apollo/hooks","issue_events_url":"https://api.github.com/repos/WizardJesse1/apollo/issues/events{/number}","events_url":"https://api.github.com/repos/WizardJesse1/apollo/events","assignees_url":"https://api.github.com/repos/WizardJesse1/apollo/assignees{/user}","branches_url":"https://api.github.com/repos/WizardJesse1/apollo/branches{/branch}","tags_url":"https://api.github.com/repos/WizardJesse1/apollo/tags","blobs_url":"https://api.github.com/repos/WizardJesse1/apollo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WizardJesse1/apollo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WizardJesse1/apollo/git/refs{/sha}","trees_url":"https://api.github.com/repos/WizardJesse1/apollo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WizardJesse1/apollo/statuses/{sha}","languages_url":"https://api.github.com/repos/WizardJesse1/apollo/languages","stargazers_url":"https://api.github.com/repos/WizardJesse1/apollo/stargazers","contributors_url":"https://api.github.com/repos/WizardJesse1/apollo/contributors","subscribers_url":"https://api.github.com/repos/WizardJesse1/apollo/subscribers","subscription_url":"https://api.github.com/repos/WizardJesse1/apollo/subscription","commits_url":"https://api.github.com/repos/WizardJesse1/apollo/commits{/sha}","git_commits_url":"https://api.github.com/repos/WizardJesse1/apollo/git/commits{/sha}","comments_url":"https://api.github.com/repos/WizardJesse1/apollo/comments{/number}","issue_comment_url":"https://api.github.com/repos/WizardJesse1/apollo/issues/comments{/number}","contents_url":"https://api.github.com/repos/WizardJesse1/apollo/contents/{+path}","compare_url":"https://api.github.com/repos/WizardJesse1/apollo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WizardJesse1/apollo/merges","archive_url":"https://api.github.com/repos/WizardJesse1/apollo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WizardJesse1/apollo/downloads","issues_url":"https://api.github.com/repos/WizardJesse1/apollo/issues{/number}","pulls_url":"https://api.github.com/repos/WizardJesse1/apollo/pulls{/number}","milestones_url":"https://api.github.com/repos/WizardJesse1/apollo/milestones{/number}","notifications_url":"https://api.github.com/repos/WizardJesse1/apollo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WizardJesse1/apollo/labels{/name}","releases_url":"https://api.github.com/repos/WizardJesse1/apollo/releases{/id}","deployments_url":"https://api.github.com/repos/WizardJesse1/apollo/deployments","created_at":"2016-03-20T00:42:31Z","updated_at":"2016-03-20T00:42:32Z","pushed_at":"2016-03-20T00:44:20Z","git_url":"git://github.com/WizardJesse1/apollo.git","ssh_url":"git@github.com:WizardJesse1/apollo.git","clone_url":"https://github.com/WizardJesse1/apollo.git","svn_url":"https://github.com/WizardJesse1/apollo","homepage":"","size":2823,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"apollo-rsps:master","ref":"master","sha":"b7a57fa9736c14298a2f43735adf5efd95d28e86","user":{"login":"apollo-rsps","id":299924,"avatar_url":"https://avatars.githubusercontent.com/u/299924?v=3","gravatar_id":"","url":"https://api.github.com/users/apollo-rsps","html_url":"https://github.com/apollo-rsps","followers_url":"https://api.github.com/users/apollo-rsps/followers","following_url":"https://api.github.com/users/apollo-rsps/following{/other_user}","gists_url":"https://api.github.com/users/apollo-rsps/gists{/gist_id}","starred_url":"https://api.github.com/users/apollo-rsps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apollo-rsps/subscriptions","organizations_url":"https://api.github.com/users/apollo-rsps/orgs","repos_url":"https://api.github.com/users/apollo-rsps/repos","events_url":"https://api.github.com/users/apollo-rsps/events{/privacy}","received_events_url":"https://api.github.com/users/apollo-rsps/received_events","type":"Organization","site_admin":false},"repo":{"id":709637,"name":"apollo","full_name":"apollo-rsps/apollo","owner":{"login":"apollo-rsps","id":299924,"avatar_url":"https://avatars.githubusercontent.com/u/299924?v=3","gravatar_id":"","url":"https://api.github.com/users/apollo-rsps","html_url":"https://github.com/apollo-rsps","followers_url":"https://api.github.com/users/apollo-rsps/followers","following_url":"https://api.github.com/users/apollo-rsps/following{/other_user}","gists_url":"https://api.github.com/users/apollo-rsps/gists{/gist_id}","starred_url":"https://api.github.com/users/apollo-rsps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apollo-rsps/subscriptions","organizations_url":"https://api.github.com/users/apollo-rsps/orgs","repos_url":"https://api.github.com/users/apollo-rsps/repos","events_url":"https://api.github.com/users/apollo-rsps/events{/privacy}","received_events_url":"https://api.github.com/users/apollo-rsps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apollo-rsps/apollo","description":"An open-source Java game server suite designed to be lightweight, fast and secure.","fork":false,"url":"https://api.github.com/repos/apollo-rsps/apollo","forks_url":"https://api.github.com/repos/apollo-rsps/apollo/forks","keys_url":"https://api.github.com/repos/apollo-rsps/apollo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apollo-rsps/apollo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apollo-rsps/apollo/teams","hooks_url":"https://api.github.com/repos/apollo-rsps/apollo/hooks","issue_events_url":"https://api.github.com/repos/apollo-rsps/apollo/issues/events{/number}","events_url":"https://api.github.com/repos/apollo-rsps/apollo/events","assignees_url":"https://api.github.com/repos/apollo-rsps/apollo/assignees{/user}","branches_url":"https://api.github.com/repos/apollo-rsps/apollo/branches{/branch}","tags_url":"https://api.github.com/repos/apollo-rsps/apollo/tags","blobs_url":"https://api.github.com/repos/apollo-rsps/apollo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apollo-rsps/apollo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apollo-rsps/apollo/git/refs{/sha}","trees_url":"https://api.github.com/repos/apollo-rsps/apollo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apollo-rsps/apollo/statuses/{sha}","languages_url":"https://api.github.com/repos/apollo-rsps/apollo/languages","stargazers_url":"https://api.github.com/repos/apollo-rsps/apollo/stargazers","contributors_url":"https://api.github.com/repos/apollo-rsps/apollo/contributors","subscribers_url":"https://api.github.com/repos/apollo-rsps/apollo/subscribers","subscription_url":"https://api.github.com/repos/apollo-rsps/apollo/subscription","commits_url":"https://api.github.com/repos/apollo-rsps/apollo/commits{/sha}","git_commits_url":"https://api.github.com/repos/apollo-rsps/apollo/git/commits{/sha}","comments_url":"https://api.github.com/repos/apollo-rsps/apollo/comments{/number}","issue_comment_url":"https://api.github.com/repos/apollo-rsps/apollo/issues/comments{/number}","contents_url":"https://api.github.com/repos/apollo-rsps/apollo/contents/{+path}","compare_url":"https://api.github.com/repos/apollo-rsps/apollo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apollo-rsps/apollo/merges","archive_url":"https://api.github.com/repos/apollo-rsps/apollo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apollo-rsps/apollo/downloads","issues_url":"https://api.github.com/repos/apollo-rsps/apollo/issues{/number}","pulls_url":"https://api.github.com/repos/apollo-rsps/apollo/pulls{/number}","milestones_url":"https://api.github.com/repos/apollo-rsps/apollo/milestones{/number}","notifications_url":"https://api.github.com/repos/apollo-rsps/apollo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apollo-rsps/apollo/labels{/name}","releases_url":"https://api.github.com/repos/apollo-rsps/apollo/releases{/id}","deployments_url":"https://api.github.com/repos/apollo-rsps/apollo/deployments","created_at":"2010-06-08T15:11:36Z","updated_at":"2016-03-23T22:46:31Z","pushed_at":"2016-03-23T18:46:25Z","git_url":"git://github.com/apollo-rsps/apollo.git","ssh_url":"git@github.com:apollo-rsps/apollo.git","clone_url":"https://github.com/apollo-rsps/apollo.git","svn_url":"https://github.com/apollo-rsps/apollo","homepage":"","size":18439,"stargazers_count":69,"watchers_count":69,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":64,"mirror_url":null,"open_issues_count":40,"forks":64,"open_issues":40,"watchers":69,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apollo-rsps/apollo/pulls/297"},"html":{"href":"https://github.com/apollo-rsps/apollo/pull/297"},"issue":{"href":"https://api.github.com/repos/apollo-rsps/apollo/issues/297"},"comments":{"href":"https://api.github.com/repos/apollo-rsps/apollo/issues/297/comments"},"review_comments":{"href":"https://api.github.com/repos/apollo-rsps/apollo/pulls/297/comments"},"review_comment":{"href":"https://api.github.com/repos/apollo-rsps/apollo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apollo-rsps/apollo/pulls/297/commits"},"statuses":{"href":"https://api.github.com/repos/apollo-rsps/apollo/statuses/6f8dd170885ea1e62b9affadfc953aa4ade1f050"}}}}