{"action":"created","comment":{"url":"https://api.github.com/repos/jkoppel/project-ironfist/pulls/comments/64323321","id":64323321,"diff_hunk":"@@ -167,4 +205,51 @@ void UnloadCreatures() {\n \t\tif(gArmyNames[i] != NULL) free(gArmyNames[i]);\r\n \t\tif(gArmyNamesPlural[i] != NULL) free(gArmyNamesPlural[i]);\r\n \t}\r\n+}\r\n+\r\n+void __fastcall GetMonsterCost(int mon, int *const costs) {\r\n+\t\r\n+\tint i;\r\n+\tbool customed_sc = false;\r\n+\tfor (i = 0; i < 6; ++i)\r\n+\t{\r\n+\t\tif (gMonSecondaryCost[mon][i][0])\r","path":"ironfist/src/cpp/combat/creatures.cpp","position":78,"original_position":78,"commit_id":"8746ea374be4efe1c72b19065d432c7933b6c12b","original_commit_id":"8746ea374be4efe1c72b19065d432c7933b6c12b","user":{"login":"jkoppel","id":1279592,"avatar_url":"https://avatars.githubusercontent.com/u/1279592?v=3","gravatar_id":"","url":"https://api.github.com/users/jkoppel","html_url":"https://github.com/jkoppel","followers_url":"https://api.github.com/users/jkoppel/followers","following_url":"https://api.github.com/users/jkoppel/following{/other_user}","gists_url":"https://api.github.com/users/jkoppel/gists{/gist_id}","starred_url":"https://api.github.com/users/jkoppel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkoppel/subscriptions","organizations_url":"https://api.github.com/users/jkoppel/orgs","repos_url":"https://api.github.com/users/jkoppel/repos","events_url":"https://api.github.com/users/jkoppel/events{/privacy}","received_events_url":"https://api.github.com/users/jkoppel/received_events","type":"User","site_admin":false},"body":"Once you get rid of customed_sc, this entire if-else will be equivalent to \"costs[i] = gMonSecondaryCost[mon][i][1]\".","created_at":"2016-05-24T03:20:26Z","updated_at":"2016-05-24T03:20:26Z","html_url":"https://github.com/jkoppel/project-ironfist/pull/16#discussion_r64323321","pull_request_url":"https://api.github.com/repos/jkoppel/project-ironfist/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/jkoppel/project-ironfist/pulls/comments/64323321"},"html":{"href":"https://github.com/jkoppel/project-ironfist/pull/16#discussion_r64323321"},"pull_request":{"href":"https://api.github.com/repos/jkoppel/project-ironfist/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/jkoppel/project-ironfist/pulls/16","id":70997405,"html_url":"https://github.com/jkoppel/project-ironfist/pull/16","diff_url":"https://github.com/jkoppel/project-ironfist/pull/16.diff","patch_url":"https://github.com/jkoppel/project-ironfist/pull/16.patch","issue_url":"https://api.github.com/repos/jkoppel/project-ironfist/issues/16","number":16,"state":"open","locked":false,"title":"Hz creature secondary cost","user":{"login":"zhxsxuan","id":11697177,"avatar_url":"https://avatars.githubusercontent.com/u/11697177?v=3","gravatar_id":"","url":"https://api.github.com/users/zhxsxuan","html_url":"https://github.com/zhxsxuan","followers_url":"https://api.github.com/users/zhxsxuan/followers","following_url":"https://api.github.com/users/zhxsxuan/following{/other_user}","gists_url":"https://api.github.com/users/zhxsxuan/gists{/gist_id}","starred_url":"https://api.github.com/users/zhxsxuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhxsxuan/subscriptions","organizations_url":"https://api.github.com/users/zhxsxuan/orgs","repos_url":"https://api.github.com/users/zhxsxuan/repos","events_url":"https://api.github.com/users/zhxsxuan/events{/privacy}","received_events_url":"https://api.github.com/users/zhxsxuan/received_events","type":"User","site_admin":false},"body":"@jkoppel Ready for review.","created_at":"2016-05-23T02:17:49Z","updated_at":"2016-05-24T03:20:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51a474f2ee3822d832beb4a5cc9e37478268b929","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jkoppel/project-ironfist/pulls/16/commits","review_comments_url":"https://api.github.com/repos/jkoppel/project-ironfist/pulls/16/comments","review_comment_url":"https://api.github.com/repos/jkoppel/project-ironfist/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jkoppel/project-ironfist/issues/16/comments","statuses_url":"https://api.github.com/repos/jkoppel/project-ironfist/statuses/8746ea374be4efe1c72b19065d432c7933b6c12b","head":{"label":"jkoppel:hz-creature-secondary-cost","ref":"hz-creature-secondary-cost","sha":"8746ea374be4efe1c72b19065d432c7933b6c12b","user":{"login":"jkoppel","id":1279592,"avatar_url":"https://avatars.githubusercontent.com/u/1279592?v=3","gravatar_id":"","url":"https://api.github.com/users/jkoppel","html_url":"https://github.com/jkoppel","followers_url":"https://api.github.com/users/jkoppel/followers","following_url":"https://api.github.com/users/jkoppel/following{/other_user}","gists_url":"https://api.github.com/users/jkoppel/gists{/gist_id}","starred_url":"https://api.github.com/users/jkoppel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkoppel/subscriptions","organizations_url":"https://api.github.com/users/jkoppel/orgs","repos_url":"https://api.github.com/users/jkoppel/repos","events_url":"https://api.github.com/users/jkoppel/events{/privacy}","received_events_url":"https://api.github.com/users/jkoppel/received_events","type":"User","site_admin":false},"repo":{"id":24222392,"name":"project-ironfist","full_name":"jkoppel/project-ironfist","owner":{"login":"jkoppel","id":1279592,"avatar_url":"https://avatars.githubusercontent.com/u/1279592?v=3","gravatar_id":"","url":"https://api.github.com/users/jkoppel","html_url":"https://github.com/jkoppel","followers_url":"https://api.github.com/users/jkoppel/followers","following_url":"https://api.github.com/users/jkoppel/following{/other_user}","gists_url":"https://api.github.com/users/jkoppel/gists{/gist_id}","starred_url":"https://api.github.com/users/jkoppel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkoppel/subscriptions","organizations_url":"https://api.github.com/users/jkoppel/orgs","repos_url":"https://api.github.com/users/jkoppel/repos","events_url":"https://api.github.com/users/jkoppel/events{/privacy}","received_events_url":"https://api.github.com/users/jkoppel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jkoppel/project-ironfist","description":null,"fork":false,"url":"https://api.github.com/repos/jkoppel/project-ironfist","forks_url":"https://api.github.com/repos/jkoppel/project-ironfist/forks","keys_url":"https://api.github.com/repos/jkoppel/project-ironfist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jkoppel/project-ironfist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jkoppel/project-ironfist/teams","hooks_url":"https://api.github.com/repos/jkoppel/project-ironfist/hooks","issue_events_url":"https://api.github.com/repos/jkoppel/project-ironfist/issues/events{/number}","events_url":"https://api.github.com/repos/jkoppel/project-ironfist/events","assignees_url":"https://api.github.com/repos/jkoppel/project-ironfist/assignees{/user}","branches_url":"https://api.github.com/repos/jkoppel/project-ironfist/branches{/branch}","tags_url":"https://api.github.com/repos/jkoppel/project-ironfist/tags","blobs_url":"https://api.github.com/repos/jkoppel/project-ironfist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jkoppel/project-ironfist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jkoppel/project-ironfist/git/refs{/sha}","trees_url":"https://api.github.com/repos/jkoppel/project-ironfist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jkoppel/project-ironfist/statuses/{sha}","languages_url":"https://api.github.com/repos/jkoppel/project-ironfist/languages","stargazers_url":"https://api.github.com/repos/jkoppel/project-ironfist/stargazers","contributors_url":"https://api.github.com/repos/jkoppel/project-ironfist/contributors","subscribers_url":"https://api.github.com/repos/jkoppel/project-ironfist/subscribers","subscription_url":"https://api.github.com/repos/jkoppel/project-ironfist/subscription","commits_url":"https://api.github.com/repos/jkoppel/project-ironfist/commits{/sha}","git_commits_url":"https://api.github.com/repos/jkoppel/project-ironfist/git/commits{/sha}","comments_url":"https://api.github.com/repos/jkoppel/project-ironfist/comments{/number}","issue_comment_url":"https://api.github.com/repos/jkoppel/project-ironfist/issues/comments{/number}","contents_url":"https://api.github.com/repos/jkoppel/project-ironfist/contents/{+path}","compare_url":"https://api.github.com/repos/jkoppel/project-ironfist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jkoppel/project-ironfist/merges","archive_url":"https://api.github.com/repos/jkoppel/project-ironfist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jkoppel/project-ironfist/downloads","issues_url":"https://api.github.com/repos/jkoppel/project-ironfist/issues{/number}","pulls_url":"https://api.github.com/repos/jkoppel/project-ironfist/pulls{/number}","milestones_url":"https://api.github.com/repos/jkoppel/project-ironfist/milestones{/number}","notifications_url":"https://api.github.com/repos/jkoppel/project-ironfist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jkoppel/project-ironfist/labels{/name}","releases_url":"https://api.github.com/repos/jkoppel/project-ironfist/releases{/id}","deployments_url":"https://api.github.com/repos/jkoppel/project-ironfist/deployments","created_at":"2014-09-19T08:34:00Z","updated_at":"2016-05-03T03:31:14Z","pushed_at":"2016-05-23T02:23:35Z","git_url":"git://github.com/jkoppel/project-ironfist.git","ssh_url":"git@github.com:jkoppel/project-ironfist.git","clone_url":"https://github.com/jkoppel/project-ironfist.git","svn_url":"https://github.com/jkoppel/project-ironfist","homepage":null,"size":107876,"stargazers_count":4,"watchers_count":4,"language":"Assembly","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":4,"default_branch":"master"}},"base":{"label":"jkoppel:master","ref":"master","sha":"a68472e0d3320d6271e62b6053b21dfdd414ab30","user":{"login":"jkoppel","id":1279592,"avatar_url":"https://avatars.githubusercontent.com/u/1279592?v=3","gravatar_id":"","url":"https://api.github.com/users/jkoppel","html_url":"https://github.com/jkoppel","followers_url":"https://api.github.com/users/jkoppel/followers","following_url":"https://api.github.com/users/jkoppel/following{/other_user}","gists_url":"https://api.github.com/users/jkoppel/gists{/gist_id}","starred_url":"https://api.github.com/users/jkoppel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkoppel/subscriptions","organizations_url":"https://api.github.com/users/jkoppel/orgs","repos_url":"https://api.github.com/users/jkoppel/repos","events_url":"https://api.github.com/users/jkoppel/events{/privacy}","received_events_url":"https://api.github.com/users/jkoppel/received_events","type":"User","site_admin":false},"repo":{"id":24222392,"name":"project-ironfist","full_name":"jkoppel/project-ironfist","owner":{"login":"jkoppel","id":1279592,"avatar_url":"https://avatars.githubusercontent.com/u/1279592?v=3","gravatar_id":"","url":"https://api.github.com/users/jkoppel","html_url":"https://github.com/jkoppel","followers_url":"https://api.github.com/users/jkoppel/followers","following_url":"https://api.github.com/users/jkoppel/following{/other_user}","gists_url":"https://api.github.com/users/jkoppel/gists{/gist_id}","starred_url":"https://api.github.com/users/jkoppel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkoppel/subscriptions","organizations_url":"https://api.github.com/users/jkoppel/orgs","repos_url":"https://api.github.com/users/jkoppel/repos","events_url":"https://api.github.com/users/jkoppel/events{/privacy}","received_events_url":"https://api.github.com/users/jkoppel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jkoppel/project-ironfist","description":null,"fork":false,"url":"https://api.github.com/repos/jkoppel/project-ironfist","forks_url":"https://api.github.com/repos/jkoppel/project-ironfist/forks","keys_url":"https://api.github.com/repos/jkoppel/project-ironfist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jkoppel/project-ironfist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jkoppel/project-ironfist/teams","hooks_url":"https://api.github.com/repos/jkoppel/project-ironfist/hooks","issue_events_url":"https://api.github.com/repos/jkoppel/project-ironfist/issues/events{/number}","events_url":"https://api.github.com/repos/jkoppel/project-ironfist/events","assignees_url":"https://api.github.com/repos/jkoppel/project-ironfist/assignees{/user}","branches_url":"https://api.github.com/repos/jkoppel/project-ironfist/branches{/branch}","tags_url":"https://api.github.com/repos/jkoppel/project-ironfist/tags","blobs_url":"https://api.github.com/repos/jkoppel/project-ironfist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jkoppel/project-ironfist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jkoppel/project-ironfist/git/refs{/sha}","trees_url":"https://api.github.com/repos/jkoppel/project-ironfist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jkoppel/project-ironfist/statuses/{sha}","languages_url":"https://api.github.com/repos/jkoppel/project-ironfist/languages","stargazers_url":"https://api.github.com/repos/jkoppel/project-ironfist/stargazers","contributors_url":"https://api.github.com/repos/jkoppel/project-ironfist/contributors","subscribers_url":"https://api.github.com/repos/jkoppel/project-ironfist/subscribers","subscription_url":"https://api.github.com/repos/jkoppel/project-ironfist/subscription","commits_url":"https://api.github.com/repos/jkoppel/project-ironfist/commits{/sha}","git_commits_url":"https://api.github.com/repos/jkoppel/project-ironfist/git/commits{/sha}","comments_url":"https://api.github.com/repos/jkoppel/project-ironfist/comments{/number}","issue_comment_url":"https://api.github.com/repos/jkoppel/project-ironfist/issues/comments{/number}","contents_url":"https://api.github.com/repos/jkoppel/project-ironfist/contents/{+path}","compare_url":"https://api.github.com/repos/jkoppel/project-ironfist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jkoppel/project-ironfist/merges","archive_url":"https://api.github.com/repos/jkoppel/project-ironfist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jkoppel/project-ironfist/downloads","issues_url":"https://api.github.com/repos/jkoppel/project-ironfist/issues{/number}","pulls_url":"https://api.github.com/repos/jkoppel/project-ironfist/pulls{/number}","milestones_url":"https://api.github.com/repos/jkoppel/project-ironfist/milestones{/number}","notifications_url":"https://api.github.com/repos/jkoppel/project-ironfist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jkoppel/project-ironfist/labels{/name}","releases_url":"https://api.github.com/repos/jkoppel/project-ironfist/releases{/id}","deployments_url":"https://api.github.com/repos/jkoppel/project-ironfist/deployments","created_at":"2014-09-19T08:34:00Z","updated_at":"2016-05-03T03:31:14Z","pushed_at":"2016-05-23T02:23:35Z","git_url":"git://github.com/jkoppel/project-ironfist.git","ssh_url":"git@github.com:jkoppel/project-ironfist.git","clone_url":"https://github.com/jkoppel/project-ironfist.git","svn_url":"https://github.com/jkoppel/project-ironfist","homepage":null,"size":107876,"stargazers_count":4,"watchers_count":4,"language":"Assembly","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jkoppel/project-ironfist/pulls/16"},"html":{"href":"https://github.com/jkoppel/project-ironfist/pull/16"},"issue":{"href":"https://api.github.com/repos/jkoppel/project-ironfist/issues/16"},"comments":{"href":"https://api.github.com/repos/jkoppel/project-ironfist/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/jkoppel/project-ironfist/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/jkoppel/project-ironfist/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jkoppel/project-ironfist/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/jkoppel/project-ironfist/statuses/8746ea374be4efe1c72b19065d432c7933b6c12b"}}}}
{"actor":{"display_login":"jkoppel"}}