{"action":"closed","issue":{"url":"https://api.github.com/repos/chrsmith/hedgewars/issues/755","labels_url":"https://api.github.com/repos/chrsmith/hedgewars/issues/755/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/hedgewars/issues/755/comments","events_url":"https://api.github.com/repos/chrsmith/hedgewars/issues/755/events","html_url":"https://github.com/chrsmith/hedgewars/issues/755","id":59195182,"number":755,"title":"Lua API: Add ammo type parameter for onHogAttack","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/hedgewars/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/hedgewars/labels/Component-Lua-API","name":"Component-Lua-API","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/hedgewars/labels/Type-Enhancement","name":"Type-Enhancement","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-27T06:05:27Z","updated_at":"2015-02-27T06:05:28Z","closed_at":"2015-02-27T06:05:28Z","body":"```\nWhat problem are you currently facing?\nYou can find out when a weapon is used with onHogAttack, but one can’t find \nout /which/ weapon was used with this functions.\nThere are workarounds to obtain the used weapon anyways, but those feel mostly \nlike hacks.\n\nHow do you think the situation should be improved?\nBy adding a new parameter for onHogAttack, called “ammoType”. This \nparameter is for the ammo type of the weapon which is used for this attack.\nNo matter wheather it is already possible to receive the ammo type fired, this \naddition would certainly ease things a lot.\nAn addition of the ammo type to similar functions would be of course nice, too.\n\nWhat version of the product are you using? On what operating system?\n0.9.20 on GNU/Linux\n```\n\nOriginal issue reported on code.google.com by `almikes@aol.com` on 2 Jan 2014 at 9:32"}}