{"action":"closed","number":370,"pull_request":{"url":"https://api.github.com/repos/ozkriff/zemeroth/pulls/370","id":221604381,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNjA0Mzgx","html_url":"https://github.com/ozkriff/zemeroth/pull/370","diff_url":"https://github.com/ozkriff/zemeroth/pull/370.diff","patch_url":"https://github.com/ozkriff/zemeroth/pull/370.patch","issue_url":"https://api.github.com/repos/ozkriff/zemeroth/issues/370","number":370,"state":"closed","locked":false,"title":"Hit chances based on agents' stats","user":{"login":"ozkriff","id":662976,"node_id":"MDQ6VXNlcjY2Mjk3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/662976?v=4","gravatar_id":"","url":"https://api.github.com/users/ozkriff","html_url":"https://github.com/ozkriff","followers_url":"https://api.github.com/users/ozkriff/followers","following_url":"https://api.github.com/users/ozkriff/following{/other_user}","gists_url":"https://api.github.com/users/ozkriff/gists{/gist_id}","starred_url":"https://api.github.com/users/ozkriff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozkriff/subscriptions","organizations_url":"https://api.github.com/users/ozkriff/orgs","repos_url":"https://api.github.com/users/ozkriff/repos","events_url":"https://api.github.com/users/ozkriff/events{/privacy}","received_events_url":"https://api.github.com/users/ozkriff/received_events","type":"User","site_admin":false},"body":"This PR adds `attack_accuracy` and `dodge` stats to `Agent` component and uses these fields for some basic hit chances math.\r\n\r\nWounded agents become less accurate in attacks.\r\n\r\nAttacks with strength > 1 have additional hit chances - with reduced damage (each strength point gives 10% hit chance impovement).\r\n\r\n![demo](https://i.imgur.com/XyKRoa8.gif)\r\n\r\nRelated to https://github.com/ozkriff/zemeroth_assets/commit/69e6fb34cd95012eb25613a16f016ab199f0598c\r\n\r\nCloses #348 ","created_at":"2018-10-09T22:21:03Z","updated_at":"2018-10-10T04:48:41Z","closed_at":"2018-10-10T04:48:41Z","merged_at":"2018-10-10T04:48:41Z","merge_commit_sha":"e003bf8f438a75fa27dfd789a8eaa219c113e1e2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ozkriff/zemeroth/pulls/370/commits","review_comments_url":"https://api.github.com/repos/ozkriff/zemeroth/pulls/370/comments","review_comment_url":"https://api.github.com/repos/ozkriff/zemeroth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ozkriff/zemeroth/issues/370/comments","statuses_url":"https://api.github.com/repos/ozkriff/zemeroth/statuses/ca219c1ff4b84913be924d81c2d5eb2e0ebf2edb","head":{"label":"ozkriff:i348_hit_chance_math","ref":"i348_hit_chance_math","sha":"ca219c1ff4b84913be924d81c2d5eb2e0ebf2edb","user":{"login":"ozkriff","id":662976,"node_id":"MDQ6VXNlcjY2Mjk3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/662976?v=4","gravatar_id":"","url":"https://api.github.com/users/ozkriff","html_url":"https://github.com/ozkriff","followers_url":"https://api.github.com/users/ozkriff/followers","following_url":"https://api.github.com/users/ozkriff/following{/other_user}","gists_url":"https://api.github.com/users/ozkriff/gists{/gist_id}","starred_url":"https://api.github.com/users/ozkriff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozkriff/subscriptions","organizations_url":"https://api.github.com/users/ozkriff/orgs","repos_url":"https://api.github.com/users/ozkriff/repos","events_url":"https://api.github.com/users/ozkriff/events{/privacy}","received_events_url":"https://api.github.com/users/ozkriff/received_events","type":"User","site_admin":false},"repo":{"id":96989832,"node_id":"MDEwOlJlcG9zaXRvcnk5Njk4OTgzMg==","name":"zemeroth","full_name":"ozkriff/zemeroth","private":false,"owner":{"login":"ozkriff","id":662976,"node_id":"MDQ6VXNlcjY2Mjk3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/662976?v=4","gravatar_id":"","url":"https://api.github.com/users/ozkriff","html_url":"https://github.com/ozkriff","followers_url":"https://api.github.com/users/ozkriff/followers","following_url":"https://api.github.com/users/ozkriff/following{/other_user}","gists_url":"https://api.github.com/users/ozkriff/gists{/gist_id}","starred_url":"https://api.github.com/users/ozkriff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozkriff/subscriptions","organizations_url":"https://api.github.com/users/ozkriff/orgs","repos_url":"https://api.github.com/users/ozkriff/repos","events_url":"https://api.github.com/users/ozkriff/events{/privacy}","received_events_url":"https://api.github.com/users/ozkriff/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ozkriff/zemeroth","description":"Zemeroth is a 2D turn-based tactical game in Rust.","fork":false,"url":"https://api.github.com/repos/ozkriff/zemeroth","forks_url":"https://api.github.com/repos/ozkriff/zemeroth/forks","keys_url":"https://api.github.com/repos/ozkriff/zemeroth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ozkriff/zemeroth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ozkriff/zemeroth/teams","hooks_url":"https://api.github.com/repos/ozkriff/zemeroth/hooks","issue_events_url":"https://api.github.com/repos/ozkriff/zemeroth/issues/events{/number}","events_url":"https://api.github.com/repos/ozkriff/zemeroth/events","assignees_url":"https://api.github.com/repos/ozkriff/zemeroth/assignees{/user}","branches_url":"https://api.github.com/repos/ozkriff/zemeroth/branches{/branch}","tags_url":"https://api.github.com/repos/ozkriff/zemeroth/tags","blobs_url":"https://api.github.com/repos/ozkriff/zemeroth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ozkriff/zemeroth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ozkriff/zemeroth/git/refs{/sha}","trees_url":"https://api.github.com/repos/ozkriff/zemeroth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ozkriff/zemeroth/statuses/{sha}","languages_url":"https://api.github.com/repos/ozkriff/zemeroth/languages","stargazers_url":"https://api.github.com/repos/ozkriff/zemeroth/stargazers","contributors_url":"https://api.github.com/repos/ozkriff/zemeroth/contributors","subscribers_url":"https://api.github.com/repos/ozkriff/zemeroth/subscribers","subscription_url":"https://api.github.com/repos/ozkriff/zemeroth/subscription","commits_url":"https://api.github.com/repos/ozkriff/zemeroth/commits{/sha}","git_commits_url":"https://api.github.com/repos/ozkriff/zemeroth/git/commits{/sha}","comments_url":"https://api.github.com/repos/ozkriff/zemeroth/comments{/number}","issue_comment_url":"https://api.github.com/repos/ozkriff/zemeroth/issues/comments{/number}","contents_url":"https://api.github.com/repos/ozkriff/zemeroth/contents/{+path}","compare_url":"https://api.github.com/repos/ozkriff/zemeroth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ozkriff/zemeroth/merges","archive_url":"https://api.github.com/repos/ozkriff/zemeroth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ozkriff/zemeroth/downloads","issues_url":"https://api.github.com/repos/ozkriff/zemeroth/issues{/number}","pulls_url":"https://api.github.com/repos/ozkriff/zemeroth/pulls{/number}","milestones_url":"https://api.github.com/repos/ozkriff/zemeroth/milestones{/number}","notifications_url":"https://api.github.com/repos/ozkriff/zemeroth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ozkriff/zemeroth/labels{/name}","releases_url":"https://api.github.com/repos/ozkriff/zemeroth/releases{/id}","deployments_url":"https://api.github.com/repos/ozkriff/zemeroth/deployments","created_at":"2017-07-12T09:28:19Z","updated_at":"2018-10-09T18:40:28Z","pushed_at":"2018-10-10T04:48:41Z","git_url":"git://github.com/ozkriff/zemeroth.git","ssh_url":"git@github.com:ozkriff/zemeroth.git","clone_url":"https://github.com/ozkriff/zemeroth.git","svn_url":"https://github.com/ozkriff/zemeroth","homepage":"https://ozkriff.github.io","size":796,"stargazers_count":330,"watchers_count":330,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":71,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":16,"open_issues":71,"watchers":330,"default_branch":"master"}},"base":{"label":"ozkriff:master","ref":"master","sha":"8b3f1a26484944d717177ba11a3ade85133355e9","user":{"login":"ozkriff","id":662976,"node_id":"MDQ6VXNlcjY2Mjk3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/662976?v=4","gravatar_id":"","url":"https://api.github.com/users/ozkriff","html_url":"https://github.com/ozkriff","followers_url":"https://api.github.com/users/ozkriff/followers","following_url":"https://api.github.com/users/ozkriff/following{/other_user}","gists_url":"https://api.github.com/users/ozkriff/gists{/gist_id}","starred_url":"https://api.github.com/users/ozkriff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozkriff/subscriptions","organizations_url":"https://api.github.com/users/ozkriff/orgs","repos_url":"https://api.github.com/users/ozkriff/repos","events_url":"https://api.github.com/users/ozkriff/events{/privacy}","received_events_url":"https://api.github.com/users/ozkriff/received_events","type":"User","site_admin":false},"repo":{"id":96989832,"node_id":"MDEwOlJlcG9zaXRvcnk5Njk4OTgzMg==","name":"zemeroth","full_name":"ozkriff/zemeroth","private":false,"owner":{"login":"ozkriff","id":662976,"node_id":"MDQ6VXNlcjY2Mjk3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/662976?v=4","gravatar_id":"","url":"https://api.github.com/users/ozkriff","html_url":"https://github.com/ozkriff","followers_url":"https://api.github.com/users/ozkriff/followers","following_url":"https://api.github.com/users/ozkriff/following{/other_user}","gists_url":"https://api.github.com/users/ozkriff/gists{/gist_id}","starred_url":"https://api.github.com/users/ozkriff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozkriff/subscriptions","organizations_url":"https://api.github.com/users/ozkriff/orgs","repos_url":"https://api.github.com/users/ozkriff/repos","events_url":"https://api.github.com/users/ozkriff/events{/privacy}","received_events_url":"https://api.github.com/users/ozkriff/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ozkriff/zemeroth","description":"Zemeroth is a 2D turn-based tactical game in Rust.","fork":false,"url":"https://api.github.com/repos/ozkriff/zemeroth","forks_url":"https://api.github.com/repos/ozkriff/zemeroth/forks","keys_url":"https://api.github.com/repos/ozkriff/zemeroth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ozkriff/zemeroth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ozkriff/zemeroth/teams","hooks_url":"https://api.github.com/repos/ozkriff/zemeroth/hooks","issue_events_url":"https://api.github.com/repos/ozkriff/zemeroth/issues/events{/number}","events_url":"https://api.github.com/repos/ozkriff/zemeroth/events","assignees_url":"https://api.github.com/repos/ozkriff/zemeroth/assignees{/user}","branches_url":"https://api.github.com/repos/ozkriff/zemeroth/branches{/branch}","tags_url":"https://api.github.com/repos/ozkriff/zemeroth/tags","blobs_url":"https://api.github.com/repos/ozkriff/zemeroth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ozkriff/zemeroth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ozkriff/zemeroth/git/refs{/sha}","trees_url":"https://api.github.com/repos/ozkriff/zemeroth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ozkriff/zemeroth/statuses/{sha}","languages_url":"https://api.github.com/repos/ozkriff/zemeroth/languages","stargazers_url":"https://api.github.com/repos/ozkriff/zemeroth/stargazers","contributors_url":"https://api.github.com/repos/ozkriff/zemeroth/contributors","subscribers_url":"https://api.github.com/repos/ozkriff/zemeroth/subscribers","subscription_url":"https://api.github.com/repos/ozkriff/zemeroth/subscription","commits_url":"https://api.github.com/repos/ozkriff/zemeroth/commits{/sha}","git_commits_url":"https://api.github.com/repos/ozkriff/zemeroth/git/commits{/sha}","comments_url":"https://api.github.com/repos/ozkriff/zemeroth/comments{/number}","issue_comment_url":"https://api.github.com/repos/ozkriff/zemeroth/issues/comments{/number}","contents_url":"https://api.github.com/repos/ozkriff/zemeroth/contents/{+path}","compare_url":"https://api.github.com/repos/ozkriff/zemeroth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ozkriff/zemeroth/merges","archive_url":"https://api.github.com/repos/ozkriff/zemeroth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ozkriff/zemeroth/downloads","issues_url":"https://api.github.com/repos/ozkriff/zemeroth/issues{/number}","pulls_url":"https://api.github.com/repos/ozkriff/zemeroth/pulls{/number}","milestones_url":"https://api.github.com/repos/ozkriff/zemeroth/milestones{/number}","notifications_url":"https://api.github.com/repos/ozkriff/zemeroth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ozkriff/zemeroth/labels{/name}","releases_url":"https://api.github.com/repos/ozkriff/zemeroth/releases{/id}","deployments_url":"https://api.github.com/repos/ozkriff/zemeroth/deployments","created_at":"2017-07-12T09:28:19Z","updated_at":"2018-10-09T18:40:28Z","pushed_at":"2018-10-10T04:48:41Z","git_url":"git://github.com/ozkriff/zemeroth.git","ssh_url":"git@github.com:ozkriff/zemeroth.git","clone_url":"https://github.com/ozkriff/zemeroth.git","svn_url":"https://github.com/ozkriff/zemeroth","homepage":"https://ozkriff.github.io","size":796,"stargazers_count":330,"watchers_count":330,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":71,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":16,"open_issues":71,"watchers":330,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ozkriff/zemeroth/pulls/370"},"html":{"href":"https://github.com/ozkriff/zemeroth/pull/370"},"issue":{"href":"https://api.github.com/repos/ozkriff/zemeroth/issues/370"},"comments":{"href":"https://api.github.com/repos/ozkriff/zemeroth/issues/370/comments"},"review_comments":{"href":"https://api.github.com/repos/ozkriff/zemeroth/pulls/370/comments"},"review_comment":{"href":"https://api.github.com/repos/ozkriff/zemeroth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ozkriff/zemeroth/pulls/370/commits"},"statuses":{"href":"https://api.github.com/repos/ozkriff/zemeroth/statuses/ca219c1ff4b84913be924d81c2d5eb2e0ebf2edb"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"ozkriff","id":662976,"node_id":"MDQ6VXNlcjY2Mjk3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/662976?v=4","gravatar_id":"","url":"https://api.github.com/users/ozkriff","html_url":"https://github.com/ozkriff","followers_url":"https://api.github.com/users/ozkriff/followers","following_url":"https://api.github.com/users/ozkriff/following{/other_user}","gists_url":"https://api.github.com/users/ozkriff/gists{/gist_id}","starred_url":"https://api.github.com/users/ozkriff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozkriff/subscriptions","organizations_url":"https://api.github.com/users/ozkriff/orgs","repos_url":"https://api.github.com/users/ozkriff/repos","events_url":"https://api.github.com/users/ozkriff/events{/privacy}","received_events_url":"https://api.github.com/users/ozkriff/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":160,"deletions":24,"changed_files":8}}
{"actor":{"display_login":"ozkriff"}}