{"action":"created","issue":{"url":"https://api.github.com/repos/endless-sky/endless-sky/issues/1412","repository_url":"https://api.github.com/repos/endless-sky/endless-sky","labels_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/1412/labels{/name}","comments_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/1412/comments","events_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/1412/events","html_url":"https://github.com/endless-sky/endless-sky/issues/1412","id":169831798,"number":1412,"title":"New outfit tags","user":{"login":"Isaacssv552","id":5642624,"avatar_url":"https://avatars.githubusercontent.com/u/5642624?v=3","gravatar_id":"","url":"https://api.github.com/users/Isaacssv552","html_url":"https://github.com/Isaacssv552","followers_url":"https://api.github.com/users/Isaacssv552/followers","following_url":"https://api.github.com/users/Isaacssv552/following{/other_user}","gists_url":"https://api.github.com/users/Isaacssv552/gists{/gist_id}","starred_url":"https://api.github.com/users/Isaacssv552/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Isaacssv552/subscriptions","organizations_url":"https://api.github.com/users/Isaacssv552/orgs","repos_url":"https://api.github.com/users/Isaacssv552/repos","events_url":"https://api.github.com/users/Isaacssv552/events{/privacy}","received_events_url":"https://api.github.com/users/Isaacssv552/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2016-08-08T02:21:22Z","updated_at":"2016-08-10T23:55:11Z","closed_at":null,"body":"I would like to add two more tags to outfits.\r\n\r\n1. An \"unremovable\" tag, similar to the unplunderable tag, that designates an outfit as not being removable. This would be useful for built-in outfits not meant to be removed. For example, a ship might have an integrated fusion reactor or a special weapon.\r\n2. A \"canfirewhilecloaked\" tag for both weapons, ships, and outfits. Preferable with 4 values. \r\n0: default, can't fire while cloaked.\r\n1: can fire this weapon (if on a weapon) or all weapons (if on a ship/outfit) while cloaked.\r\n2: same as one but requires the tag be present on one other source. If weapon+ship only that weapon can fwc, if outfit+ship all weapons can fwc.\r\n3: tag required in all 3 places. Outfit+ship+weapon and can only fire weapons with the tag.\r\nThis would be useful for special weapons, ships, and outfits.\r\n\r\nHow would I go about adding this to the c++ files? I've looked but cannot find the method that controls whether weapons can fire and can't figure out how to add a tag properly in the first place."},"comment":{"url":"https://api.github.com/repos/endless-sky/endless-sky/issues/comments/239039870","html_url":"https://github.com/endless-sky/endless-sky/issues/1412#issuecomment-239039870","issue_url":"https://api.github.com/repos/endless-sky/endless-sky/issues/1412","id":239039870,"user":{"login":"MarcelineVQ","id":16345659,"avatar_url":"https://avatars.githubusercontent.com/u/16345659?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcelineVQ","html_url":"https://github.com/MarcelineVQ","followers_url":"https://api.github.com/users/MarcelineVQ/followers","following_url":"https://api.github.com/users/MarcelineVQ/following{/other_user}","gists_url":"https://api.github.com/users/MarcelineVQ/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcelineVQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcelineVQ/subscriptions","organizations_url":"https://api.github.com/users/MarcelineVQ/orgs","repos_url":"https://api.github.com/users/MarcelineVQ/repos","events_url":"https://api.github.com/users/MarcelineVQ/events{/privacy}","received_events_url":"https://api.github.com/users/MarcelineVQ/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T23:55:11Z","updated_at":"2016-08-10T23:55:11Z","body":"@Isaacssv552 OutfitterPanel.h/.cpp\r\nOutfitterPanel::CanBuy() and OutfitterPanel::FailBuy() might also be of interest to you\r\nAlso CanAdd() in ShipCanBuy() refers to Outfit::CanAdd()"}}
{"actor":{"display_login":"MarcelineVQ"}}