{"action":"created","comment":{"url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/pulls/comments/32507483","id":32507483,"diff_hunk":"@@ -325,6 +333,74 @@ function firstRun() {\n \tenhanceTooltips();\n }\n \n+function purchaseBadgeItems() {\n+  // Spends badge points (BP's) when joining a new game.\n+  // Dict contains the priority in terms of amount to buy (percentage of purchase). Probably a nicer way to do this...\n+  // First version of priorities is based on this badge point table 'usefulness' from reddit:\n+  // http://www.reddit.com/r/Steam/comments/39i0qc/psa_how_the_monster_game_works_an_indepth/\n+  var abilityItemPriority = [\n+    [ITEMS.GOLD_RAIN, 50],\n+    [ITEMS.CRIPPLE_MONSTER, 10],\n+    [ITEMS.CRIPPLE_SPAWNER, 8],\n+    [ITEMS.MAXIMIZE_ELEMENT, 7],\n+    [ITEMS.CRIT, 5],\n+    [ITEMS.TREASURE, 5],\n+    [ITEMS.REVIVE, 5],\n+    [ITEMS.STEAL_HEALTH, 4],\n+    [ITEMS.GOD_MODE, 3],\n+    [ITEMS.REFLECT_DAMAGE, 2],\n+    [ITEMS.PUMPED_UP, 1]\n+    //[ITEMS.THROW_MONEY, 0]\n+    // Only go up to the second-last item. Throw money\n+    // should never be used, but it's here just in case.\n+  ];\n+\n+  // Being extra paranoid about spending, since abilities update slowly.\n+  var safeToBuy = true;\n+  var intervalID = window.setInterval( function() {\n+    var queueLen = g_Minigame.CurrentScene().m_rgPurchaseItemsQueue.length;","path":"autoPlay.user.js","position":58,"original_position":58,"commit_id":"c3d05c4922c9f17c9d3ffe4e7d87e6ff8b3c154b","original_commit_id":"c3d05c4922c9f17c9d3ffe4e7d87e6ff8b3c154b","user":{"login":"xPaw","id":613331,"avatar_url":"https://avatars.githubusercontent.com/u/613331?v=3","gravatar_id":"","url":"https://api.github.com/users/xPaw","html_url":"https://github.com/xPaw","followers_url":"https://api.github.com/users/xPaw/followers","following_url":"https://api.github.com/users/xPaw/following{/other_user}","gists_url":"https://api.github.com/users/xPaw/gists{/gist_id}","starred_url":"https://api.github.com/users/xPaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xPaw/subscriptions","organizations_url":"https://api.github.com/users/xPaw/orgs","repos_url":"https://api.github.com/users/xPaw/repos","events_url":"https://api.github.com/users/xPaw/events{/privacy}","received_events_url":"https://api.github.com/users/xPaw/received_events","type":"User","site_admin":false},"body":"use `s()`","created_at":"2015-06-16T10:14:31Z","updated_at":"2015-06-16T10:14:31Z","html_url":"https://github.com/SteamDatabase/steamSummerMinigame/pull/215#discussion_r32507483","pull_request_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/pulls/215","_links":{"self":{"href":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/pulls/comments/32507483"},"html":{"href":"https://github.com/SteamDatabase/steamSummerMinigame/pull/215#discussion_r32507483"},"pull_request":{"href":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/pulls/215"}}},"pull_request":{"url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/pulls/215","id":37779026,"html_url":"https://github.com/SteamDatabase/steamSummerMinigame/pull/215","diff_url":"https://github.com/SteamDatabase/steamSummerMinigame/pull/215.diff","patch_url":"https://github.com/SteamDatabase/steamSummerMinigame/pull/215.patch","issue_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/issues/215","number":215,"state":"open","locked":false,"title":"Merge changes made by JCKE for issue #79","user":{"login":"SavageCore","id":171312,"avatar_url":"https://avatars.githubusercontent.com/u/171312?v=3","gravatar_id":"","url":"https://api.github.com/users/SavageCore","html_url":"https://github.com/SavageCore","followers_url":"https://api.github.com/users/SavageCore/followers","following_url":"https://api.github.com/users/SavageCore/following{/other_user}","gists_url":"https://api.github.com/users/SavageCore/gists{/gist_id}","starred_url":"https://api.github.com/users/SavageCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SavageCore/subscriptions","organizations_url":"https://api.github.com/users/SavageCore/orgs","repos_url":"https://api.github.com/users/SavageCore/repos","events_url":"https://api.github.com/users/SavageCore/events{/privacy}","received_events_url":"https://api.github.com/users/SavageCore/received_events","type":"User","site_admin":false},"body":"Had some free time so decided to create this PR. Changes untested, will test them at reset today...","created_at":"2015-06-16T10:12:57Z","updated_at":"2015-06-16T10:14:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3f7ead5fa58b0bc7587944afc4950a28a9265b4d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/pulls/215/commits","review_comments_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/pulls/215/comments","review_comment_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/issues/215/comments","statuses_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/statuses/c3d05c4922c9f17c9d3ffe4e7d87e6ff8b3c154b","head":{"label":"SavageCore:master","ref":"master","sha":"c3d05c4922c9f17c9d3ffe4e7d87e6ff8b3c154b","user":{"login":"SavageCore","id":171312,"avatar_url":"https://avatars.githubusercontent.com/u/171312?v=3","gravatar_id":"","url":"https://api.github.com/users/SavageCore","html_url":"https://github.com/SavageCore","followers_url":"https://api.github.com/users/SavageCore/followers","following_url":"https://api.github.com/users/SavageCore/following{/other_user}","gists_url":"https://api.github.com/users/SavageCore/gists{/gist_id}","starred_url":"https://api.github.com/users/SavageCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SavageCore/subscriptions","organizations_url":"https://api.github.com/users/SavageCore/orgs","repos_url":"https://api.github.com/users/SavageCore/repos","events_url":"https://api.github.com/users/SavageCore/events{/privacy}","received_events_url":"https://api.github.com/users/SavageCore/received_events","type":"User","site_admin":false},"repo":{"id":37522302,"name":"steamSummerMinigame","full_name":"SavageCore/steamSummerMinigame","owner":{"login":"SavageCore","id":171312,"avatar_url":"https://avatars.githubusercontent.com/u/171312?v=3","gravatar_id":"","url":"https://api.github.com/users/SavageCore","html_url":"https://github.com/SavageCore","followers_url":"https://api.github.com/users/SavageCore/followers","following_url":"https://api.github.com/users/SavageCore/following{/other_user}","gists_url":"https://api.github.com/users/SavageCore/gists{/gist_id}","starred_url":"https://api.github.com/users/SavageCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SavageCore/subscriptions","organizations_url":"https://api.github.com/users/SavageCore/orgs","repos_url":"https://api.github.com/users/SavageCore/repos","events_url":"https://api.github.com/users/SavageCore/events{/privacy}","received_events_url":"https://api.github.com/users/SavageCore/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SavageCore/steamSummerMinigame","description":":godmode: Steam Summer Sale 2015 - Auto-play Optimizer w/ Auto-Click","fork":true,"url":"https://api.github.com/repos/SavageCore/steamSummerMinigame","forks_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/forks","keys_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/teams","hooks_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/hooks","issue_events_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/issues/events{/number}","events_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/events","assignees_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/assignees{/user}","branches_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/branches{/branch}","tags_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/tags","blobs_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/git/refs{/sha}","trees_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/statuses/{sha}","languages_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/languages","stargazers_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/stargazers","contributors_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/contributors","subscribers_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/subscribers","subscription_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/subscription","commits_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/commits{/sha}","git_commits_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/git/commits{/sha}","comments_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/comments{/number}","issue_comment_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/issues/comments{/number}","contents_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/contents/{+path}","compare_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/merges","archive_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/downloads","issues_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/issues{/number}","pulls_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/pulls{/number}","milestones_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/milestones{/number}","notifications_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/labels{/name}","releases_url":"https://api.github.com/repos/SavageCore/steamSummerMinigame/releases{/id}","created_at":"2015-06-16T09:59:06Z","updated_at":"2015-06-16T09:59:06Z","pushed_at":"2015-06-16T10:09:42Z","git_url":"git://github.com/SavageCore/steamSummerMinigame.git","ssh_url":"git@github.com:SavageCore/steamSummerMinigame.git","clone_url":"https://github.com/SavageCore/steamSummerMinigame.git","svn_url":"https://github.com/SavageCore/steamSummerMinigame","homepage":"","size":3347,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"SteamDatabase:master","ref":"master","sha":"8f9e3f44cae5237000bd903e612dee809adfd542","user":{"login":"SteamDatabase","id":3866120,"avatar_url":"https://avatars.githubusercontent.com/u/3866120?v=3","gravatar_id":"","url":"https://api.github.com/users/SteamDatabase","html_url":"https://github.com/SteamDatabase","followers_url":"https://api.github.com/users/SteamDatabase/followers","following_url":"https://api.github.com/users/SteamDatabase/following{/other_user}","gists_url":"https://api.github.com/users/SteamDatabase/gists{/gist_id}","starred_url":"https://api.github.com/users/SteamDatabase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteamDatabase/subscriptions","organizations_url":"https://api.github.com/users/SteamDatabase/orgs","repos_url":"https://api.github.com/users/SteamDatabase/repos","events_url":"https://api.github.com/users/SteamDatabase/events{/privacy}","received_events_url":"https://api.github.com/users/SteamDatabase/received_events","type":"Organization","site_admin":false},"repo":{"id":37333774,"name":"steamSummerMinigame","full_name":"SteamDatabase/steamSummerMinigame","owner":{"login":"SteamDatabase","id":3866120,"avatar_url":"https://avatars.githubusercontent.com/u/3866120?v=3","gravatar_id":"","url":"https://api.github.com/users/SteamDatabase","html_url":"https://github.com/SteamDatabase","followers_url":"https://api.github.com/users/SteamDatabase/followers","following_url":"https://api.github.com/users/SteamDatabase/following{/other_user}","gists_url":"https://api.github.com/users/SteamDatabase/gists{/gist_id}","starred_url":"https://api.github.com/users/SteamDatabase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteamDatabase/subscriptions","organizations_url":"https://api.github.com/users/SteamDatabase/orgs","repos_url":"https://api.github.com/users/SteamDatabase/repos","events_url":"https://api.github.com/users/SteamDatabase/events{/privacy}","received_events_url":"https://api.github.com/users/SteamDatabase/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SteamDatabase/steamSummerMinigame","description":":godmode: Steam Summer Sale 2015 - Auto-play Optimizer w/ Auto-Click","fork":false,"url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame","forks_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/forks","keys_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/teams","hooks_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/hooks","issue_events_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/issues/events{/number}","events_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/events","assignees_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/assignees{/user}","branches_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/branches{/branch}","tags_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/tags","blobs_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/git/refs{/sha}","trees_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/statuses/{sha}","languages_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/languages","stargazers_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/stargazers","contributors_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/contributors","subscribers_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/subscribers","subscription_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/subscription","commits_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/commits{/sha}","git_commits_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/git/commits{/sha}","comments_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/comments{/number}","issue_comment_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/issues/comments{/number}","contents_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/contents/{+path}","compare_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/merges","archive_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/downloads","issues_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/issues{/number}","pulls_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/pulls{/number}","milestones_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/milestones{/number}","notifications_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/labels{/name}","releases_url":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/releases{/id}","created_at":"2015-06-12T16:56:51Z","updated_at":"2015-06-16T09:14:10Z","pushed_at":"2015-06-16T10:12:57Z","git_url":"git://github.com/SteamDatabase/steamSummerMinigame.git","ssh_url":"git@github.com:SteamDatabase/steamSummerMinigame.git","clone_url":"https://github.com/SteamDatabase/steamSummerMinigame.git","svn_url":"https://github.com/SteamDatabase/steamSummerMinigame","homepage":"","size":3347,"stargazers_count":118,"watchers_count":118,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":80,"mirror_url":null,"open_issues_count":21,"forks":80,"open_issues":21,"watchers":118,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/pulls/215"},"html":{"href":"https://github.com/SteamDatabase/steamSummerMinigame/pull/215"},"issue":{"href":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/issues/215"},"comments":{"href":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/issues/215/comments"},"review_comments":{"href":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/pulls/215/comments"},"review_comment":{"href":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/pulls/215/commits"},"statuses":{"href":"https://api.github.com/repos/SteamDatabase/steamSummerMinigame/statuses/c3d05c4922c9f17c9d3ffe4e7d87e6ff8b3c154b"}}}}