{"action":"created","issue":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/11316","labels_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/11316/labels{/name}","comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/11316/comments","events_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/11316/events","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/11316","id":58108351,"number":11316,"title":"Fixes conversion of item charges to/from vehicle fuel amount","user":{"login":"BevapDin","id":5095435,"avatar_url":"https://avatars.githubusercontent.com/u/5095435?v=3","gravatar_id":"","url":"https://api.github.com/users/BevapDin","html_url":"https://github.com/BevapDin","followers_url":"https://api.github.com/users/BevapDin/followers","following_url":"https://api.github.com/users/BevapDin/following{/other_user}","gists_url":"https://api.github.com/users/BevapDin/gists{/gist_id}","starred_url":"https://api.github.com/users/BevapDin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BevapDin/subscriptions","organizations_url":"https://api.github.com/users/BevapDin/orgs","repos_url":"https://api.github.com/users/BevapDin/repos","events_url":"https://api.github.com/users/BevapDin/events{/privacy}","received_events_url":"https://api.github.com/users/BevapDin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"KA101","id":4195632,"avatar_url":"https://avatars.githubusercontent.com/u/4195632?v=3","gravatar_id":"","url":"https://api.github.com/users/KA101","html_url":"https://github.com/KA101","followers_url":"https://api.github.com/users/KA101/followers","following_url":"https://api.github.com/users/KA101/following{/other_user}","gists_url":"https://api.github.com/users/KA101/gists{/gist_id}","starred_url":"https://api.github.com/users/KA101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KA101/subscriptions","organizations_url":"https://api.github.com/users/KA101/orgs","repos_url":"https://api.github.com/users/KA101/repos","events_url":"https://api.github.com/users/KA101/events{/privacy}","received_events_url":"https://api.github.com/users/KA101/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-02-18T18:34:54Z","updated_at":"2015-02-19T03:38:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/pulls/11316","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/11316","diff_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/11316.diff","patch_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/11316.patch"},"body":"Currently only the code in `game::refill_vehicle_part` applies the conversion factor: refill a plasma tank with 1 charge of hydrogen put 100 \"fuel units\" into tank (stored in `vehicle_part::amount`).\r\n\r\nBut `player::siphon`, and `vehicle_part::properties_to_item` as well as `vehicle_part::properties_from_item` would completely ignore this factor leading the hydrogen duplication bugs.\r\n\r\nThis PR merges the 3 fuel data arrays (type, color, coeff) into one and adds the conversion factor for plutonium and hydrogen. It uses that factor in the mentioned functions.\r\n\r\nFixes #8206"},"comment":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/comments/74994518","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/pull/11316#issuecomment-74994518","issue_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/11316","id":74994518,"user":{"login":"KA101","id":4195632,"avatar_url":"https://avatars.githubusercontent.com/u/4195632?v=3","gravatar_id":"","url":"https://api.github.com/users/KA101","html_url":"https://github.com/KA101","followers_url":"https://api.github.com/users/KA101/followers","following_url":"https://api.github.com/users/KA101/following{/other_user}","gists_url":"https://api.github.com/users/KA101/gists{/gist_id}","starred_url":"https://api.github.com/users/KA101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KA101/subscriptions","organizations_url":"https://api.github.com/users/KA101/orgs","repos_url":"https://api.github.com/users/KA101/repos","events_url":"https://api.github.com/users/KA101/events{/privacy}","received_events_url":"https://api.github.com/users/KA101/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T03:38:50Z","updated_at":"2015-02-19T03:38:50Z","body":"Looks good.  Gonna try for some other PRs too."}}