{"action":"created","comment":{"url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/pulls/comments/33882682","id":33882682,"diff_hunk":"@@ -16,12 +16,32 @@\n         <argument kind=\"STRING\">{\n     if(!instance_exists(healTarget) and readyToShoot)\n     {\n-        var bestTarget, bestTargetDist;\n+        var bestTarget, bestTargetDist, testx, testy;\n         bestTarget=noone;\n-        bestTargetDist=maxHealDistance;\n+        bestTargetDist = maxHealDistance;\n+        \n+        testx = round(owner.x) + cos(degtorad(owner.aimDirection))*owner.aimDistance;","path":"Source/gg2/Objects/Weapons/Medigun.events/User Event 1.xml","position":10,"original_position":10,"commit_id":"37d03b395029df7b3cf180340debdedd0091ed9d","original_commit_id":"37d03b395029df7b3cf180340debdedd0091ed9d","user":{"login":"Medo42","id":339540,"avatar_url":"https://avatars.githubusercontent.com/u/339540?v=3","gravatar_id":"","url":"https://api.github.com/users/Medo42","html_url":"https://github.com/Medo42","followers_url":"https://api.github.com/users/Medo42/followers","following_url":"https://api.github.com/users/Medo42/following{/other_user}","gists_url":"https://api.github.com/users/Medo42/gists{/gist_id}","starred_url":"https://api.github.com/users/Medo42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Medo42/subscriptions","organizations_url":"https://api.github.com/users/Medo42/orgs","repos_url":"https://api.github.com/users/Medo42/repos","events_url":"https://api.github.com/users/Medo42/events{/privacy}","received_events_url":"https://api.github.com/users/Medo42/received_events","type":"User","site_admin":false},"body":"Why round here? It doesn't make much of a difference, but I think it's wrong, and less code is better.","created_at":"2015-07-03T23:02:08Z","updated_at":"2015-07-03T23:02:08Z","html_url":"https://github.com/Medo42/Gang-Garrison-2/pull/272#discussion_r33882682","pull_request_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/pulls/272","_links":{"self":{"href":"https://api.github.com/repos/Medo42/Gang-Garrison-2/pulls/comments/33882682"},"html":{"href":"https://github.com/Medo42/Gang-Garrison-2/pull/272#discussion_r33882682"},"pull_request":{"href":"https://api.github.com/repos/Medo42/Gang-Garrison-2/pulls/272"}}},"pull_request":{"url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/pulls/272","id":38180953,"html_url":"https://github.com/Medo42/Gang-Garrison-2/pull/272","diff_url":"https://github.com/Medo42/Gang-Garrison-2/pull/272.diff","patch_url":"https://github.com/Medo42/Gang-Garrison-2/pull/272.patch","issue_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/issues/272","number":272,"state":"open","locked":false,"title":"Medigun heals the closest target to the mouse","user":{"login":"arctic5","id":4969181,"avatar_url":"https://avatars.githubusercontent.com/u/4969181?v=3","gravatar_id":"","url":"https://api.github.com/users/arctic5","html_url":"https://github.com/arctic5","followers_url":"https://api.github.com/users/arctic5/followers","following_url":"https://api.github.com/users/arctic5/following{/other_user}","gists_url":"https://api.github.com/users/arctic5/gists{/gist_id}","starred_url":"https://api.github.com/users/arctic5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arctic5/subscriptions","organizations_url":"https://api.github.com/users/arctic5/orgs","repos_url":"https://api.github.com/users/arctic5/repos","events_url":"https://api.github.com/users/arctic5/events{/privacy}","received_events_url":"https://api.github.com/users/arctic5/received_events","type":"User","site_admin":false},"body":"Bass wanted me to make a PR for this because he didn't know how to use git\r\nhttp://www.ganggarrison.com/forums/index.php?topic=36539.0","created_at":"2015-06-21T08:17:45Z","updated_at":"2015-07-03T23:02:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"56a10d47377acbb1ef92f5c32584e68a6575f4d0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/pulls/272/commits","review_comments_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/pulls/272/comments","review_comment_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/issues/272/comments","statuses_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/statuses/37d03b395029df7b3cf180340debdedd0091ed9d","head":{"label":"arctic5:cursorheal","ref":"cursorheal","sha":"37d03b395029df7b3cf180340debdedd0091ed9d","user":{"login":"arctic5","id":4969181,"avatar_url":"https://avatars.githubusercontent.com/u/4969181?v=3","gravatar_id":"","url":"https://api.github.com/users/arctic5","html_url":"https://github.com/arctic5","followers_url":"https://api.github.com/users/arctic5/followers","following_url":"https://api.github.com/users/arctic5/following{/other_user}","gists_url":"https://api.github.com/users/arctic5/gists{/gist_id}","starred_url":"https://api.github.com/users/arctic5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arctic5/subscriptions","organizations_url":"https://api.github.com/users/arctic5/orgs","repos_url":"https://api.github.com/users/arctic5/repos","events_url":"https://api.github.com/users/arctic5/events{/privacy}","received_events_url":"https://api.github.com/users/arctic5/received_events","type":"User","site_admin":false},"repo":{"id":11269222,"name":"Gang-Garrison-2","full_name":"arctic5/Gang-Garrison-2","owner":{"login":"arctic5","id":4969181,"avatar_url":"https://avatars.githubusercontent.com/u/4969181?v=3","gravatar_id":"","url":"https://api.github.com/users/arctic5","html_url":"https://github.com/arctic5","followers_url":"https://api.github.com/users/arctic5/followers","following_url":"https://api.github.com/users/arctic5/following{/other_user}","gists_url":"https://api.github.com/users/arctic5/gists{/gist_id}","starred_url":"https://api.github.com/users/arctic5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arctic5/subscriptions","organizations_url":"https://api.github.com/users/arctic5/orgs","repos_url":"https://api.github.com/users/arctic5/repos","events_url":"https://api.github.com/users/arctic5/events{/privacy}","received_events_url":"https://api.github.com/users/arctic5/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arctic5/Gang-Garrison-2","description":"  A Game Maker multiplayer shooter that takes Valve's Team Fortress 2 into the second dimension. Issues are tracked here at Github now: https://github.com/Gang-Garrison-2/Gang-Garrison-2/issues","fork":true,"url":"https://api.github.com/repos/arctic5/Gang-Garrison-2","forks_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/forks","keys_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/teams","hooks_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/hooks","issue_events_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/issues/events{/number}","events_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/events","assignees_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/assignees{/user}","branches_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/branches{/branch}","tags_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/tags","blobs_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/statuses/{sha}","languages_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/languages","stargazers_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/stargazers","contributors_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/contributors","subscribers_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/subscribers","subscription_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/subscription","commits_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/contents/{+path}","compare_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/merges","archive_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/downloads","issues_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/issues{/number}","pulls_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/pulls{/number}","milestones_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/milestones{/number}","notifications_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/labels{/name}","releases_url":"https://api.github.com/repos/arctic5/Gang-Garrison-2/releases{/id}","created_at":"2013-07-09T00:48:35Z","updated_at":"2015-05-03T08:01:14Z","pushed_at":"2015-06-29T23:01:35Z","git_url":"git://github.com/arctic5/Gang-Garrison-2.git","ssh_url":"git@github.com:arctic5/Gang-Garrison-2.git","clone_url":"https://github.com/arctic5/Gang-Garrison-2.git","svn_url":"https://github.com/arctic5/Gang-Garrison-2","homepage":"http://www.ganggarrison.com","size":57118,"stargazers_count":1,"watchers_count":1,"language":"Game Maker Language","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":1,"default_branch":"master"}},"base":{"label":"Medo42:master","ref":"master","sha":"4ead0d5c4fcf5cbeeb26a7494f79551d0b3bd793","user":{"login":"Medo42","id":339540,"avatar_url":"https://avatars.githubusercontent.com/u/339540?v=3","gravatar_id":"","url":"https://api.github.com/users/Medo42","html_url":"https://github.com/Medo42","followers_url":"https://api.github.com/users/Medo42/followers","following_url":"https://api.github.com/users/Medo42/following{/other_user}","gists_url":"https://api.github.com/users/Medo42/gists{/gist_id}","starred_url":"https://api.github.com/users/Medo42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Medo42/subscriptions","organizations_url":"https://api.github.com/users/Medo42/orgs","repos_url":"https://api.github.com/users/Medo42/repos","events_url":"https://api.github.com/users/Medo42/events{/privacy}","received_events_url":"https://api.github.com/users/Medo42/received_events","type":"User","site_admin":false},"repo":{"id":811170,"name":"Gang-Garrison-2","full_name":"Medo42/Gang-Garrison-2","owner":{"login":"Medo42","id":339540,"avatar_url":"https://avatars.githubusercontent.com/u/339540?v=3","gravatar_id":"","url":"https://api.github.com/users/Medo42","html_url":"https://github.com/Medo42","followers_url":"https://api.github.com/users/Medo42/followers","following_url":"https://api.github.com/users/Medo42/following{/other_user}","gists_url":"https://api.github.com/users/Medo42/gists{/gist_id}","starred_url":"https://api.github.com/users/Medo42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Medo42/subscriptions","organizations_url":"https://api.github.com/users/Medo42/orgs","repos_url":"https://api.github.com/users/Medo42/repos","events_url":"https://api.github.com/users/Medo42/events{/privacy}","received_events_url":"https://api.github.com/users/Medo42/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Medo42/Gang-Garrison-2","description":"A Game Maker multiplayer shooter that takes Valve's Team Fortress 2 into the second dimension. Issues are tracked here at Github now: https://github.com/Gang-Garrison-2/Gang-Garrison-2/issues","fork":false,"url":"https://api.github.com/repos/Medo42/Gang-Garrison-2","forks_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/forks","keys_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/teams","hooks_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/hooks","issue_events_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/issues/events{/number}","events_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/events","assignees_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/assignees{/user}","branches_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/branches{/branch}","tags_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/tags","blobs_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/statuses/{sha}","languages_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/languages","stargazers_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/stargazers","contributors_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/contributors","subscribers_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/subscribers","subscription_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/subscription","commits_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/contents/{+path}","compare_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/merges","archive_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/downloads","issues_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/issues{/number}","pulls_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/pulls{/number}","milestones_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/milestones{/number}","notifications_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/labels{/name}","releases_url":"https://api.github.com/repos/Medo42/Gang-Garrison-2/releases{/id}","created_at":"2010-08-01T21:47:20Z","updated_at":"2015-05-30T08:32:05Z","pushed_at":"2015-07-03T21:56:20Z","git_url":"git://github.com/Medo42/Gang-Garrison-2.git","ssh_url":"git@github.com:Medo42/Gang-Garrison-2.git","clone_url":"https://github.com/Medo42/Gang-Garrison-2.git","svn_url":"https://github.com/Medo42/Gang-Garrison-2","homepage":"http://www.ganggarrison.com","size":81947,"stargazers_count":50,"watchers_count":50,"language":"Game Maker Language","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":10,"forks":35,"open_issues":10,"watchers":50,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Medo42/Gang-Garrison-2/pulls/272"},"html":{"href":"https://github.com/Medo42/Gang-Garrison-2/pull/272"},"issue":{"href":"https://api.github.com/repos/Medo42/Gang-Garrison-2/issues/272"},"comments":{"href":"https://api.github.com/repos/Medo42/Gang-Garrison-2/issues/272/comments"},"review_comments":{"href":"https://api.github.com/repos/Medo42/Gang-Garrison-2/pulls/272/comments"},"review_comment":{"href":"https://api.github.com/repos/Medo42/Gang-Garrison-2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Medo42/Gang-Garrison-2/pulls/272/commits"},"statuses":{"href":"https://api.github.com/repos/Medo42/Gang-Garrison-2/statuses/37d03b395029df7b3cf180340debdedd0091ed9d"}}}}