{"action":"created","issue":{"url":"https://api.github.com/repos/endless-sky/endless-sky/issues/777","repository_url":"https://api.github.com/repos/endless-sky/endless-sky","labels_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/777/labels{/name}","comments_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/777/comments","events_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/777/events","html_url":"https://github.com/endless-sky/endless-sky/pull/777","id":132727154,"number":777,"title":"Allow planets to define a government.","user":{"login":"jmhorjus","id":1497842,"avatar_url":"https://avatars.githubusercontent.com/u/1497842?v=3","gravatar_id":"","url":"https://api.github.com/users/jmhorjus","html_url":"https://github.com/jmhorjus","followers_url":"https://api.github.com/users/jmhorjus/followers","following_url":"https://api.github.com/users/jmhorjus/following{/other_user}","gists_url":"https://api.github.com/users/jmhorjus/gists{/gist_id}","starred_url":"https://api.github.com/users/jmhorjus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmhorjus/subscriptions","organizations_url":"https://api.github.com/users/jmhorjus/orgs","repos_url":"https://api.github.com/users/jmhorjus/repos","events_url":"https://api.github.com/users/jmhorjus/events{/privacy}","received_events_url":"https://api.github.com/users/jmhorjus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-10T15:17:48Z","updated_at":"2016-02-29T15:23:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/endless-sky/endless-sky/pulls/777","html_url":"https://github.com/endless-sky/endless-sky/pull/777","diff_url":"https://github.com/endless-sky/endless-sky/pull/777.diff","patch_url":"https://github.com/endless-sky/endless-sky/pull/777.patch"},"body":"This will allow a planet to be independent of it's system, defining it's own government. \r\nPlanets that do not define a government (i.e. still all of them) will continue to use the government of the system they are in (no change in behavior of existing content).\r\n  \r\nThis will allow mods to do a few things they couldn't before, like have planets of different governments in the same system.  There are one or two planets in the main game that might make use of this as well, such as the Quarg outpost \"Echo\" which is in Tarazed, an otherwise \"Republic\" or \"Neutral\" star system.\r\n\r\nNOTE: [I've now tested this on my Win32 build and it works like a charm! Echo remains \"Quarg\" government whether the system is Republic or Neutral and reacts to your actions properly - if you attack a Quarg Ship, Echo becomes hostile while the other planets in the system don't care.]"},"comment":{"url":"https://api.github.com/repos/endless-sky/endless-sky/issues/comments/190255601","html_url":"https://github.com/endless-sky/endless-sky/pull/777#issuecomment-190255601","issue_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/777","id":190255601,"user":{"login":"jmhorjus","id":1497842,"avatar_url":"https://avatars.githubusercontent.com/u/1497842?v=3","gravatar_id":"","url":"https://api.github.com/users/jmhorjus","html_url":"https://github.com/jmhorjus","followers_url":"https://api.github.com/users/jmhorjus/followers","following_url":"https://api.github.com/users/jmhorjus/following{/other_user}","gists_url":"https://api.github.com/users/jmhorjus/gists{/gist_id}","starred_url":"https://api.github.com/users/jmhorjus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmhorjus/subscriptions","organizations_url":"https://api.github.com/users/jmhorjus/orgs","repos_url":"https://api.github.com/users/jmhorjus/repos","events_url":"https://api.github.com/users/jmhorjus/events{/privacy}","received_events_url":"https://api.github.com/users/jmhorjus/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T15:23:44Z","updated_at":"2016-02-29T15:23:44Z","body":"Can this be merged, or if not, how can it be improved? \r\nI can put the additions to .gitignore in a separate pull request if desired.\r\nI can also remove the change to Echo's government so that it's just a new modding capability being added with no effect on the base game.  \r\nI've tested this and been playing/testing other things on my win32 build that includes this for a while so my confidence in its safety/correctness is fairly high. "}}