{"action":"created","comment":{"url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/pulls/comments/186082317","pull_request_review_id":117604606,"id":186082317,"diff_hunk":"@@ -146,6 +152,31 @@ while {true} do {\n \t\t};\n \t} forEach ciudades;\n \n+\tif(countSupplyCrates < 6) then\n+\t{\n+\t\t_cityDecreased = false;\n+\t\tfor \"_i\" from 0 to 4 do\n+\t\t{\n+\t\t\t_currentCity = selectRandom _cityInRange;\n+\t\t\t_types = [_currentCity, \"GOOD\"] call AS_fnc_getHighSupplies;\n+\t\t\tif(random 100 < 10) then {_types = [_currentCity, \"LOW\"] call AS_fnc_getHighSupplies};\n+\t\t\tif (((count _types) != 0) AND !_cityDecreased) then\n+\t\t\t{\n+\t\t\t\t_cityDecreased = true;\n+\t\t\t\t_type = selectRandom _types;","path":"AntistasiOfficial.Altis/resourcecheck.sqf","position":61,"original_position":61,"commit_id":"f4a0fe6958725c5bd29952e2b6924d4b391b7b1d","original_commit_id":"f4a0fe6958725c5bd29952e2b6924d4b391b7b1d","user":{"login":"StefArma","id":25053871,"avatar_url":"https://avatars2.githubusercontent.com/u/25053871?v=4","gravatar_id":"","url":"https://api.github.com/users/StefArma","html_url":"https://github.com/StefArma","followers_url":"https://api.github.com/users/StefArma/followers","following_url":"https://api.github.com/users/StefArma/following{/other_user}","gists_url":"https://api.github.com/users/StefArma/gists{/gist_id}","starred_url":"https://api.github.com/users/StefArma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefArma/subscriptions","organizations_url":"https://api.github.com/users/StefArma/orgs","repos_url":"https://api.github.com/users/StefArma/repos","events_url":"https://api.github.com/users/StefArma/events{/privacy}","received_events_url":"https://api.github.com/users/StefArma/received_events","type":"User","site_admin":false},"body":"_type return \"GOOD\" which is a string we can't pass into AS_fnc_changeCitySypply at line 169 below causing an error","created_at":"2018-05-04T13:31:07Z","updated_at":"2018-05-04T13:31:08Z","html_url":"https://github.com/A3Antistasi/antistasiofficial/pull/313#discussion_r186082317","pull_request_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/pulls/313","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/A3Antistasi/antistasiofficial/pulls/comments/186082317"},"html":{"href":"https://github.com/A3Antistasi/antistasiofficial/pull/313#discussion_r186082317"},"pull_request":{"href":"https://api.github.com/repos/A3Antistasi/antistasiofficial/pulls/313"}}},"pull_request":{"url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/pulls/313","id":180522725,"html_url":"https://github.com/A3Antistasi/antistasiofficial/pull/313","diff_url":"https://github.com/A3Antistasi/antistasiofficial/pull/313.diff","patch_url":"https://github.com/A3Antistasi/antistasiofficial/pull/313.patch","issue_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/issues/313","number":313,"state":"open","locked":false,"title":"Supply system by wurzel0701","user":{"login":"StefArma","id":25053871,"avatar_url":"https://avatars2.githubusercontent.com/u/25053871?v=4","gravatar_id":"","url":"https://api.github.com/users/StefArma","html_url":"https://github.com/StefArma","followers_url":"https://api.github.com/users/StefArma/followers","following_url":"https://api.github.com/users/StefArma/following{/other_user}","gists_url":"https://api.github.com/users/StefArma/gists{/gist_id}","starred_url":"https://api.github.com/users/StefArma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefArma/subscriptions","organizations_url":"https://api.github.com/users/StefArma/orgs","repos_url":"https://api.github.com/users/StefArma/repos","events_url":"https://api.github.com/users/StefArma/events{/privacy}","received_events_url":"https://api.github.com/users/StefArma/received_events","type":"User","site_admin":false},"body":"Thanks @wurzel0701 !!!\r\n\r\nReddit discussion: https://www.reddit.com/r/A3AntistasiOfficial/comments/8ejbt2/dynamic_supplies_system/\r\nFix #79 ","created_at":"2018-04-10T08:18:23Z","updated_at":"2018-05-04T13:31:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b1043aac168b3d038b02d0ec5e050d84ca7488c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":708632641,"url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/labels/help%20wanted","name":"help wanted","color":"33aa3f","default":true},{"id":922453982,"url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/labels/need%20testing","name":"need testing","color":"afafaf","default":false}],"milestone":{"url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/milestones/4","html_url":"https://github.com/A3Antistasi/antistasiofficial/milestone/4","labels_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/milestones/4/labels","id":3193142,"number":4,"title":"1.8.1","description":null,"creator":{"login":"StefArma","id":25053871,"avatar_url":"https://avatars2.githubusercontent.com/u/25053871?v=4","gravatar_id":"","url":"https://api.github.com/users/StefArma","html_url":"https://github.com/StefArma","followers_url":"https://api.github.com/users/StefArma/followers","following_url":"https://api.github.com/users/StefArma/following{/other_user}","gists_url":"https://api.github.com/users/StefArma/gists{/gist_id}","starred_url":"https://api.github.com/users/StefArma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefArma/subscriptions","organizations_url":"https://api.github.com/users/StefArma/orgs","repos_url":"https://api.github.com/users/StefArma/repos","events_url":"https://api.github.com/users/StefArma/events{/privacy}","received_events_url":"https://api.github.com/users/StefArma/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":3,"state":"open","created_at":"2018-03-16T12:19:39Z","updated_at":"2018-05-01T09:02:39Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/pulls/313/commits","review_comments_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/pulls/313/comments","review_comment_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/pulls/comments{/number}","comments_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/issues/313/comments","statuses_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/statuses/f4a0fe6958725c5bd29952e2b6924d4b391b7b1d","head":{"label":"wurzel0701:supplySystem","ref":"supplySystem","sha":"f4a0fe6958725c5bd29952e2b6924d4b391b7b1d","user":{"login":"wurzel0701","id":31988396,"avatar_url":"https://avatars2.githubusercontent.com/u/31988396?v=4","gravatar_id":"","url":"https://api.github.com/users/wurzel0701","html_url":"https://github.com/wurzel0701","followers_url":"https://api.github.com/users/wurzel0701/followers","following_url":"https://api.github.com/users/wurzel0701/following{/other_user}","gists_url":"https://api.github.com/users/wurzel0701/gists{/gist_id}","starred_url":"https://api.github.com/users/wurzel0701/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wurzel0701/subscriptions","organizations_url":"https://api.github.com/users/wurzel0701/orgs","repos_url":"https://api.github.com/users/wurzel0701/repos","events_url":"https://api.github.com/users/wurzel0701/events{/privacy}","received_events_url":"https://api.github.com/users/wurzel0701/received_events","type":"User","site_admin":false},"repo":{"id":128741176,"name":"antistasiofficial","full_name":"wurzel0701/antistasiofficial","owner":{"login":"wurzel0701","id":31988396,"avatar_url":"https://avatars2.githubusercontent.com/u/31988396?v=4","gravatar_id":"","url":"https://api.github.com/users/wurzel0701","html_url":"https://github.com/wurzel0701","followers_url":"https://api.github.com/users/wurzel0701/followers","following_url":"https://api.github.com/users/wurzel0701/following{/other_user}","gists_url":"https://api.github.com/users/wurzel0701/gists{/gist_id}","starred_url":"https://api.github.com/users/wurzel0701/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wurzel0701/subscriptions","organizations_url":"https://api.github.com/users/wurzel0701/orgs","repos_url":"https://api.github.com/users/wurzel0701/repos","events_url":"https://api.github.com/users/wurzel0701/events{/privacy}","received_events_url":"https://api.github.com/users/wurzel0701/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wurzel0701/antistasiofficial","description":"Fork of the Antistasi Official Community version","fork":true,"url":"https://api.github.com/repos/wurzel0701/antistasiofficial","forks_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/forks","keys_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/teams","hooks_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/hooks","issue_events_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/issues/events{/number}","events_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/events","assignees_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/assignees{/user}","branches_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/branches{/branch}","tags_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/tags","blobs_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/git/refs{/sha}","trees_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/statuses/{sha}","languages_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/languages","stargazers_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/stargazers","contributors_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/contributors","subscribers_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/subscribers","subscription_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/subscription","commits_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/commits{/sha}","git_commits_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/git/commits{/sha}","comments_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/comments{/number}","issue_comment_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/issues/comments{/number}","contents_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/contents/{+path}","compare_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/merges","archive_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/downloads","issues_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/issues{/number}","pulls_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/pulls{/number}","milestones_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/milestones{/number}","notifications_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/labels{/name}","releases_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/releases{/id}","deployments_url":"https://api.github.com/repos/wurzel0701/antistasiofficial/deployments","created_at":"2018-04-09T08:42:04Z","updated_at":"2018-04-30T10:17:58Z","pushed_at":"2018-05-04T13:24:38Z","git_url":"git://github.com/wurzel0701/antistasiofficial.git","ssh_url":"git@github.com:wurzel0701/antistasiofficial.git","clone_url":"https://github.com/wurzel0701/antistasiofficial.git","svn_url":"https://github.com/wurzel0701/antistasiofficial","homepage":"http://a3antistasi.enjin.com/","size":5219,"stargazers_count":0,"watchers_count":0,"language":"SQF","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"A3Antistasi:develop","ref":"develop","sha":"8266230838ad9ef6a24d8e7ccb851fe0f09bd59a","user":{"login":"A3Antistasi","id":32769859,"avatar_url":"https://avatars0.githubusercontent.com/u/32769859?v=4","gravatar_id":"","url":"https://api.github.com/users/A3Antistasi","html_url":"https://github.com/A3Antistasi","followers_url":"https://api.github.com/users/A3Antistasi/followers","following_url":"https://api.github.com/users/A3Antistasi/following{/other_user}","gists_url":"https://api.github.com/users/A3Antistasi/gists{/gist_id}","starred_url":"https://api.github.com/users/A3Antistasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/A3Antistasi/subscriptions","organizations_url":"https://api.github.com/users/A3Antistasi/orgs","repos_url":"https://api.github.com/users/A3Antistasi/repos","events_url":"https://api.github.com/users/A3Antistasi/events{/privacy}","received_events_url":"https://api.github.com/users/A3Antistasi/received_events","type":"Organization","site_admin":false},"repo":{"id":105546129,"name":"antistasiofficial","full_name":"A3Antistasi/antistasiofficial","owner":{"login":"A3Antistasi","id":32769859,"avatar_url":"https://avatars0.githubusercontent.com/u/32769859?v=4","gravatar_id":"","url":"https://api.github.com/users/A3Antistasi","html_url":"https://github.com/A3Antistasi","followers_url":"https://api.github.com/users/A3Antistasi/followers","following_url":"https://api.github.com/users/A3Antistasi/following{/other_user}","gists_url":"https://api.github.com/users/A3Antistasi/gists{/gist_id}","starred_url":"https://api.github.com/users/A3Antistasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/A3Antistasi/subscriptions","organizations_url":"https://api.github.com/users/A3Antistasi/orgs","repos_url":"https://api.github.com/users/A3Antistasi/repos","events_url":"https://api.github.com/users/A3Antistasi/events{/privacy}","received_events_url":"https://api.github.com/users/A3Antistasi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/A3Antistasi/antistasiofficial","description":"Antistasi Official Community version","fork":false,"url":"https://api.github.com/repos/A3Antistasi/antistasiofficial","forks_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/forks","keys_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/teams","hooks_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/hooks","issue_events_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/issues/events{/number}","events_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/events","assignees_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/assignees{/user}","branches_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/branches{/branch}","tags_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/tags","blobs_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/git/refs{/sha}","trees_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/statuses/{sha}","languages_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/languages","stargazers_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/stargazers","contributors_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/contributors","subscribers_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/subscribers","subscription_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/subscription","commits_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/commits{/sha}","git_commits_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/git/commits{/sha}","comments_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/comments{/number}","issue_comment_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/issues/comments{/number}","contents_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/contents/{+path}","compare_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/merges","archive_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/downloads","issues_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/issues{/number}","pulls_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/pulls{/number}","milestones_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/milestones{/number}","notifications_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/labels{/name}","releases_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/releases{/id}","deployments_url":"https://api.github.com/repos/A3Antistasi/antistasiofficial/deployments","created_at":"2017-10-02T14:45:30Z","updated_at":"2018-05-04T10:10:41Z","pushed_at":"2018-05-04T13:24:40Z","git_url":"git://github.com/A3Antistasi/antistasiofficial.git","ssh_url":"git@github.com:A3Antistasi/antistasiofficial.git","clone_url":"https://github.com/A3Antistasi/antistasiofficial.git","svn_url":"https://github.com/A3Antistasi/antistasiofficial","homepage":"http://a3antistasi.enjin.com/","size":5716,"stargazers_count":52,"watchers_count":52,"language":"SQF","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"archived":false,"open_issues_count":52,"license":null,"forks":33,"open_issues":52,"watchers":52,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/A3Antistasi/antistasiofficial/pulls/313"},"html":{"href":"https://github.com/A3Antistasi/antistasiofficial/pull/313"},"issue":{"href":"https://api.github.com/repos/A3Antistasi/antistasiofficial/issues/313"},"comments":{"href":"https://api.github.com/repos/A3Antistasi/antistasiofficial/issues/313/comments"},"review_comments":{"href":"https://api.github.com/repos/A3Antistasi/antistasiofficial/pulls/313/comments"},"review_comment":{"href":"https://api.github.com/repos/A3Antistasi/antistasiofficial/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/A3Antistasi/antistasiofficial/pulls/313/commits"},"statuses":{"href":"https://api.github.com/repos/A3Antistasi/antistasiofficial/statuses/f4a0fe6958725c5bd29952e2b6924d4b391b7b1d"}},"author_association":"OWNER"}}
{"actor":{"display_login":"StefArma"}}