{"action":"created","issue":{"url":"https://api.github.com/repos/scrom/Experiments/issues/391","labels_url":"https://api.github.com/repos/scrom/Experiments/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/scrom/Experiments/issues/391/comments","events_url":"https://api.github.com/repos/scrom/Experiments/issues/391/events","html_url":"https://github.com/scrom/Experiments/issues/391","id":108719034,"number":391,"title":"examine/read need to be slightly more intelligent.","user":{"login":"scrom","id":409676,"avatar_url":"https://avatars.githubusercontent.com/u/409676?v=3","gravatar_id":"","url":"https://api.github.com/users/scrom","html_url":"https://github.com/scrom","followers_url":"https://api.github.com/users/scrom/followers","following_url":"https://api.github.com/users/scrom/following{/other_user}","gists_url":"https://api.github.com/users/scrom/gists{/gist_id}","starred_url":"https://api.github.com/users/scrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrom/subscriptions","organizations_url":"https://api.github.com/users/scrom/orgs","repos_url":"https://api.github.com/users/scrom/repos","events_url":"https://api.github.com/users/scrom/events{/privacy}","received_events_url":"https://api.github.com/users/scrom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-28T18:29:04Z","updated_at":"2015-10-06T16:47:44Z","closed_at":"2015-10-06T16:47:44Z","body":"Initially I thought \"examine\" / \"read\" should try location before player for object. \r\nThis may be very far-reaching (this is handled by getObjectFromPlayerOrLocation)\r\n\r\nPossibly more sensible would be to determine what object the players last action was against. \r\nIf the next action is against an object with the same name, it should use the same (if available).\r\n\r\nThis is currently a problem where if a player is carrying a \"book\" and a location also has a book. Saying \"examine\" or \"read\" book - when walking into location will describe the one in the player inventory.\r\n\r\nIt might be as simple as adding an optional \"precedence\" parameter to getObjectFromPlayerOrLocation that chooses which to try first\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/scrom/Experiments/issues/comments/145924632","html_url":"https://github.com/scrom/Experiments/issues/391#issuecomment-145924632","issue_url":"https://api.github.com/repos/scrom/Experiments/issues/391","id":145924632,"user":{"login":"scrom","id":409676,"avatar_url":"https://avatars.githubusercontent.com/u/409676?v=3","gravatar_id":"","url":"https://api.github.com/users/scrom","html_url":"https://github.com/scrom","followers_url":"https://api.github.com/users/scrom/followers","following_url":"https://api.github.com/users/scrom/following{/other_user}","gists_url":"https://api.github.com/users/scrom/gists{/gist_id}","starred_url":"https://api.github.com/users/scrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrom/subscriptions","organizations_url":"https://api.github.com/users/scrom/orgs","repos_url":"https://api.github.com/users/scrom/repos","events_url":"https://api.github.com/users/scrom/events{/privacy}","received_events_url":"https://api.github.com/users/scrom/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T16:47:44Z","updated_at":"2015-10-06T16:47:44Z","body":"fixed & tested"}}