{"action":"created","issue":{"url":"https://api.github.com/repos/endless-sky/endless-sky/issues/2473","repository_url":"https://api.github.com/repos/endless-sky/endless-sky","labels_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/2473/labels{/name}","comments_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/2473/comments","events_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/2473/events","html_url":"https://github.com/endless-sky/endless-sky/issues/2473","id":225859093,"number":2473,"title":"wiki | documentation: maximum number of usable hardpoints","user":{"login":"EndrosG","id":26883037,"avatar_url":"https://avatars2.githubusercontent.com/u/26883037?v=3","gravatar_id":"","url":"https://api.github.com/users/EndrosG","html_url":"https://github.com/EndrosG","followers_url":"https://api.github.com/users/EndrosG/followers","following_url":"https://api.github.com/users/EndrosG/following{/other_user}","gists_url":"https://api.github.com/users/EndrosG/gists{/gist_id}","starred_url":"https://api.github.com/users/EndrosG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EndrosG/subscriptions","organizations_url":"https://api.github.com/users/EndrosG/orgs","repos_url":"https://api.github.com/users/EndrosG/repos","events_url":"https://api.github.com/users/EndrosG/events{/privacy}","received_events_url":"https://api.github.com/users/EndrosG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-05-03T00:35:38Z","updated_at":"2017-05-03T12:51:34Z","closed_at":null,"body":"please add to the documentation, that no more than 32 hardpoints specified in a ship definition can fire at all.\r\nA ship can have more hardpoints, and can have more hardpoints being equipped, but no more than 32 will fire.\r\n\r\nThe reason is to be found in Command.cpp, lines 270++, and Command.cpp lines 126++\r\n\r\n```\r\n// Check if this command includes a command to fire the given weapon.\r\nbool Command::HasFire(int index) const\r\n\r\n// Add to this set of commands a command to fire the given weapon.\r\nvoid Command::SetFire(int index)\r\n\r\n// Check if any weapons are firing.\r\nbool Command::IsFiring() const\r\n\r\n\t// The key commands and weapons to fire are stored in a single bitmask, with\r\n\t// 32 bits for key commands and 32 bits for individual weapons.\r\n\tuint64_t state = 0;\r\n```\r\n\r\n\r\nTo be more precise: no more than 32 hardpoints will fire offensive weapon systems.\r\nAnti-Missile works different. But if your Anti-Missile systems are within the first 32 hardpoints, then they reduce your maximum number of offensive firing hardpoints."},"comment":{"url":"https://api.github.com/repos/endless-sky/endless-sky/issues/comments/298901616","html_url":"https://github.com/endless-sky/endless-sky/issues/2473#issuecomment-298901616","issue_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/2473","id":298901616,"user":{"login":"MessyMix","id":20450076,"avatar_url":"https://avatars1.githubusercontent.com/u/20450076?v=3","gravatar_id":"","url":"https://api.github.com/users/MessyMix","html_url":"https://github.com/MessyMix","followers_url":"https://api.github.com/users/MessyMix/followers","following_url":"https://api.github.com/users/MessyMix/following{/other_user}","gists_url":"https://api.github.com/users/MessyMix/gists{/gist_id}","starred_url":"https://api.github.com/users/MessyMix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MessyMix/subscriptions","organizations_url":"https://api.github.com/users/MessyMix/orgs","repos_url":"https://api.github.com/users/MessyMix/repos","events_url":"https://api.github.com/users/MessyMix/events{/privacy}","received_events_url":"https://api.github.com/users/MessyMix/received_events","type":"User","site_admin":false},"created_at":"2017-05-03T12:51:34Z","updated_at":"2017-05-03T12:51:34Z","body":"[New Dude.txt](https://github.com/endless-sky/endless-sky/files/973307/New.Dude.txt)\r\n\r\n1000 guns certainly feels different to 100 or 32 guns. I might not understand everything that's going on, but I know that it's different alright."}}
{"actor":{"display_login":"MessyMix"}}