{"action":"created","comment":{"url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/pulls/comments/100821079","pull_request_review_id":21536780,"id":100821079,"diff_hunk":"@@ -0,0 +1,139 @@\n+local BaseManager = import('/lua/ai/opai/basemanager.lua')\r\n+local SPAIFileName = '/lua/scenarioplatoonai.lua'\r\n+\r\n+local UEF = 2\r\n+\r\n+local Difficulty = ScenarioInfo.Options.Difficulty\r\n+\r\n+local UEFBase = BaseManager.CreateBaseManager()\r\n+\r\n+function UEFBaseAI()\r\n+\tUEFBase:Initialize(ArmyBrains[UEF], 'MainBase', 'M3_UEF_Base_Marker', 100, {MainBase = 100})\r\n+\tUEFBase:StartNonZeroBase({7, 5})\r\n+\tUEFBase:SetActive('AirScouting', true)\r\n+\tUEFBase:SetActive('LandScouting', true)\r\n+\r\n+\tUEFBaseLandAttacks()\r\n+\tUEFBaseAirAttacks()\r\n+\tUEFBaseTransportAttacks()\r\n+end\r\n+\r\n+function UEFBaseLandAttacks()\r\n+\tlocal opai = nil\r\n+\tlocal quantity = {}\r\n+\r\n+\tquantity = {6, 8, 10}\r\n+\topai = UEFBase:AddOpAI('BasicLandAttack', 'M3_BaseLandAttack1',\r\n+\t    {\r\n+\t        MasterPlatoonFunction = {SPAIFileName, 'PatrolThread'},\r\n+\t        PlatoonData = {\r\n+\t            PatrolChain = 'M3_BaseLandAttack_1'\r\n+\t        },\r\n+\t        Priority = 100,\r\n+\t    }\r\n+\t)\r\n+\topai:SetChildQuantity('LightTanks', quantity[Difficulty])\r\n+\r\n+\tquantity = {4, 5, 6}\r\n+\topai = UEFBase:AddOpAI('BasicLandAttack', 'M3_BaseLandAttack2',\r\n+\t    {\r\n+\t        MasterPlatoonFunction = {SPAIFileName, 'PatrolThread'},\r\n+\t        PlatoonData = {\r\n+\t            PatrolChain = 'M3_BaseLandAttack_1'\r\n+\t        },\r\n+\t        Priority = 100,\r\n+\t    }\r\n+\t)\r\n+\topai:SetChildQuantity('MobileAntiAir', quantity[Difficulty])\r\n+\r\n+\tquantity = {6, 8, 10}\r\n+\topai = UEFBase:AddOpAI('BasicLandAttack', 'M3_BaseLandAttack3',\r\n+\t    {\r\n+\t        MasterPlatoonFunction = {SPAIFileName, 'PatrolThread'},\r\n+\t        PlatoonData = {\r\n+\t            PatrolChain = 'M3_BaseLandAttack_2'\r\n+\t        },\r\n+\t        Priority = 100,\r\n+\t    }\r\n+\t)\r\n+\topai:SetChildQuantity({'LightBots', 'MobileAntiAir'}, quantity[Difficulty])\r\n+\r\n+\t-- Builds platoon of 3/4/5 Artillery\r\n+\tquantity = {3, 4, 5}\r\n+\topai = UEFOutpost:AddOpAI('BasicLandAttack', 'M1_OutpostLandAttack4',\r\n+\t    {\r\n+            MasterPlatoonFunction = {SPAIFileName, 'PatrolChainPickerThread'},\r\n+            PlatoonData = {\r\n+                PatrolChains = {'M3_BaseLandAttack_1', \r\n+                \t\t\t\t'M3_BaseLandAttack_2'},\r\n+            },\r\n+\t        Priority = 100,\r\n+\t    }\r\n+\t)\r\n+\topai:SetChildQuantity('LightArtillery', quantity[Difficulty])\r\n+end\r\n+\r\n+\r\n+function UEFBaseAirAttacks()\r\n+\r","path":"NMCA_001/NMCA_001_M3_AI.lua","position":78,"original_position":78,"commit_id":"77b2b9d71dcd23352b10fcb40ea4dd8f78438a8a","original_commit_id":"77b2b9d71dcd23352b10fcb40ea4dd8f78438a8a","user":{"login":"JJ173","id":17053495,"avatar_url":"https://avatars.githubusercontent.com/u/17053495?v=3","gravatar_id":"","url":"https://api.github.com/users/JJ173","html_url":"https://github.com/JJ173","followers_url":"https://api.github.com/users/JJ173/followers","following_url":"https://api.github.com/users/JJ173/following{/other_user}","gists_url":"https://api.github.com/users/JJ173/gists{/gist_id}","starred_url":"https://api.github.com/users/JJ173/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JJ173/subscriptions","organizations_url":"https://api.github.com/users/JJ173/orgs","repos_url":"https://api.github.com/users/JJ173/repos","events_url":"https://api.github.com/users/JJ173/events{/privacy}","received_events_url":"https://api.github.com/users/JJ173/received_events","type":"User","site_admin":false},"body":"Third AI is not finished yet, it'll be working soon.\r\n","created_at":"2017-02-13T15:38:59Z","updated_at":"2017-02-13T15:38:59Z","html_url":"https://github.com/Nomads-Project/NomadsCampaign/pull/1#discussion_r100821079","pull_request_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/pulls/comments/100821079"},"html":{"href":"https://github.com/Nomads-Project/NomadsCampaign/pull/1#discussion_r100821079"},"pull_request":{"href":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/pulls/1","id":105902233,"html_url":"https://github.com/Nomads-Project/NomadsCampaign/pull/1","diff_url":"https://github.com/Nomads-Project/NomadsCampaign/pull/1.diff","patch_url":"https://github.com/Nomads-Project/NomadsCampaign/pull/1.patch","issue_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/issues/1","number":1,"state":"open","locked":false,"title":"Latest Version of Nomad Mission 1","user":{"login":"JJ173","id":17053495,"avatar_url":"https://avatars.githubusercontent.com/u/17053495?v=3","gravatar_id":"","url":"https://api.github.com/users/JJ173","html_url":"https://github.com/JJ173","followers_url":"https://api.github.com/users/JJ173/followers","following_url":"https://api.github.com/users/JJ173/following{/other_user}","gists_url":"https://api.github.com/users/JJ173/gists{/gist_id}","starred_url":"https://api.github.com/users/JJ173/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JJ173/subscriptions","organizations_url":"https://api.github.com/users/JJ173/orgs","repos_url":"https://api.github.com/users/JJ173/repos","events_url":"https://api.github.com/users/JJ173/events{/privacy}","received_events_url":"https://api.github.com/users/JJ173/received_events","type":"User","site_admin":false},"body":"Here is the mission ready to be reviewed in it's current state. (Not finished yet). Still have some things to improve on before release. Waiting on reviews.\r\n","created_at":"2017-02-13T14:20:37Z","updated_at":"2017-02-13T15:38:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de153f390f7b1cc7ee087f8dd58c791f3daecca6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/issues/1/comments","statuses_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/statuses/77b2b9d71dcd23352b10fcb40ea4dd8f78438a8a","head":{"label":"Nomads-Project:JJ_Upload","ref":"JJ_Upload","sha":"77b2b9d71dcd23352b10fcb40ea4dd8f78438a8a","user":{"login":"Nomads-Project","id":25208892,"avatar_url":"https://avatars.githubusercontent.com/u/25208892?v=3","gravatar_id":"","url":"https://api.github.com/users/Nomads-Project","html_url":"https://github.com/Nomads-Project","followers_url":"https://api.github.com/users/Nomads-Project/followers","following_url":"https://api.github.com/users/Nomads-Project/following{/other_user}","gists_url":"https://api.github.com/users/Nomads-Project/gists{/gist_id}","starred_url":"https://api.github.com/users/Nomads-Project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nomads-Project/subscriptions","organizations_url":"https://api.github.com/users/Nomads-Project/orgs","repos_url":"https://api.github.com/users/Nomads-Project/repos","events_url":"https://api.github.com/users/Nomads-Project/events{/privacy}","received_events_url":"https://api.github.com/users/Nomads-Project/received_events","type":"Organization","site_admin":false},"repo":{"id":79379465,"name":"NomadsCampaign","full_name":"Nomads-Project/NomadsCampaign","owner":{"login":"Nomads-Project","id":25208892,"avatar_url":"https://avatars.githubusercontent.com/u/25208892?v=3","gravatar_id":"","url":"https://api.github.com/users/Nomads-Project","html_url":"https://github.com/Nomads-Project","followers_url":"https://api.github.com/users/Nomads-Project/followers","following_url":"https://api.github.com/users/Nomads-Project/following{/other_user}","gists_url":"https://api.github.com/users/Nomads-Project/gists{/gist_id}","starred_url":"https://api.github.com/users/Nomads-Project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nomads-Project/subscriptions","organizations_url":"https://api.github.com/users/Nomads-Project/orgs","repos_url":"https://api.github.com/users/Nomads-Project/repos","events_url":"https://api.github.com/users/Nomads-Project/events{/privacy}","received_events_url":"https://api.github.com/users/Nomads-Project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Nomads-Project/NomadsCampaign","description":"The Repo for the Nomads Campaign Project","fork":false,"url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign","forks_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/forks","keys_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/teams","hooks_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/hooks","issue_events_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/issues/events{/number}","events_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/events","assignees_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/assignees{/user}","branches_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/branches{/branch}","tags_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/tags","blobs_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/statuses/{sha}","languages_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/languages","stargazers_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/stargazers","contributors_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/contributors","subscribers_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/subscribers","subscription_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/subscription","commits_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/contents/{+path}","compare_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/merges","archive_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/downloads","issues_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/issues{/number}","pulls_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/pulls{/number}","milestones_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/milestones{/number}","notifications_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/labels{/name}","releases_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/releases{/id}","deployments_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/deployments","created_at":"2017-01-18T20:10:17Z","updated_at":"2017-02-04T16:36:52Z","pushed_at":"2017-02-13T14:20:38Z","git_url":"git://github.com/Nomads-Project/NomadsCampaign.git","ssh_url":"git@github.com:Nomads-Project/NomadsCampaign.git","clone_url":"https://github.com/Nomads-Project/NomadsCampaign.git","svn_url":"https://github.com/Nomads-Project/NomadsCampaign","homepage":null,"size":3691,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Nomads-Project:master","ref":"master","sha":"f0da9ca414e212958c04f6cb39e8bf0d7d4cf878","user":{"login":"Nomads-Project","id":25208892,"avatar_url":"https://avatars.githubusercontent.com/u/25208892?v=3","gravatar_id":"","url":"https://api.github.com/users/Nomads-Project","html_url":"https://github.com/Nomads-Project","followers_url":"https://api.github.com/users/Nomads-Project/followers","following_url":"https://api.github.com/users/Nomads-Project/following{/other_user}","gists_url":"https://api.github.com/users/Nomads-Project/gists{/gist_id}","starred_url":"https://api.github.com/users/Nomads-Project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nomads-Project/subscriptions","organizations_url":"https://api.github.com/users/Nomads-Project/orgs","repos_url":"https://api.github.com/users/Nomads-Project/repos","events_url":"https://api.github.com/users/Nomads-Project/events{/privacy}","received_events_url":"https://api.github.com/users/Nomads-Project/received_events","type":"Organization","site_admin":false},"repo":{"id":79379465,"name":"NomadsCampaign","full_name":"Nomads-Project/NomadsCampaign","owner":{"login":"Nomads-Project","id":25208892,"avatar_url":"https://avatars.githubusercontent.com/u/25208892?v=3","gravatar_id":"","url":"https://api.github.com/users/Nomads-Project","html_url":"https://github.com/Nomads-Project","followers_url":"https://api.github.com/users/Nomads-Project/followers","following_url":"https://api.github.com/users/Nomads-Project/following{/other_user}","gists_url":"https://api.github.com/users/Nomads-Project/gists{/gist_id}","starred_url":"https://api.github.com/users/Nomads-Project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nomads-Project/subscriptions","organizations_url":"https://api.github.com/users/Nomads-Project/orgs","repos_url":"https://api.github.com/users/Nomads-Project/repos","events_url":"https://api.github.com/users/Nomads-Project/events{/privacy}","received_events_url":"https://api.github.com/users/Nomads-Project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Nomads-Project/NomadsCampaign","description":"The Repo for the Nomads Campaign Project","fork":false,"url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign","forks_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/forks","keys_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/teams","hooks_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/hooks","issue_events_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/issues/events{/number}","events_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/events","assignees_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/assignees{/user}","branches_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/branches{/branch}","tags_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/tags","blobs_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/statuses/{sha}","languages_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/languages","stargazers_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/stargazers","contributors_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/contributors","subscribers_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/subscribers","subscription_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/subscription","commits_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/contents/{+path}","compare_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/merges","archive_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/downloads","issues_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/issues{/number}","pulls_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/pulls{/number}","milestones_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/milestones{/number}","notifications_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/labels{/name}","releases_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/releases{/id}","deployments_url":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/deployments","created_at":"2017-01-18T20:10:17Z","updated_at":"2017-02-04T16:36:52Z","pushed_at":"2017-02-13T14:20:38Z","git_url":"git://github.com/Nomads-Project/NomadsCampaign.git","ssh_url":"git@github.com:Nomads-Project/NomadsCampaign.git","clone_url":"https://github.com/Nomads-Project/NomadsCampaign.git","svn_url":"https://github.com/Nomads-Project/NomadsCampaign","homepage":null,"size":3691,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/pulls/1"},"html":{"href":"https://github.com/Nomads-Project/NomadsCampaign/pull/1"},"issue":{"href":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/issues/1"},"comments":{"href":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Nomads-Project/NomadsCampaign/statuses/77b2b9d71dcd23352b10fcb40ea4dd8f78438a8a"}}}}
{"actor":{"display_login":"JJ173"}}