{"action":"created","comment":{"url":"https://api.github.com/repos/acemod/ACE3/pulls/comments/37633281","id":37633281,"diff_hunk":"@@ -13,13 +13,8 @@\n  *\n  * Public: No\n  */\n-private [\"_effectIndex\"];\n-\n-_effectIndex = switch true do {\n-       case (_this <= 0.04): {0};\n-       case (_this <= 0.06): {1};\n-       case (_this <= 0.09): {2};\n-       default {3};\n-};\n-\n-_effectIndex\n+#include \"script_component.hpp\"\n+if (_this <= 0.04) exitWith {0};\n+if (_this <= 0.06)) exitWith {1};\n+if (_this <= 0.09) exitWith {2};\n+3","path":"addons/goggles/functions/fnc_getExplosionIndex.sqf","position":18,"original_position":18,"commit_id":"73fcbccc112edce0baceab08135a705108c51991","original_commit_id":"73fcbccc112edce0baceab08135a705108c51991","user":{"login":"SilentSpike","id":5459452,"avatar_url":"https://avatars.githubusercontent.com/u/5459452?v=3","gravatar_id":"","url":"https://api.github.com/users/SilentSpike","html_url":"https://github.com/SilentSpike","followers_url":"https://api.github.com/users/SilentSpike/followers","following_url":"https://api.github.com/users/SilentSpike/following{/other_user}","gists_url":"https://api.github.com/users/SilentSpike/gists{/gist_id}","starred_url":"https://api.github.com/users/SilentSpike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SilentSpike/subscriptions","organizations_url":"https://api.github.com/users/SilentSpike/orgs","repos_url":"https://api.github.com/users/SilentSpike/repos","events_url":"https://api.github.com/users/SilentSpike/events{/privacy}","received_events_url":"https://api.github.com/users/SilentSpike/received_events","type":"User","site_admin":false},"body":"This whole file can be replaced with:\r\n\r\n`floor (linearConversion [0, 0.1, _this, 0, 3, true]);`","created_at":"2015-08-21T13:27:27Z","updated_at":"2015-08-21T13:27:27Z","html_url":"https://github.com/acemod/ACE3/pull/2144#discussion_r37633281","pull_request_url":"https://api.github.com/repos/acemod/ACE3/pulls/2144","_links":{"self":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/comments/37633281"},"html":{"href":"https://github.com/acemod/ACE3/pull/2144#discussion_r37633281"},"pull_request":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/2144"}}},"pull_request":{"url":"https://api.github.com/repos/acemod/ACE3/pulls/2144","id":42394407,"html_url":"https://github.com/acemod/ACE3/pull/2144","diff_url":"https://github.com/acemod/ACE3/pull/2144.diff","patch_url":"https://github.com/acemod/ACE3/pull/2144.patch","issue_url":"https://api.github.com/repos/acemod/ACE3/issues/2144","number":2144,"state":"open","locked":false,"title":"Code cleanup of Goggles module","user":{"login":"jokoho48","id":7695985,"avatar_url":"https://avatars.githubusercontent.com/u/7695985?v=3","gravatar_id":"","url":"https://api.github.com/users/jokoho48","html_url":"https://github.com/jokoho48","followers_url":"https://api.github.com/users/jokoho48/followers","following_url":"https://api.github.com/users/jokoho48/following{/other_user}","gists_url":"https://api.github.com/users/jokoho48/gists{/gist_id}","starred_url":"https://api.github.com/users/jokoho48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jokoho48/subscriptions","organizations_url":"https://api.github.com/users/jokoho48/orgs","repos_url":"https://api.github.com/users/jokoho48/repos","events_url":"https://api.github.com/users/jokoho48/events{/privacy}","received_events_url":"https://api.github.com/users/jokoho48/received_events","type":"User","site_admin":false},"body":"Code cleanup of Gforces module.","created_at":"2015-08-13T20:21:00Z","updated_at":"2015-08-21T13:27:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6180b5fc1f6d1caa90b0f403ecf189f6ca2ad5e2","assignee":null,"milestone":{"url":"https://api.github.com/repos/acemod/ACE3/milestones/6","html_url":"https://github.com/acemod/ACE3/milestones/3.3.0","labels_url":"https://api.github.com/repos/acemod/ACE3/milestones/6/labels","id":1120680,"number":6,"title":"3.3.0","description":"","creator":{"login":"bux578","id":1235520,"avatar_url":"https://avatars.githubusercontent.com/u/1235520?v=3","gravatar_id":"","url":"https://api.github.com/users/bux578","html_url":"https://github.com/bux578","followers_url":"https://api.github.com/users/bux578/followers","following_url":"https://api.github.com/users/bux578/following{/other_user}","gists_url":"https://api.github.com/users/bux578/gists{/gist_id}","starred_url":"https://api.github.com/users/bux578/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bux578/subscriptions","organizations_url":"https://api.github.com/users/bux578/orgs","repos_url":"https://api.github.com/users/bux578/repos","events_url":"https://api.github.com/users/bux578/events{/privacy}","received_events_url":"https://api.github.com/users/bux578/received_events","type":"User","site_admin":false},"open_issues":118,"closed_issues":139,"state":"open","created_at":"2015-05-20T10:38:55Z","updated_at":"2015-08-21T12:53:45Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/acemod/ACE3/pulls/2144/commits","review_comments_url":"https://api.github.com/repos/acemod/ACE3/pulls/2144/comments","review_comment_url":"https://api.github.com/repos/acemod/ACE3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/acemod/ACE3/issues/2144/comments","statuses_url":"https://api.github.com/repos/acemod/ACE3/statuses/73fcbccc112edce0baceab08135a705108c51991","head":{"label":"jokoho48:codeCleanupGoggles","ref":"codeCleanupGoggles","sha":"73fcbccc112edce0baceab08135a705108c51991","user":{"login":"jokoho48","id":7695985,"avatar_url":"https://avatars.githubusercontent.com/u/7695985?v=3","gravatar_id":"","url":"https://api.github.com/users/jokoho48","html_url":"https://github.com/jokoho48","followers_url":"https://api.github.com/users/jokoho48/followers","following_url":"https://api.github.com/users/jokoho48/following{/other_user}","gists_url":"https://api.github.com/users/jokoho48/gists{/gist_id}","starred_url":"https://api.github.com/users/jokoho48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jokoho48/subscriptions","organizations_url":"https://api.github.com/users/jokoho48/orgs","repos_url":"https://api.github.com/users/jokoho48/repos","events_url":"https://api.github.com/users/jokoho48/events{/privacy}","received_events_url":"https://api.github.com/users/jokoho48/received_events","type":"User","site_admin":false},"repo":{"id":35878624,"name":"ACE3","full_name":"jokoho48/ACE3","owner":{"login":"jokoho48","id":7695985,"avatar_url":"https://avatars.githubusercontent.com/u/7695985?v=3","gravatar_id":"","url":"https://api.github.com/users/jokoho48","html_url":"https://github.com/jokoho48","followers_url":"https://api.github.com/users/jokoho48/followers","following_url":"https://api.github.com/users/jokoho48/following{/other_user}","gists_url":"https://api.github.com/users/jokoho48/gists{/gist_id}","starred_url":"https://api.github.com/users/jokoho48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jokoho48/subscriptions","organizations_url":"https://api.github.com/users/jokoho48/orgs","repos_url":"https://api.github.com/users/jokoho48/repos","events_url":"https://api.github.com/users/jokoho48/events{/privacy}","received_events_url":"https://api.github.com/users/jokoho48/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jokoho48/ACE3","description":"Open-source realism mod for Arma 3","fork":true,"url":"https://api.github.com/repos/jokoho48/ACE3","forks_url":"https://api.github.com/repos/jokoho48/ACE3/forks","keys_url":"https://api.github.com/repos/jokoho48/ACE3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jokoho48/ACE3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jokoho48/ACE3/teams","hooks_url":"https://api.github.com/repos/jokoho48/ACE3/hooks","issue_events_url":"https://api.github.com/repos/jokoho48/ACE3/issues/events{/number}","events_url":"https://api.github.com/repos/jokoho48/ACE3/events","assignees_url":"https://api.github.com/repos/jokoho48/ACE3/assignees{/user}","branches_url":"https://api.github.com/repos/jokoho48/ACE3/branches{/branch}","tags_url":"https://api.github.com/repos/jokoho48/ACE3/tags","blobs_url":"https://api.github.com/repos/jokoho48/ACE3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jokoho48/ACE3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jokoho48/ACE3/git/refs{/sha}","trees_url":"https://api.github.com/repos/jokoho48/ACE3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jokoho48/ACE3/statuses/{sha}","languages_url":"https://api.github.com/repos/jokoho48/ACE3/languages","stargazers_url":"https://api.github.com/repos/jokoho48/ACE3/stargazers","contributors_url":"https://api.github.com/repos/jokoho48/ACE3/contributors","subscribers_url":"https://api.github.com/repos/jokoho48/ACE3/subscribers","subscription_url":"https://api.github.com/repos/jokoho48/ACE3/subscription","commits_url":"https://api.github.com/repos/jokoho48/ACE3/commits{/sha}","git_commits_url":"https://api.github.com/repos/jokoho48/ACE3/git/commits{/sha}","comments_url":"https://api.github.com/repos/jokoho48/ACE3/comments{/number}","issue_comment_url":"https://api.github.com/repos/jokoho48/ACE3/issues/comments{/number}","contents_url":"https://api.github.com/repos/jokoho48/ACE3/contents/{+path}","compare_url":"https://api.github.com/repos/jokoho48/ACE3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jokoho48/ACE3/merges","archive_url":"https://api.github.com/repos/jokoho48/ACE3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jokoho48/ACE3/downloads","issues_url":"https://api.github.com/repos/jokoho48/ACE3/issues{/number}","pulls_url":"https://api.github.com/repos/jokoho48/ACE3/pulls{/number}","milestones_url":"https://api.github.com/repos/jokoho48/ACE3/milestones{/number}","notifications_url":"https://api.github.com/repos/jokoho48/ACE3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jokoho48/ACE3/labels{/name}","releases_url":"https://api.github.com/repos/jokoho48/ACE3/releases{/id}","created_at":"2015-05-19T11:42:04Z","updated_at":"2015-05-20T20:08:46Z","pushed_at":"2015-08-20T21:25:14Z","git_url":"git://github.com/jokoho48/ACE3.git","ssh_url":"git@github.com:jokoho48/ACE3.git","clone_url":"https://github.com/jokoho48/ACE3.git","svn_url":"https://github.com/jokoho48/ACE3","homepage":"http://ace3mod.com/","size":266809,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"acemod:master","ref":"master","sha":"7c60375105a94dee05e6249fbb2e272c04e11ee3","user":{"login":"acemod","id":11369030,"avatar_url":"https://avatars.githubusercontent.com/u/11369030?v=3","gravatar_id":"","url":"https://api.github.com/users/acemod","html_url":"https://github.com/acemod","followers_url":"https://api.github.com/users/acemod/followers","following_url":"https://api.github.com/users/acemod/following{/other_user}","gists_url":"https://api.github.com/users/acemod/gists{/gist_id}","starred_url":"https://api.github.com/users/acemod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acemod/subscriptions","organizations_url":"https://api.github.com/users/acemod/orgs","repos_url":"https://api.github.com/users/acemod/repos","events_url":"https://api.github.com/users/acemod/events{/privacy}","received_events_url":"https://api.github.com/users/acemod/received_events","type":"Organization","site_admin":false},"repo":{"id":29069174,"name":"ACE3","full_name":"acemod/ACE3","owner":{"login":"acemod","id":11369030,"avatar_url":"https://avatars.githubusercontent.com/u/11369030?v=3","gravatar_id":"","url":"https://api.github.com/users/acemod","html_url":"https://github.com/acemod","followers_url":"https://api.github.com/users/acemod/followers","following_url":"https://api.github.com/users/acemod/following{/other_user}","gists_url":"https://api.github.com/users/acemod/gists{/gist_id}","starred_url":"https://api.github.com/users/acemod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acemod/subscriptions","organizations_url":"https://api.github.com/users/acemod/orgs","repos_url":"https://api.github.com/users/acemod/repos","events_url":"https://api.github.com/users/acemod/events{/privacy}","received_events_url":"https://api.github.com/users/acemod/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/acemod/ACE3","description":"Open-source realism mod for Arma 3","fork":false,"url":"https://api.github.com/repos/acemod/ACE3","forks_url":"https://api.github.com/repos/acemod/ACE3/forks","keys_url":"https://api.github.com/repos/acemod/ACE3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acemod/ACE3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acemod/ACE3/teams","hooks_url":"https://api.github.com/repos/acemod/ACE3/hooks","issue_events_url":"https://api.github.com/repos/acemod/ACE3/issues/events{/number}","events_url":"https://api.github.com/repos/acemod/ACE3/events","assignees_url":"https://api.github.com/repos/acemod/ACE3/assignees{/user}","branches_url":"https://api.github.com/repos/acemod/ACE3/branches{/branch}","tags_url":"https://api.github.com/repos/acemod/ACE3/tags","blobs_url":"https://api.github.com/repos/acemod/ACE3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acemod/ACE3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acemod/ACE3/git/refs{/sha}","trees_url":"https://api.github.com/repos/acemod/ACE3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acemod/ACE3/statuses/{sha}","languages_url":"https://api.github.com/repos/acemod/ACE3/languages","stargazers_url":"https://api.github.com/repos/acemod/ACE3/stargazers","contributors_url":"https://api.github.com/repos/acemod/ACE3/contributors","subscribers_url":"https://api.github.com/repos/acemod/ACE3/subscribers","subscription_url":"https://api.github.com/repos/acemod/ACE3/subscription","commits_url":"https://api.github.com/repos/acemod/ACE3/commits{/sha}","git_commits_url":"https://api.github.com/repos/acemod/ACE3/git/commits{/sha}","comments_url":"https://api.github.com/repos/acemod/ACE3/comments{/number}","issue_comment_url":"https://api.github.com/repos/acemod/ACE3/issues/comments{/number}","contents_url":"https://api.github.com/repos/acemod/ACE3/contents/{+path}","compare_url":"https://api.github.com/repos/acemod/ACE3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acemod/ACE3/merges","archive_url":"https://api.github.com/repos/acemod/ACE3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acemod/ACE3/downloads","issues_url":"https://api.github.com/repos/acemod/ACE3/issues{/number}","pulls_url":"https://api.github.com/repos/acemod/ACE3/pulls{/number}","milestones_url":"https://api.github.com/repos/acemod/ACE3/milestones{/number}","notifications_url":"https://api.github.com/repos/acemod/ACE3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acemod/ACE3/labels{/name}","releases_url":"https://api.github.com/repos/acemod/ACE3/releases{/id}","created_at":"2015-01-10T19:59:12Z","updated_at":"2015-08-16T21:50:11Z","pushed_at":"2015-08-21T12:53:50Z","git_url":"git://github.com/acemod/ACE3.git","ssh_url":"git@github.com:acemod/ACE3.git","clone_url":"https://github.com/acemod/ACE3.git","svn_url":"https://github.com/acemod/ACE3","homepage":"http://ace3mod.com/","size":368361,"stargazers_count":287,"watchers_count":287,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":219,"mirror_url":null,"open_issues_count":275,"forks":219,"open_issues":275,"watchers":287,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/2144"},"html":{"href":"https://github.com/acemod/ACE3/pull/2144"},"issue":{"href":"https://api.github.com/repos/acemod/ACE3/issues/2144"},"comments":{"href":"https://api.github.com/repos/acemod/ACE3/issues/2144/comments"},"review_comments":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/2144/comments"},"review_comment":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/2144/commits"},"statuses":{"href":"https://api.github.com/repos/acemod/ACE3/statuses/73fcbccc112edce0baceab08135a705108c51991"}}}}