{"action":"created","issue":{"url":"https://api.github.com/repos/Yankes/OpenXcom/issues/14","labels_url":"https://api.github.com/repos/Yankes/OpenXcom/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/Yankes/OpenXcom/issues/14/comments","events_url":"https://api.github.com/repos/Yankes/OpenXcom/issues/14/events","html_url":"https://github.com/Yankes/OpenXcom/pull/14","id":65100001,"number":14,"title":"Feature: Unhardcoded first turn when AI can use grenades, launchers etc","user":{"login":"redv","id":3616568,"avatar_url":"https://avatars.githubusercontent.com/u/3616568?v=3","gravatar_id":"","url":"https://api.github.com/users/redv","html_url":"https://github.com/redv","followers_url":"https://api.github.com/users/redv/followers","following_url":"https://api.github.com/users/redv/following{/other_user}","gists_url":"https://api.github.com/users/redv/gists{/gist_id}","starred_url":"https://api.github.com/users/redv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redv/subscriptions","organizations_url":"https://api.github.com/users/redv/orgs","repos_url":"https://api.github.com/users/redv/repos","events_url":"https://api.github.com/users/redv/events{/privacy}","received_events_url":"https://api.github.com/users/redv/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-03-29T21:48:26Z","updated_at":"2015-04-02T19:47:09Z","closed_at":"2015-04-01T17:35:20Z","pull_request":{"url":"https://api.github.com/repos/Yankes/OpenXcom/pulls/14","html_url":"https://github.com/Yankes/OpenXcom/pull/14","diff_url":"https://github.com/Yankes/OpenXcom/pull/14.diff","patch_url":"https://github.com/Yankes/OpenXcom/pull/14.patch"},"body":"The \"useDelay\" rule can be global:\r\n```\r\nai:\r\n  useDelayBlaster: 3\r\n  useDelayFirearm: 0\r\n  useDelayGrenade: 3\r\n  useDelayMelee: 0\r\n  useDelayPsionic: 0\r\n```\r\nand local:\r\n```\r\nitems:\r\n  -type: STR_ITEM\r\n    ai:\r\n      useDelay: 3\r\n```\r\nBy default local value is -1, global value is 3 for Blaster launcher and all grenades and 0 for other weapons.\r\nIf you set local value >= 0, then local value will be override the global rule for this item.\r\n\r\nThese rules works even during reaction fire."},"comment":{"url":"https://api.github.com/repos/Yankes/OpenXcom/issues/comments/89022670","html_url":"https://github.com/Yankes/OpenXcom/pull/14#issuecomment-89022670","issue_url":"https://api.github.com/repos/Yankes/OpenXcom/issues/14","id":89022670,"user":{"login":"Yankes","id":993167,"avatar_url":"https://avatars.githubusercontent.com/u/993167?v=3","gravatar_id":"","url":"https://api.github.com/users/Yankes","html_url":"https://github.com/Yankes","followers_url":"https://api.github.com/users/Yankes/followers","following_url":"https://api.github.com/users/Yankes/following{/other_user}","gists_url":"https://api.github.com/users/Yankes/gists{/gist_id}","starred_url":"https://api.github.com/users/Yankes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yankes/subscriptions","organizations_url":"https://api.github.com/users/Yankes/orgs","repos_url":"https://api.github.com/users/Yankes/repos","events_url":"https://api.github.com/users/Yankes/events{/privacy}","received_events_url":"https://api.github.com/users/Yankes/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T19:47:09Z","updated_at":"2015-04-02T19:47:09Z","body":"Strange, I tried 1:1 replace of original functionality in that commit. Overall I now rewriting TU spend to made reaction fire use resources in same time like normal attack. It's mainly because weapon \"shoot\" can peek current stats of unit. When I break everything, this bug go way with rest of codebase :D"}}