{"action":"closed","issue":{"url":"https://api.github.com/repos/OpenRA/OpenRA/issues/5287","labels_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/5287/labels{/name}","comments_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/5287/comments","events_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/5287/events","html_url":"https://github.com/OpenRA/OpenRA/issues/5287","id":33279766,"number":5287,"title":"Tech prerequisites are inconsistent","user":{"login":"pchote","id":167819,"avatar_url":"https://avatars.githubusercontent.com/u/167819?v=3","gravatar_id":"","url":"https://api.github.com/users/pchote","html_url":"https://github.com/pchote","followers_url":"https://api.github.com/users/pchote/followers","following_url":"https://api.github.com/users/pchote/following{/other_user}","gists_url":"https://api.github.com/users/pchote/gists{/gist_id}","starred_url":"https://api.github.com/users/pchote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchote/subscriptions","organizations_url":"https://api.github.com/users/pchote/orgs","repos_url":"https://api.github.com/users/pchote/repos","events_url":"https://api.github.com/users/pchote/events{/privacy}","received_events_url":"https://api.github.com/users/pchote/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenRA/OpenRA/labels/Refactor","name":"Refactor","color":"00FFCC"}],"state":"closed","locked":false,"assignee":{"login":"penev92","id":7137365,"avatar_url":"https://avatars.githubusercontent.com/u/7137365?v=3","gravatar_id":"","url":"https://api.github.com/users/penev92","html_url":"https://github.com/penev92","followers_url":"https://api.github.com/users/penev92/followers","following_url":"https://api.github.com/users/penev92/following{/other_user}","gists_url":"https://api.github.com/users/penev92/gists{/gist_id}","starred_url":"https://api.github.com/users/penev92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/penev92/subscriptions","organizations_url":"https://api.github.com/users/penev92/orgs","repos_url":"https://api.github.com/users/penev92/repos","events_url":"https://api.github.com/users/penev92/events{/privacy}","received_events_url":"https://api.github.com/users/penev92/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2014-05-12T04:22:22Z","updated_at":"2015-05-08T16:29:22Z","closed_at":"2015-05-08T16:29:22Z","body":"#5280 highlighted our weird prerequisite setup:\r\n\r\n* The Building trait will grant a prerequisite of the actor's name.\r\n* The ProvidesCustomPrerequisite trait will grant an arbitrarily named prerequisite.\r\n\r\nThere is no way to automatically grant an actor-type prerequisite for non-buildings, and those prerequisites are granted even when they aren't wanted (civilian structures, everything in D2K).\r\n\r\nWe should split auto-prereq behavior from Building into its own trait or merge it into ProvidesCustomPrequisite as a default value if the prereq name isn't specified.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/2113149-tech-prerequisites-are-inconsistent?utm_campaign=plugin&utm_content=tracker%2F36085&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F36085&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}