{"action":"created","issue":{"url":"https://api.github.com/repos/d3athrow/vgstation13/issues/12931","repository_url":"https://api.github.com/repos/d3athrow/vgstation13","labels_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/12931/labels{/name}","comments_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/12931/comments","events_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/12931/events","html_url":"https://github.com/d3athrow/vgstation13/pull/12931","id":196423358,"number":12931,"title":"Adds pAI Insertion Into Objects","user":{"login":"Shadowmech88","id":3991927,"avatar_url":"https://avatars.githubusercontent.com/u/3991927?v=3","gravatar_id":"","url":"https://api.github.com/users/Shadowmech88","html_url":"https://github.com/Shadowmech88","followers_url":"https://api.github.com/users/Shadowmech88/followers","following_url":"https://api.github.com/users/Shadowmech88/following{/other_user}","gists_url":"https://api.github.com/users/Shadowmech88/gists{/gist_id}","starred_url":"https://api.github.com/users/Shadowmech88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shadowmech88/subscriptions","organizations_url":"https://api.github.com/users/Shadowmech88/orgs","repos_url":"https://api.github.com/users/Shadowmech88/repos","events_url":"https://api.github.com/users/Shadowmech88/events{/privacy}","received_events_url":"https://api.github.com/users/Shadowmech88/received_events","type":"User","site_admin":false},"labels":[{"id":174717970,"url":"https://api.github.com/repos/d3athrow/vgstation13/labels/System","name":"System","color":"fad8c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2016-12-19T14:14:34Z","updated_at":"2016-12-22T08:13:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/12931","html_url":"https://github.com/d3athrow/vgstation13/pull/12931","diff_url":"https://github.com/d3athrow/vgstation13/pull/12931.diff","patch_url":"https://github.com/d3athrow/vgstation13/pull/12931.patch"},"body":"This doesn't actually affect the game, this is purely the addition of a framework. I figure maybe now that it exists people might be inspired to do their own things with it.\r\n\r\nThis allows a pAI to be inserted into any `/obj` with its `can_take_pai` var set to `TRUE`. While inside an object, various hotkeys as well as mouse clicking can be used to trigger individual procs on the object corresponding to which hotkey was pressed. Altogether a pAI could manage 12 different functions of the object without even needing to use a menu.\r\n\r\nWhenever an integrated pAI clicks an object that isn't its host object, `on_integrated_pai_click()` is called on the host object. By default, this simply calls `attack_pai()`, but if the proc has been overridden pAIs can still manually call `attack_pai()` on machinery by using Ctrl+click.\r\n"},"comment":{"url":"https://api.github.com/repos/d3athrow/vgstation13/issues/comments/268743419","html_url":"https://github.com/d3athrow/vgstation13/pull/12931#issuecomment-268743419","issue_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/12931","id":268743419,"user":{"login":"PJB3005","id":8107459,"avatar_url":"https://avatars.githubusercontent.com/u/8107459?v=3","gravatar_id":"","url":"https://api.github.com/users/PJB3005","html_url":"https://github.com/PJB3005","followers_url":"https://api.github.com/users/PJB3005/followers","following_url":"https://api.github.com/users/PJB3005/following{/other_user}","gists_url":"https://api.github.com/users/PJB3005/gists{/gist_id}","starred_url":"https://api.github.com/users/PJB3005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PJB3005/subscriptions","organizations_url":"https://api.github.com/users/PJB3005/orgs","repos_url":"https://api.github.com/users/PJB3005/repos","events_url":"https://api.github.com/users/PJB3005/events{/privacy}","received_events_url":"https://api.github.com/users/PJB3005/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T08:13:02Z","updated_at":"2016-12-22T08:13:02Z","body":"Is this done?"}}
{"actor":{"display_login":"PJB3005"}}