{"action":"created","comment":{"url":"https://api.github.com/repos/alec-deason/shitty-rogue/pulls/comments/234875291","pull_request_review_id":176609350,"id":234875291,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDg3NTI5MQ==","diff_hunk":"@@ -239,13 +249,13 @@ level* make_level(long int map_seed) {\n     push_inventory(lvl->player, stick);\n \n     for (int i=0; i < lvl->mob_count-1; i++) {\n-        lvl->mobs[i]->x = rand()%(level_width-2) + 1;\n-        lvl->mobs[i]->y = rand()%(level_height-2) + 1;\n+        lvl->mobs[i]->x = choose(level_width - 1);\n+        lvl->mobs[i]->y = choose(level_height - 1);\n         lvl->mobs[i]->active = true;\n \n-        //TODO magic number\n-        switch (rand()%4) {\n-            case 0:\n+        //TODO magic number (not really, but still not good)","path":"level/level.c","position":75,"original_position":75,"commit_id":"9a5762c63da469f551ef8f913c8bd84424d9ddf7","original_commit_id":"9a5762c63da469f551ef8f913c8bd84424d9ddf7","user":{"login":"alec-deason","id":419770,"node_id":"MDQ6VXNlcjQxOTc3MA==","avatar_url":"https://avatars3.githubusercontent.com/u/419770?v=4","gravatar_id":"","url":"https://api.github.com/users/alec-deason","html_url":"https://github.com/alec-deason","followers_url":"https://api.github.com/users/alec-deason/followers","following_url":"https://api.github.com/users/alec-deason/following{/other_user}","gists_url":"https://api.github.com/users/alec-deason/gists{/gist_id}","starred_url":"https://api.github.com/users/alec-deason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alec-deason/subscriptions","organizations_url":"https://api.github.com/users/alec-deason/orgs","repos_url":"https://api.github.com/users/alec-deason/repos","events_url":"https://api.github.com/users/alec-deason/events{/privacy}","received_events_url":"https://api.github.com/users/alec-deason/received_events","type":"User","site_admin":false},"body":"What do you want? Eventually this will probably turn into:\r\n```\r\nmonster_idx = choose(num_monster_types) -1; // -1 because you made choose 1 indexed\r\nmonster_builder_functions[monster_idx](lvl);\r\n```\r\nBut unless you want to set that up, this is about as clear as it gets.","created_at":"2018-11-20T05:47:23Z","updated_at":"2018-11-20T05:57:33Z","html_url":"https://github.com/alec-deason/shitty-rogue/pull/30#discussion_r234875291","pull_request_url":"https://api.github.com/repos/alec-deason/shitty-rogue/pulls/30","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/alec-deason/shitty-rogue/pulls/comments/234875291"},"html":{"href":"https://github.com/alec-deason/shitty-rogue/pull/30#discussion_r234875291"},"pull_request":{"href":"https://api.github.com/repos/alec-deason/shitty-rogue/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/alec-deason/shitty-rogue/pulls/30","id":232191935,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMTkxOTM1","html_url":"https://github.com/alec-deason/shitty-rogue/pull/30","diff_url":"https://github.com/alec-deason/shitty-rogue/pull/30.diff","patch_url":"https://github.com/alec-deason/shitty-rogue/pull/30.patch","issue_url":"https://api.github.com/repos/alec-deason/shitty-rogue/issues/30","number":30,"state":"open","locked":false,"title":"Closed doors and \"dice rolling\" macros","user":{"login":"efexgee","id":817639,"node_id":"MDQ6VXNlcjgxNzYzOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/817639?v=4","gravatar_id":"","url":"https://api.github.com/users/efexgee","html_url":"https://github.com/efexgee","followers_url":"https://api.github.com/users/efexgee/followers","following_url":"https://api.github.com/users/efexgee/following{/other_user}","gists_url":"https://api.github.com/users/efexgee/gists{/gist_id}","starred_url":"https://api.github.com/users/efexgee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efexgee/subscriptions","organizations_url":"https://api.github.com/users/efexgee/orgs","repos_url":"https://api.github.com/users/efexgee/repos","events_url":"https://api.github.com/users/efexgee/events{/privacy}","received_events_url":"https://api.github.com/users/efexgee/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-20T04:52:42Z","updated_at":"2018-11-20T05:57:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58d293e9ec79e5df34b317c304f2df06d2dc6ce0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alec-deason/shitty-rogue/pulls/30/commits","review_comments_url":"https://api.github.com/repos/alec-deason/shitty-rogue/pulls/30/comments","review_comment_url":"https://api.github.com/repos/alec-deason/shitty-rogue/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alec-deason/shitty-rogue/issues/30/comments","statuses_url":"https://api.github.com/repos/alec-deason/shitty-rogue/statuses/9a5762c63da469f551ef8f913c8bd84424d9ddf7","head":{"label":"efexgee:closed-doors","ref":"closed-doors","sha":"9a5762c63da469f551ef8f913c8bd84424d9ddf7","user":{"login":"efexgee","id":817639,"node_id":"MDQ6VXNlcjgxNzYzOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/817639?v=4","gravatar_id":"","url":"https://api.github.com/users/efexgee","html_url":"https://github.com/efexgee","followers_url":"https://api.github.com/users/efexgee/followers","following_url":"https://api.github.com/users/efexgee/following{/other_user}","gists_url":"https://api.github.com/users/efexgee/gists{/gist_id}","starred_url":"https://api.github.com/users/efexgee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efexgee/subscriptions","organizations_url":"https://api.github.com/users/efexgee/orgs","repos_url":"https://api.github.com/users/efexgee/repos","events_url":"https://api.github.com/users/efexgee/events{/privacy}","received_events_url":"https://api.github.com/users/efexgee/received_events","type":"User","site_admin":false},"repo":{"id":150029243,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAwMjkyNDM=","name":"rouge","full_name":"efexgee/rouge","private":false,"owner":{"login":"efexgee","id":817639,"node_id":"MDQ6VXNlcjgxNzYzOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/817639?v=4","gravatar_id":"","url":"https://api.github.com/users/efexgee","html_url":"https://github.com/efexgee","followers_url":"https://api.github.com/users/efexgee/followers","following_url":"https://api.github.com/users/efexgee/following{/other_user}","gists_url":"https://api.github.com/users/efexgee/gists{/gist_id}","starred_url":"https://api.github.com/users/efexgee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efexgee/subscriptions","organizations_url":"https://api.github.com/users/efexgee/orgs","repos_url":"https://api.github.com/users/efexgee/repos","events_url":"https://api.github.com/users/efexgee/events{/privacy}","received_events_url":"https://api.github.com/users/efexgee/received_events","type":"User","site_admin":false},"html_url":"https://github.com/efexgee/rouge","description":null,"fork":true,"url":"https://api.github.com/repos/efexgee/rouge","forks_url":"https://api.github.com/repos/efexgee/rouge/forks","keys_url":"https://api.github.com/repos/efexgee/rouge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/efexgee/rouge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/efexgee/rouge/teams","hooks_url":"https://api.github.com/repos/efexgee/rouge/hooks","issue_events_url":"https://api.github.com/repos/efexgee/rouge/issues/events{/number}","events_url":"https://api.github.com/repos/efexgee/rouge/events","assignees_url":"https://api.github.com/repos/efexgee/rouge/assignees{/user}","branches_url":"https://api.github.com/repos/efexgee/rouge/branches{/branch}","tags_url":"https://api.github.com/repos/efexgee/rouge/tags","blobs_url":"https://api.github.com/repos/efexgee/rouge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/efexgee/rouge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/efexgee/rouge/git/refs{/sha}","trees_url":"https://api.github.com/repos/efexgee/rouge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/efexgee/rouge/statuses/{sha}","languages_url":"https://api.github.com/repos/efexgee/rouge/languages","stargazers_url":"https://api.github.com/repos/efexgee/rouge/stargazers","contributors_url":"https://api.github.com/repos/efexgee/rouge/contributors","subscribers_url":"https://api.github.com/repos/efexgee/rouge/subscribers","subscription_url":"https://api.github.com/repos/efexgee/rouge/subscription","commits_url":"https://api.github.com/repos/efexgee/rouge/commits{/sha}","git_commits_url":"https://api.github.com/repos/efexgee/rouge/git/commits{/sha}","comments_url":"https://api.github.com/repos/efexgee/rouge/comments{/number}","issue_comment_url":"https://api.github.com/repos/efexgee/rouge/issues/comments{/number}","contents_url":"https://api.github.com/repos/efexgee/rouge/contents/{+path}","compare_url":"https://api.github.com/repos/efexgee/rouge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/efexgee/rouge/merges","archive_url":"https://api.github.com/repos/efexgee/rouge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/efexgee/rouge/downloads","issues_url":"https://api.github.com/repos/efexgee/rouge/issues{/number}","pulls_url":"https://api.github.com/repos/efexgee/rouge/pulls{/number}","milestones_url":"https://api.github.com/repos/efexgee/rouge/milestones{/number}","notifications_url":"https://api.github.com/repos/efexgee/rouge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/efexgee/rouge/labels{/name}","releases_url":"https://api.github.com/repos/efexgee/rouge/releases{/id}","deployments_url":"https://api.github.com/repos/efexgee/rouge/deployments","created_at":"2018-09-23T22:01:29Z","updated_at":"2018-11-19T01:41:15Z","pushed_at":"2018-11-20T05:31:20Z","git_url":"git://github.com/efexgee/rouge.git","ssh_url":"git@github.com:efexgee/rouge.git","clone_url":"https://github.com/efexgee/rouge.git","svn_url":"https://github.com/efexgee/rouge","homepage":null,"size":571,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"alec-deason:master","ref":"master","sha":"0c761a3f0c649052af0be1af015ca1e9afaa9314","user":{"login":"alec-deason","id":419770,"node_id":"MDQ6VXNlcjQxOTc3MA==","avatar_url":"https://avatars3.githubusercontent.com/u/419770?v=4","gravatar_id":"","url":"https://api.github.com/users/alec-deason","html_url":"https://github.com/alec-deason","followers_url":"https://api.github.com/users/alec-deason/followers","following_url":"https://api.github.com/users/alec-deason/following{/other_user}","gists_url":"https://api.github.com/users/alec-deason/gists{/gist_id}","starred_url":"https://api.github.com/users/alec-deason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alec-deason/subscriptions","organizations_url":"https://api.github.com/users/alec-deason/orgs","repos_url":"https://api.github.com/users/alec-deason/repos","events_url":"https://api.github.com/users/alec-deason/events{/privacy}","received_events_url":"https://api.github.com/users/alec-deason/received_events","type":"User","site_admin":false},"repo":{"id":149949452,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk5NDk0NTI=","name":"shitty-rogue","full_name":"alec-deason/shitty-rogue","private":false,"owner":{"login":"alec-deason","id":419770,"node_id":"MDQ6VXNlcjQxOTc3MA==","avatar_url":"https://avatars3.githubusercontent.com/u/419770?v=4","gravatar_id":"","url":"https://api.github.com/users/alec-deason","html_url":"https://github.com/alec-deason","followers_url":"https://api.github.com/users/alec-deason/followers","following_url":"https://api.github.com/users/alec-deason/following{/other_user}","gists_url":"https://api.github.com/users/alec-deason/gists{/gist_id}","starred_url":"https://api.github.com/users/alec-deason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alec-deason/subscriptions","organizations_url":"https://api.github.com/users/alec-deason/orgs","repos_url":"https://api.github.com/users/alec-deason/repos","events_url":"https://api.github.com/users/alec-deason/events{/privacy}","received_events_url":"https://api.github.com/users/alec-deason/received_events","type":"User","site_admin":false},"html_url":"https://github.com/alec-deason/shitty-rogue","description":null,"fork":false,"url":"https://api.github.com/repos/alec-deason/shitty-rogue","forks_url":"https://api.github.com/repos/alec-deason/shitty-rogue/forks","keys_url":"https://api.github.com/repos/alec-deason/shitty-rogue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alec-deason/shitty-rogue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alec-deason/shitty-rogue/teams","hooks_url":"https://api.github.com/repos/alec-deason/shitty-rogue/hooks","issue_events_url":"https://api.github.com/repos/alec-deason/shitty-rogue/issues/events{/number}","events_url":"https://api.github.com/repos/alec-deason/shitty-rogue/events","assignees_url":"https://api.github.com/repos/alec-deason/shitty-rogue/assignees{/user}","branches_url":"https://api.github.com/repos/alec-deason/shitty-rogue/branches{/branch}","tags_url":"https://api.github.com/repos/alec-deason/shitty-rogue/tags","blobs_url":"https://api.github.com/repos/alec-deason/shitty-rogue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alec-deason/shitty-rogue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alec-deason/shitty-rogue/git/refs{/sha}","trees_url":"https://api.github.com/repos/alec-deason/shitty-rogue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alec-deason/shitty-rogue/statuses/{sha}","languages_url":"https://api.github.com/repos/alec-deason/shitty-rogue/languages","stargazers_url":"https://api.github.com/repos/alec-deason/shitty-rogue/stargazers","contributors_url":"https://api.github.com/repos/alec-deason/shitty-rogue/contributors","subscribers_url":"https://api.github.com/repos/alec-deason/shitty-rogue/subscribers","subscription_url":"https://api.github.com/repos/alec-deason/shitty-rogue/subscription","commits_url":"https://api.github.com/repos/alec-deason/shitty-rogue/commits{/sha}","git_commits_url":"https://api.github.com/repos/alec-deason/shitty-rogue/git/commits{/sha}","comments_url":"https://api.github.com/repos/alec-deason/shitty-rogue/comments{/number}","issue_comment_url":"https://api.github.com/repos/alec-deason/shitty-rogue/issues/comments{/number}","contents_url":"https://api.github.com/repos/alec-deason/shitty-rogue/contents/{+path}","compare_url":"https://api.github.com/repos/alec-deason/shitty-rogue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alec-deason/shitty-rogue/merges","archive_url":"https://api.github.com/repos/alec-deason/shitty-rogue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alec-deason/shitty-rogue/downloads","issues_url":"https://api.github.com/repos/alec-deason/shitty-rogue/issues{/number}","pulls_url":"https://api.github.com/repos/alec-deason/shitty-rogue/pulls{/number}","milestones_url":"https://api.github.com/repos/alec-deason/shitty-rogue/milestones{/number}","notifications_url":"https://api.github.com/repos/alec-deason/shitty-rogue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alec-deason/shitty-rogue/labels{/name}","releases_url":"https://api.github.com/repos/alec-deason/shitty-rogue/releases{/id}","deployments_url":"https://api.github.com/repos/alec-deason/shitty-rogue/deployments","created_at":"2018-09-23T05:01:13Z","updated_at":"2018-11-20T05:36:27Z","pushed_at":"2018-11-20T05:36:26Z","git_url":"git://github.com/alec-deason/shitty-rogue.git","ssh_url":"git@github.com:alec-deason/shitty-rogue.git","clone_url":"https://github.com/alec-deason/shitty-rogue.git","svn_url":"https://github.com/alec-deason/shitty-rogue","homepage":null,"size":567,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alec-deason/shitty-rogue/pulls/30"},"html":{"href":"https://github.com/alec-deason/shitty-rogue/pull/30"},"issue":{"href":"https://api.github.com/repos/alec-deason/shitty-rogue/issues/30"},"comments":{"href":"https://api.github.com/repos/alec-deason/shitty-rogue/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/alec-deason/shitty-rogue/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/alec-deason/shitty-rogue/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alec-deason/shitty-rogue/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/alec-deason/shitty-rogue/statuses/9a5762c63da469f551ef8f913c8bd84424d9ddf7"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"alec-deason"}}