{"action":"closed","number":282,"pull_request":{"url":"https://api.github.com/repos/angband/angband/pulls/282","id":9830593,"html_url":"https://github.com/angband/angband/pull/282","diff_url":"https://github.com/angband/angband/pull/282.diff","patch_url":"https://github.com/angband/angband/pull/282.patch","issue_url":"https://api.github.com/repos/angband/angband/issues/282","number":282,"state":"closed","locked":false,"title":"Display average spell damage when browsing","user":{"login":"ayrtonmassey","id":700278,"avatar_url":"https://avatars.githubusercontent.com/u/700278?v=3","gravatar_id":"","url":"https://api.github.com/users/ayrtonmassey","html_url":"https://github.com/ayrtonmassey","followers_url":"https://api.github.com/users/ayrtonmassey/followers","following_url":"https://api.github.com/users/ayrtonmassey/following{/other_user}","gists_url":"https://api.github.com/users/ayrtonmassey/gists{/gist_id}","starred_url":"https://api.github.com/users/ayrtonmassey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayrtonmassey/subscriptions","organizations_url":"https://api.github.com/users/ayrtonmassey/orgs","repos_url":"https://api.github.com/users/ayrtonmassey/repos","events_url":"https://api.github.com/users/ayrtonmassey/events{/privacy}","received_events_url":"https://api.github.com/users/ayrtonmassey/received_events","type":"User","site_admin":false},"body":"In response to ticket 379 ( http://trac.rephial.org/ticket/379 ):\r\n\r\n- Added the function damrollavg() to calculate the average value of a dice roll.\r\n- Appends the average damage/range/duration of each spell/prayer to the info given in get_spell_info(). The average value is displayed in brackets after the formula, e.g. for magic missile at level 1 the info is now:\r\n\r\n        dam 3d4 (7.5)\r\n\r\n    unfortunately if the numbers involved are too large the info is clipped by the edge of the window.\r\n\r\n(This was completed as part of my coursework so I won't be too offended if you choose not to include it)\r\n\r\n","created_at":"2013-11-10T20:45:29Z","updated_at":"2016-04-24T01:18:29Z","closed_at":"2016-04-24T01:18:29Z","merged_at":null,"merge_commit_sha":"3dd48627287f26451ea41fc52e858ab4f99719f8","assignee":{"login":"takkaria","id":405490,"avatar_url":"https://avatars.githubusercontent.com/u/405490?v=3","gravatar_id":"","url":"https://api.github.com/users/takkaria","html_url":"https://github.com/takkaria","followers_url":"https://api.github.com/users/takkaria/followers","following_url":"https://api.github.com/users/takkaria/following{/other_user}","gists_url":"https://api.github.com/users/takkaria/gists{/gist_id}","starred_url":"https://api.github.com/users/takkaria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takkaria/subscriptions","organizations_url":"https://api.github.com/users/takkaria/orgs","repos_url":"https://api.github.com/users/takkaria/repos","events_url":"https://api.github.com/users/takkaria/events{/privacy}","received_events_url":"https://api.github.com/users/takkaria/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/angband/angband/pulls/282/commits","review_comments_url":"https://api.github.com/repos/angband/angband/pulls/282/comments","review_comment_url":"https://api.github.com/repos/angband/angband/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angband/angband/issues/282/comments","statuses_url":"https://api.github.com/repos/angband/angband/statuses/6b106d25acd77462094a66ab9890c29759d270c5","head":{"label":"ayrtonmassey:master","ref":"master","sha":"6b106d25acd77462094a66ab9890c29759d270c5","user":{"login":"ayrtonmassey","id":700278,"avatar_url":"https://avatars.githubusercontent.com/u/700278?v=3","gravatar_id":"","url":"https://api.github.com/users/ayrtonmassey","html_url":"https://github.com/ayrtonmassey","followers_url":"https://api.github.com/users/ayrtonmassey/followers","following_url":"https://api.github.com/users/ayrtonmassey/following{/other_user}","gists_url":"https://api.github.com/users/ayrtonmassey/gists{/gist_id}","starred_url":"https://api.github.com/users/ayrtonmassey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayrtonmassey/subscriptions","organizations_url":"https://api.github.com/users/ayrtonmassey/orgs","repos_url":"https://api.github.com/users/ayrtonmassey/repos","events_url":"https://api.github.com/users/ayrtonmassey/events{/privacy}","received_events_url":"https://api.github.com/users/ayrtonmassey/received_events","type":"User","site_admin":false},"repo":null},"base":{"label":"angband:master","ref":"master","sha":"cf8cc30b0baef633d78cbd236550e2082e5f9c82","user":{"login":"angband","id":458884,"avatar_url":"https://avatars.githubusercontent.com/u/458884?v=3","gravatar_id":"","url":"https://api.github.com/users/angband","html_url":"https://github.com/angband","followers_url":"https://api.github.com/users/angband/followers","following_url":"https://api.github.com/users/angband/following{/other_user}","gists_url":"https://api.github.com/users/angband/gists{/gist_id}","starred_url":"https://api.github.com/users/angband/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angband/subscriptions","organizations_url":"https://api.github.com/users/angband/orgs","repos_url":"https://api.github.com/users/angband/repos","events_url":"https://api.github.com/users/angband/events{/privacy}","received_events_url":"https://api.github.com/users/angband/received_events","type":"Organization","site_admin":false},"repo":{"id":1033705,"name":"angband","full_name":"angband/angband","owner":{"login":"angband","id":458884,"avatar_url":"https://avatars.githubusercontent.com/u/458884?v=3","gravatar_id":"","url":"https://api.github.com/users/angband","html_url":"https://github.com/angband","followers_url":"https://api.github.com/users/angband/followers","following_url":"https://api.github.com/users/angband/following{/other_user}","gists_url":"https://api.github.com/users/angband/gists{/gist_id}","starred_url":"https://api.github.com/users/angband/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angband/subscriptions","organizations_url":"https://api.github.com/users/angband/orgs","repos_url":"https://api.github.com/users/angband/repos","events_url":"https://api.github.com/users/angband/events{/privacy}","received_events_url":"https://api.github.com/users/angband/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angband/angband","description":"A free, single-player roguelike dungeon exploration game","fork":false,"url":"https://api.github.com/repos/angband/angband","forks_url":"https://api.github.com/repos/angband/angband/forks","keys_url":"https://api.github.com/repos/angband/angband/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angband/angband/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angband/angband/teams","hooks_url":"https://api.github.com/repos/angband/angband/hooks","issue_events_url":"https://api.github.com/repos/angband/angband/issues/events{/number}","events_url":"https://api.github.com/repos/angband/angband/events","assignees_url":"https://api.github.com/repos/angband/angband/assignees{/user}","branches_url":"https://api.github.com/repos/angband/angband/branches{/branch}","tags_url":"https://api.github.com/repos/angband/angband/tags","blobs_url":"https://api.github.com/repos/angband/angband/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angband/angband/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angband/angband/git/refs{/sha}","trees_url":"https://api.github.com/repos/angband/angband/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angband/angband/statuses/{sha}","languages_url":"https://api.github.com/repos/angband/angband/languages","stargazers_url":"https://api.github.com/repos/angband/angband/stargazers","contributors_url":"https://api.github.com/repos/angband/angband/contributors","subscribers_url":"https://api.github.com/repos/angband/angband/subscribers","subscription_url":"https://api.github.com/repos/angband/angband/subscription","commits_url":"https://api.github.com/repos/angband/angband/commits{/sha}","git_commits_url":"https://api.github.com/repos/angband/angband/git/commits{/sha}","comments_url":"https://api.github.com/repos/angband/angband/comments{/number}","issue_comment_url":"https://api.github.com/repos/angband/angband/issues/comments{/number}","contents_url":"https://api.github.com/repos/angband/angband/contents/{+path}","compare_url":"https://api.github.com/repos/angband/angband/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angband/angband/merges","archive_url":"https://api.github.com/repos/angband/angband/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angband/angband/downloads","issues_url":"https://api.github.com/repos/angband/angband/issues{/number}","pulls_url":"https://api.github.com/repos/angband/angband/pulls{/number}","milestones_url":"https://api.github.com/repos/angband/angband/milestones{/number}","notifications_url":"https://api.github.com/repos/angband/angband/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angband/angband/labels{/name}","releases_url":"https://api.github.com/repos/angband/angband/releases{/id}","deployments_url":"https://api.github.com/repos/angband/angband/deployments","created_at":"2010-10-29T01:17:48Z","updated_at":"2016-04-23T15:36:39Z","pushed_at":"2016-04-24T01:15:47Z","git_url":"git://github.com/angband/angband.git","ssh_url":"git@github.com:angband/angband.git","clone_url":"https://github.com/angband/angband.git","svn_url":"https://github.com/angband/angband","homepage":"http://trac.rephial.org/","size":79977,"stargazers_count":320,"watchers_count":320,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":147,"mirror_url":null,"open_issues_count":1,"forks":147,"open_issues":1,"watchers":320,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angband/angband/pulls/282"},"html":{"href":"https://github.com/angband/angband/pull/282"},"issue":{"href":"https://api.github.com/repos/angband/angband/issues/282"},"comments":{"href":"https://api.github.com/repos/angband/angband/issues/282/comments"},"review_comments":{"href":"https://api.github.com/repos/angband/angband/pulls/282/comments"},"review_comment":{"href":"https://api.github.com/repos/angband/angband/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angband/angband/pulls/282/commits"},"statuses":{"href":"https://api.github.com/repos/angband/angband/statuses/6b106d25acd77462094a66ab9890c29759d270c5"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":4,"review_comments":0,"commits":2,"additions":54,"deletions":36,"changed_files":3}}