{"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":33,"created_at":"2015-03-18T13:31:30Z","updated_at":"2015-03-20T03:23:39Z","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/83870564","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/11665#issuecomment-83870564","issue_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/11665","id":83870564,"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-20T03:23:39Z","updated_at":"2015-03-20T03:23:39Z","body":"Didn't add anything like that in this PR. This one is only buffing spears and bayonets - both requested in the issue linked.\r\n\r\nWhile it would be a mechanic to learn, it would be a very simple one - one that people already need to learn to use bows and guns. If not wanted or not realistic, it's obviously not mandatory or anything - it's just that it could add a lot to the game.\r\nIRL baseball bats, swords and axes have a longer reach than knives, fists and mouths."}}