{"action":"created","issue":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/11665","labels_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/11665/labels{/name}","comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/11665/comments","events_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/11665/events","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/11665","id":62694786,"number":11665,"title":"Reach weapons","user":{"login":"Coolthulhu","id":1878860,"avatar_url":"https://avatars.githubusercontent.com/u/1878860?v=3","gravatar_id":"","url":"https://api.github.com/users/Coolthulhu","html_url":"https://github.com/Coolthulhu","followers_url":"https://api.github.com/users/Coolthulhu/followers","following_url":"https://api.github.com/users/Coolthulhu/following{/other_user}","gists_url":"https://api.github.com/users/Coolthulhu/gists{/gist_id}","starred_url":"https://api.github.com/users/Coolthulhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coolthulhu/subscriptions","organizations_url":"https://api.github.com/users/Coolthulhu/orgs","repos_url":"https://api.github.com/users/Coolthulhu/repos","events_url":"https://api.github.com/users/Coolthulhu/events{/privacy}","received_events_url":"https://api.github.com/users/Coolthulhu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-03-18T13:31:30Z","updated_at":"2015-03-19T16:20:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/11665","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/11665","diff_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/11665.diff","patch_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/11665.patch"},"body":"Implements reach weapons. Uses `player::melee_attack` function to deal damage and trigger effects (zapback explicitly forbids triggering at range, so no `mdef` effects).\r\n\r\nUses ranged attack targeting (no aiming allowed).\r\n\r\nBound under `f`, but allows bayonets with reach. In this case it is a separate gun mode (single fire->burst->aux->reach->back to single). By default the regular bayonet (not pistol, not sword) gets a reach attack.\r\n\r\nRange of reach attack is 2, except for awl pike which has 3.\r\n\r\nCan hit targets and obstacles in front of the intended target with a chance dependent on user skill and size difference between intended target and one in the way. Can attack through wire fences, except for survivor naginata (which doesn't have the SPEAR tag).\r\n\r\nGave reach attack to all melee spears (with \"spear\" in name), to awl pike, to pitchfork and to survivor naginata.\r\nDidn't change bullwhip, because it disarms and melee disarming isn't implemented.\r\n\r\nCloses #4903 "},"comment":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/comments/83648777","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/11665#issuecomment-83648777","issue_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/11665","id":83648777,"user":{"login":"Coolthulhu","id":1878860,"avatar_url":"https://avatars.githubusercontent.com/u/1878860?v=3","gravatar_id":"","url":"https://api.github.com/users/Coolthulhu","html_url":"https://github.com/Coolthulhu","followers_url":"https://api.github.com/users/Coolthulhu/followers","following_url":"https://api.github.com/users/Coolthulhu/following{/other_user}","gists_url":"https://api.github.com/users/Coolthulhu/gists{/gist_id}","starred_url":"https://api.github.com/users/Coolthulhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coolthulhu/subscriptions","organizations_url":"https://api.github.com/users/Coolthulhu/orgs","repos_url":"https://api.github.com/users/Coolthulhu/repos","events_url":"https://api.github.com/users/Coolthulhu/events{/privacy}","received_events_url":"https://api.github.com/users/Coolthulhu/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T16:20:28Z","updated_at":"2015-03-19T16:20:28Z","body":"I'll leave it with reach for testing. If someone wants to later remove it, it's a json change.\r\n\r\nIf it was up to me, all pole weapons like axes would get the reach, to make them compete with combat knives and katanas. Then zombies would get a lunge/charge attack to compete with newly buffed survivors."}}