{"action":"created","comment":{"url":"https://api.github.com/repos/Refactorio/RedMew/pulls/comments/239313167","pull_request_review_id":182065666,"id":239313167,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTMxMzE2Nw==","diff_hunk":"@@ -0,0 +1,169 @@\n+-- WORK IN PROGRESS\n+\n+-- Read /presets/biter_lane_wars/info.lua for map premise.\n+\n+--[[\n+TO DO:\n+- Game start GUI\n+- Setup teams\n+- Write market management code\n+- Set each force spawn point and enemy force spawn point\n+- Write a score board\n+- Write a starting GUI\n+- Set teams to spectators if more than 2 teams and 1 lose\n+- Add auto reset on game win condition\n+]]--\n+\n+local b = require 'map_gen.shared.builders'\n+local event = require 'utils.event'\n+local ScenarioInfo = require 'features.gui.info'\n+local wave_number = 0\n+\n+ScenarioInfo.set_map_name('Biter Lane Wars')\n+ScenarioInfo.set_map_description('Team lane defence map.')\n+ScenarioInfo.set_map_extra_info('- Send biters to your opponents using the market\\n- Earn more gold per wave by sending more biters\\n- Defend your smelter at all costs!')\n+\n+local function no_resources(_, _, world, tile)\n+    for _, e in ipairs(\n+        world.surface.find_entities_filtered(\n+            {type = 'resource', area = {{world.x, world.y}, {world.x + 1, world.y + 1}}}\n+        )\n+    ) do\n+        e.destroy()\n+    end\n+    for _, e in ipairs(\n+        world.surface.find_entities_filtered(\n+            {type = 'tree', area = {{world.x, world.y}, {world.x + 1, world.y + 1}}}\n+        )\n+    ) do\n+        e.destroy()\n+    end\n+    for _, e in ipairs(\n+        world.surface.find_entities_filtered(\n+            {type = 'simple-entity', area = {{world.x, world.y}, {world.x + 1, world.y + 1}}}\n+        )\n+    ) do\n+        e.destroy()\n+    end\n+    for _, e in ipairs(\n+        world.surface.find_entities_filtered(\n+            {type = 'cliff', area = {{world.x, world.y}, {world.x + 1, world.y + 1}}}\n+        )\n+    ) do\n+        e.destroy()\n+    end\n+\n+    return tile\n+end\n+\n+\n+-- MAP GENERATION\n+local grass_circle = b.circle(20)\n+grass_circle = b.change_tile(grass_circle, true, 'grass-1')\n+local sand_circle = b.circle(22)\n+sand_circle = b.change_tile(sand_circle, true, 'sand-1')\n+\n+local starting_area = b.any{\n+    grass_circle,\n+    sand_circle\n+}\n+\n+local lane_background = b.rectangle(50,200)\n+lane_background = b.change_tile(lane_background, true, 'grass-1')\n+local small_rectangle = b.rectangle(44,26)\n+local spawn_area = b.change_tile(small_rectangle, true, 'hazard-concrete-left')\n+local market_area = b.change_tile(small_rectangle, true, 'concrete')\n+local lane_container = b.any{\n+    b.translate(spawn_area, 0, 83),\n+    b.translate(market_area, 0, -83),\n+    lane_background\n+}\n+lane_container = b.translate(lane_container,0,-80)\n+local containers = b.circular_pattern(lane_container, 4, 220)   -- Change this to add more containers (and later teams)\n+\n+local sea = b.change_tile(b.full_shape, true, 'water')          -- turn the void to water\n+sea = b.fish(sea, 0.00125)\n+\n+local map = b.any{\n+    starting_area,\n+    containers,\n+    sea\n+}\n+map = b.apply_effect(map, no_resources)\n+\n+local function on_tick(event)","path":"map_gen/presets/biter_lane_wars/biter_lane_wars.lua","position":94,"original_position":94,"commit_id":"eb220b6849170aa1aabfb88aa867fe5ee69b973f","original_commit_id":"eb220b6849170aa1aabfb88aa867fe5ee69b973f","user":{"login":"stickler-ci[bot]","id":41810448,"node_id":"MDM6Qm90NDE4MTA0NDg=","avatar_url":"https://avatars3.githubusercontent.com/in/15299?v=4","gravatar_id":"","url":"https://api.github.com/users/stickler-ci%5Bbot%5D","html_url":"https://github.com/apps/stickler-ci","followers_url":"https://api.github.com/users/stickler-ci%5Bbot%5D/followers","following_url":"https://api.github.com/users/stickler-ci%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stickler-ci%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stickler-ci%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stickler-ci%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stickler-ci%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stickler-ci%5Bbot%5D/repos","events_url":"https://api.github.com/users/stickler-ci%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stickler-ci%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"(W212) unused argument 'event'\n(W431) shadowing upvalue 'event' on line 18","created_at":"2018-12-06T02:50:57Z","updated_at":"2018-12-06T02:50:57Z","html_url":"https://github.com/Refactorio/RedMew/pull/513#discussion_r239313167","pull_request_url":"https://api.github.com/repos/Refactorio/RedMew/pulls/513","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Refactorio/RedMew/pulls/comments/239313167"},"html":{"href":"https://github.com/Refactorio/RedMew/pull/513#discussion_r239313167"},"pull_request":{"href":"https://api.github.com/repos/Refactorio/RedMew/pulls/513"}}},"pull_request":{"url":"https://api.github.com/repos/Refactorio/RedMew/pulls/513","id":236180221,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2MTgwMjIx","html_url":"https://github.com/Refactorio/RedMew/pull/513","diff_url":"https://github.com/Refactorio/RedMew/pull/513.diff","patch_url":"https://github.com/Refactorio/RedMew/pull/513.patch","issue_url":"https://api.github.com/repos/Refactorio/RedMew/issues/513","number":513,"state":"open","locked":false,"title":"Added biter_lane_wars PVP files.","user":{"login":"Jayefuu","id":28716932,"node_id":"MDQ6VXNlcjI4NzE2OTMy","avatar_url":"https://avatars2.githubusercontent.com/u/28716932?v=4","gravatar_id":"","url":"https://api.github.com/users/Jayefuu","html_url":"https://github.com/Jayefuu","followers_url":"https://api.github.com/users/Jayefuu/followers","following_url":"https://api.github.com/users/Jayefuu/following{/other_user}","gists_url":"https://api.github.com/users/Jayefuu/gists{/gist_id}","starred_url":"https://api.github.com/users/Jayefuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jayefuu/subscriptions","organizations_url":"https://api.github.com/users/Jayefuu/orgs","repos_url":"https://api.github.com/users/Jayefuu/repos","events_url":"https://api.github.com/users/Jayefuu/events{/privacy}","received_events_url":"https://api.github.com/users/Jayefuu/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-05T13:48:02Z","updated_at":"2018-12-06T02:50:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da4b7407b3d7c04e47016ab91c1fe2c991cf24fa","assignee":null,"assignees":[],"requested_reviewers":[{"login":"plague006","id":10162554,"node_id":"MDQ6VXNlcjEwMTYyNTU0","avatar_url":"https://avatars2.githubusercontent.com/u/10162554?v=4","gravatar_id":"","url":"https://api.github.com/users/plague006","html_url":"https://github.com/plague006","followers_url":"https://api.github.com/users/plague006/followers","following_url":"https://api.github.com/users/plague006/following{/other_user}","gists_url":"https://api.github.com/users/plague006/gists{/gist_id}","starred_url":"https://api.github.com/users/plague006/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plague006/subscriptions","organizations_url":"https://api.github.com/users/plague006/orgs","repos_url":"https://api.github.com/users/plague006/repos","events_url":"https://api.github.com/users/plague006/events{/privacy}","received_events_url":"https://api.github.com/users/plague006/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Refactorio/RedMew/pulls/513/commits","review_comments_url":"https://api.github.com/repos/Refactorio/RedMew/pulls/513/comments","review_comment_url":"https://api.github.com/repos/Refactorio/RedMew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Refactorio/RedMew/issues/513/comments","statuses_url":"https://api.github.com/repos/Refactorio/RedMew/statuses/eb220b6849170aa1aabfb88aa867fe5ee69b973f","head":{"label":"Jayefuu:maps/biter_lane_wars","ref":"maps/biter_lane_wars","sha":"eb220b6849170aa1aabfb88aa867fe5ee69b973f","user":{"login":"Jayefuu","id":28716932,"node_id":"MDQ6VXNlcjI4NzE2OTMy","avatar_url":"https://avatars2.githubusercontent.com/u/28716932?v=4","gravatar_id":"","url":"https://api.github.com/users/Jayefuu","html_url":"https://github.com/Jayefuu","followers_url":"https://api.github.com/users/Jayefuu/followers","following_url":"https://api.github.com/users/Jayefuu/following{/other_user}","gists_url":"https://api.github.com/users/Jayefuu/gists{/gist_id}","starred_url":"https://api.github.com/users/Jayefuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jayefuu/subscriptions","organizations_url":"https://api.github.com/users/Jayefuu/orgs","repos_url":"https://api.github.com/users/Jayefuu/repos","events_url":"https://api.github.com/users/Jayefuu/events{/privacy}","received_events_url":"https://api.github.com/users/Jayefuu/received_events","type":"User","site_admin":false},"repo":{"id":156954875,"node_id":"MDEwOlJlcG9zaXRvcnkxNTY5NTQ4NzU=","name":"RedMew","full_name":"Jayefuu/RedMew","private":false,"owner":{"login":"Jayefuu","id":28716932,"node_id":"MDQ6VXNlcjI4NzE2OTMy","avatar_url":"https://avatars2.githubusercontent.com/u/28716932?v=4","gravatar_id":"","url":"https://api.github.com/users/Jayefuu","html_url":"https://github.com/Jayefuu","followers_url":"https://api.github.com/users/Jayefuu/followers","following_url":"https://api.github.com/users/Jayefuu/following{/other_user}","gists_url":"https://api.github.com/users/Jayefuu/gists{/gist_id}","starred_url":"https://api.github.com/users/Jayefuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jayefuu/subscriptions","organizations_url":"https://api.github.com/users/Jayefuu/orgs","repos_url":"https://api.github.com/users/Jayefuu/repos","events_url":"https://api.github.com/users/Jayefuu/events{/privacy}","received_events_url":"https://api.github.com/users/Jayefuu/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Jayefuu/RedMew","description":null,"fork":true,"url":"https://api.github.com/repos/Jayefuu/RedMew","forks_url":"https://api.github.com/repos/Jayefuu/RedMew/forks","keys_url":"https://api.github.com/repos/Jayefuu/RedMew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jayefuu/RedMew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jayefuu/RedMew/teams","hooks_url":"https://api.github.com/repos/Jayefuu/RedMew/hooks","issue_events_url":"https://api.github.com/repos/Jayefuu/RedMew/issues/events{/number}","events_url":"https://api.github.com/repos/Jayefuu/RedMew/events","assignees_url":"https://api.github.com/repos/Jayefuu/RedMew/assignees{/user}","branches_url":"https://api.github.com/repos/Jayefuu/RedMew/branches{/branch}","tags_url":"https://api.github.com/repos/Jayefuu/RedMew/tags","blobs_url":"https://api.github.com/repos/Jayefuu/RedMew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jayefuu/RedMew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jayefuu/RedMew/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jayefuu/RedMew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jayefuu/RedMew/statuses/{sha}","languages_url":"https://api.github.com/repos/Jayefuu/RedMew/languages","stargazers_url":"https://api.github.com/repos/Jayefuu/RedMew/stargazers","contributors_url":"https://api.github.com/repos/Jayefuu/RedMew/contributors","subscribers_url":"https://api.github.com/repos/Jayefuu/RedMew/subscribers","subscription_url":"https://api.github.com/repos/Jayefuu/RedMew/subscription","commits_url":"https://api.github.com/repos/Jayefuu/RedMew/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jayefuu/RedMew/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jayefuu/RedMew/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jayefuu/RedMew/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jayefuu/RedMew/contents/{+path}","compare_url":"https://api.github.com/repos/Jayefuu/RedMew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jayefuu/RedMew/merges","archive_url":"https://api.github.com/repos/Jayefuu/RedMew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jayefuu/RedMew/downloads","issues_url":"https://api.github.com/repos/Jayefuu/RedMew/issues{/number}","pulls_url":"https://api.github.com/repos/Jayefuu/RedMew/pulls{/number}","milestones_url":"https://api.github.com/repos/Jayefuu/RedMew/milestones{/number}","notifications_url":"https://api.github.com/repos/Jayefuu/RedMew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jayefuu/RedMew/labels{/name}","releases_url":"https://api.github.com/repos/Jayefuu/RedMew/releases{/id}","deployments_url":"https://api.github.com/repos/Jayefuu/RedMew/deployments","created_at":"2018-11-10T06:36:14Z","updated_at":"2018-11-18T13:08:22Z","pushed_at":"2018-12-06T02:50:45Z","git_url":"git://github.com/Jayefuu/RedMew.git","ssh_url":"git@github.com:Jayefuu/RedMew.git","clone_url":"https://github.com/Jayefuu/RedMew.git","svn_url":"https://github.com/Jayefuu/RedMew","homepage":null,"size":66104,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"Refactorio:maps/biter_lane_wars","ref":"maps/biter_lane_wars","sha":"c75bc2bb24d85ba07052b44d1776d160bd246cbc","user":{"login":"Refactorio","id":45128763,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MTI4NzYz","avatar_url":"https://avatars3.githubusercontent.com/u/45128763?v=4","gravatar_id":"","url":"https://api.github.com/users/Refactorio","html_url":"https://github.com/Refactorio","followers_url":"https://api.github.com/users/Refactorio/followers","following_url":"https://api.github.com/users/Refactorio/following{/other_user}","gists_url":"https://api.github.com/users/Refactorio/gists{/gist_id}","starred_url":"https://api.github.com/users/Refactorio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Refactorio/subscriptions","organizations_url":"https://api.github.com/users/Refactorio/orgs","repos_url":"https://api.github.com/users/Refactorio/repos","events_url":"https://api.github.com/users/Refactorio/events{/privacy}","received_events_url":"https://api.github.com/users/Refactorio/received_events","type":"Organization","site_admin":false},"repo":{"id":94204284,"node_id":"MDEwOlJlcG9zaXRvcnk5NDIwNDI4NA==","name":"RedMew","full_name":"Refactorio/RedMew","private":false,"owner":{"login":"Refactorio","id":45128763,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1MTI4NzYz","avatar_url":"https://avatars3.githubusercontent.com/u/45128763?v=4","gravatar_id":"","url":"https://api.github.com/users/Refactorio","html_url":"https://github.com/Refactorio","followers_url":"https://api.github.com/users/Refactorio/followers","following_url":"https://api.github.com/users/Refactorio/following{/other_user}","gists_url":"https://api.github.com/users/Refactorio/gists{/gist_id}","starred_url":"https://api.github.com/users/Refactorio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Refactorio/subscriptions","organizations_url":"https://api.github.com/users/Refactorio/orgs","repos_url":"https://api.github.com/users/Refactorio/repos","events_url":"https://api.github.com/users/Refactorio/events{/privacy}","received_events_url":"https://api.github.com/users/Refactorio/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Refactorio/RedMew","description":"The RedMew scenario code for Factorio.","fork":false,"url":"https://api.github.com/repos/Refactorio/RedMew","forks_url":"https://api.github.com/repos/Refactorio/RedMew/forks","keys_url":"https://api.github.com/repos/Refactorio/RedMew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Refactorio/RedMew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Refactorio/RedMew/teams","hooks_url":"https://api.github.com/repos/Refactorio/RedMew/hooks","issue_events_url":"https://api.github.com/repos/Refactorio/RedMew/issues/events{/number}","events_url":"https://api.github.com/repos/Refactorio/RedMew/events","assignees_url":"https://api.github.com/repos/Refactorio/RedMew/assignees{/user}","branches_url":"https://api.github.com/repos/Refactorio/RedMew/branches{/branch}","tags_url":"https://api.github.com/repos/Refactorio/RedMew/tags","blobs_url":"https://api.github.com/repos/Refactorio/RedMew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Refactorio/RedMew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Refactorio/RedMew/git/refs{/sha}","trees_url":"https://api.github.com/repos/Refactorio/RedMew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Refactorio/RedMew/statuses/{sha}","languages_url":"https://api.github.com/repos/Refactorio/RedMew/languages","stargazers_url":"https://api.github.com/repos/Refactorio/RedMew/stargazers","contributors_url":"https://api.github.com/repos/Refactorio/RedMew/contributors","subscribers_url":"https://api.github.com/repos/Refactorio/RedMew/subscribers","subscription_url":"https://api.github.com/repos/Refactorio/RedMew/subscription","commits_url":"https://api.github.com/repos/Refactorio/RedMew/commits{/sha}","git_commits_url":"https://api.github.com/repos/Refactorio/RedMew/git/commits{/sha}","comments_url":"https://api.github.com/repos/Refactorio/RedMew/comments{/number}","issue_comment_url":"https://api.github.com/repos/Refactorio/RedMew/issues/comments{/number}","contents_url":"https://api.github.com/repos/Refactorio/RedMew/contents/{+path}","compare_url":"https://api.github.com/repos/Refactorio/RedMew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Refactorio/RedMew/merges","archive_url":"https://api.github.com/repos/Refactorio/RedMew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Refactorio/RedMew/downloads","issues_url":"https://api.github.com/repos/Refactorio/RedMew/issues{/number}","pulls_url":"https://api.github.com/repos/Refactorio/RedMew/pulls{/number}","milestones_url":"https://api.github.com/repos/Refactorio/RedMew/milestones{/number}","notifications_url":"https://api.github.com/repos/Refactorio/RedMew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Refactorio/RedMew/labels{/name}","releases_url":"https://api.github.com/repos/Refactorio/RedMew/releases{/id}","deployments_url":"https://api.github.com/repos/Refactorio/RedMew/deployments","created_at":"2017-06-13T11:10:45Z","updated_at":"2018-12-05T08:49:33Z","pushed_at":"2018-12-06T02:50:47Z","git_url":"git://github.com/Refactorio/RedMew.git","ssh_url":"git@github.com:Refactorio/RedMew.git","clone_url":"https://github.com/Refactorio/RedMew.git","svn_url":"https://github.com/Refactorio/RedMew","homepage":"http://redmew.com","size":66102,"stargazers_count":67,"watchers_count":67,"language":"Lua","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"archived":false,"open_issues_count":54,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":27,"open_issues":54,"watchers":67,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Refactorio/RedMew/pulls/513"},"html":{"href":"https://github.com/Refactorio/RedMew/pull/513"},"issue":{"href":"https://api.github.com/repos/Refactorio/RedMew/issues/513"},"comments":{"href":"https://api.github.com/repos/Refactorio/RedMew/issues/513/comments"},"review_comments":{"href":"https://api.github.com/repos/Refactorio/RedMew/pulls/513/comments"},"review_comment":{"href":"https://api.github.com/repos/Refactorio/RedMew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Refactorio/RedMew/pulls/513/commits"},"statuses":{"href":"https://api.github.com/repos/Refactorio/RedMew/statuses/eb220b6849170aa1aabfb88aa867fe5ee69b973f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"stickler-ci"}}