{"action":"created","issue":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/21991","repository_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA","labels_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/21991/labels{/name}","comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/21991/comments","events_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/21991/events","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/21991","id":260408755,"number":21991,"title":"Replace most usage of game::mon_at with game::critter_at","user":{"login":"BevapDin","id":5095435,"avatar_url":"https://avatars3.githubusercontent.com/u/5095435?v=4","gravatar_id":"","url":"https://api.github.com/users/BevapDin","html_url":"https://github.com/BevapDin","followers_url":"https://api.github.com/users/BevapDin/followers","following_url":"https://api.github.com/users/BevapDin/following{/other_user}","gists_url":"https://api.github.com/users/BevapDin/gists{/gist_id}","starred_url":"https://api.github.com/users/BevapDin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BevapDin/subscriptions","organizations_url":"https://api.github.com/users/BevapDin/orgs","repos_url":"https://api.github.com/users/BevapDin/repos","events_url":"https://api.github.com/users/BevapDin/events{/privacy}","received_events_url":"https://api.github.com/users/BevapDin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-25T20:43:38Z","updated_at":"2017-09-28T09:24:18Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/21991","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/21991","diff_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/21991.diff","patch_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/21991.patch"},"body":"Usually one wants the monster pointer anyway, so one can just call `game::critter_at<monster>` to get it directly.\r\nThis also changes a few places to call the generic `critter_at` (which will return a valid pointer if there is any kind of creature). That behavior is often desired, for example when one wants to check whether spawning a new monster is possible there. The old code would just check for the target being free of any monsters, but would happily attempt to spawn a monster if there is already an NPC there.\r\n\r\nI plan to completely remove `mon_at` with the next few PRs.\r\n"},"comment":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/comments/332780492","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/21991#issuecomment-332780492","issue_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/21991","id":332780492,"user":{"login":"narc0tiq","id":591573,"avatar_url":"https://avatars1.githubusercontent.com/u/591573?v=4","gravatar_id":"","url":"https://api.github.com/users/narc0tiq","html_url":"https://github.com/narc0tiq","followers_url":"https://api.github.com/users/narc0tiq/followers","following_url":"https://api.github.com/users/narc0tiq/following{/other_user}","gists_url":"https://api.github.com/users/narc0tiq/gists{/gist_id}","starred_url":"https://api.github.com/users/narc0tiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narc0tiq/subscriptions","organizations_url":"https://api.github.com/users/narc0tiq/orgs","repos_url":"https://api.github.com/users/narc0tiq/repos","events_url":"https://api.github.com/users/narc0tiq/events{/privacy}","received_events_url":"https://api.github.com/users/narc0tiq/received_events","type":"User","site_admin":false},"created_at":"2017-09-28T09:24:18Z","updated_at":"2017-09-28T09:24:18Z","author_association":"CONTRIBUTOR","body":"I need to test something -- Jenkins, rebuild, please!"}}
{"actor":{"display_login":"narc0tiq"}}