{"action":"created","issue":{"url":"https://api.github.com/repos/tgstation/tgstation/issues/38549","repository_url":"https://api.github.com/repos/tgstation/tgstation","labels_url":"https://api.github.com/repos/tgstation/tgstation/issues/38549/labels{/name}","comments_url":"https://api.github.com/repos/tgstation/tgstation/issues/38549/comments","events_url":"https://api.github.com/repos/tgstation/tgstation/issues/38549/events","html_url":"https://github.com/tgstation/tgstation/pull/38549","id":333038430,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1MzYzMjE5","number":38549,"title":"Improve how vending machine restocking works","user":{"login":"SpaceManiac","id":222630,"node_id":"MDQ6VXNlcjIyMjYzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/222630?v=4","gravatar_id":"","url":"https://api.github.com/users/SpaceManiac","html_url":"https://github.com/SpaceManiac","followers_url":"https://api.github.com/users/SpaceManiac/followers","following_url":"https://api.github.com/users/SpaceManiac/following{/other_user}","gists_url":"https://api.github.com/users/SpaceManiac/gists{/gist_id}","starred_url":"https://api.github.com/users/SpaceManiac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpaceManiac/subscriptions","organizations_url":"https://api.github.com/users/SpaceManiac/orgs","repos_url":"https://api.github.com/users/SpaceManiac/repos","events_url":"https://api.github.com/users/SpaceManiac/events{/privacy}","received_events_url":"https://api.github.com/users/SpaceManiac/received_events","type":"User","site_admin":false},"labels":[{"id":149581322,"node_id":"MDU6TGFiZWwxNDk1ODEzMjI=","url":"https://api.github.com/repos/tgstation/tgstation/labels/Feature","name":"Feature","color":"009800","default":false},{"id":157846355,"node_id":"MDU6TGFiZWwxNTc4NDYzNTU=","url":"https://api.github.com/repos/tgstation/tgstation/labels/Fix","name":"Fix","color":"00bbdd","default":false},{"id":373745412,"node_id":"MDU6TGFiZWwzNzM3NDU0MTI=","url":"https://api.github.com/repos/tgstation/tgstation/labels/Tweak","name":"Tweak","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-06-17T06:05:57Z","updated_at":"2018-06-18T17:41:45Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/tgstation/tgstation/pulls/38549","html_url":"https://github.com/tgstation/tgstation/pull/38549","diff_url":"https://github.com/tgstation/tgstation/pull/38549.diff","patch_url":"https://github.com/tgstation/tgstation/pull/38549.patch"},"body":":cl:\r\ntweak: One canister is now suitable to fully stock a vending machine. Relevant cargo packs have been updated.\r\nfix: Deconstructing and reconstructing a vending machine no longer creates items from thin air.\r\nfix: Using a part replacer on a vending machine no longer empties its inventory.\r\nadd: Bluespace RPEDs can now be used to refill vending machines.\r\n/:cl:\r\n\r\nFixes #37581. Fixes #37728.\r\n\r\nThe \"charges\" system has been removed in favor of tracking exactly how many of which items are available on the restock units. A brand-new restock unit is \"sealed\", and will take on the product list of the first vending machine it is successfully used on, including during construction. The canister's amounts are updated during deconstruction. Bluespace RPEDs can now hold the BULKY restock units, and part replacement uses the restock logic rather than just swapping out canisters.\r\n\r\nA good demonstration case is deconstructing and reconstructing a maintenance Booze-o-Mat. When deconstructed and reconstructed, it takes on the product list of the normal Booze-o-Mat, but the actual stock has been persisted via the restock unit.\r\n\r\nAlso fixes vending machines constructed while unanchored having inaccessible maintenance panels, by requiring them to be built anchored.\r\n\r\nSome grammar and formatting fixes rolled in.\r\n\r\nI changed the annoyingly hard-to-read dark blue color in the interface, and the others to match:\r\n\r\n![image](https://user-images.githubusercontent.com/222630/41505259-c75f6b8a-71b9-11e8-8473-c28f36db91b3.png)\r\n"},"comment":{"url":"https://api.github.com/repos/tgstation/tgstation/issues/comments/398136818","html_url":"https://github.com/tgstation/tgstation/pull/38549#issuecomment-398136818","issue_url":"https://api.github.com/repos/tgstation/tgstation/issues/38549","id":398136818,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODEzNjgxOA==","user":{"login":"epochayur","id":32695675,"node_id":"MDQ6VXNlcjMyNjk1Njc1","avatar_url":"https://avatars3.githubusercontent.com/u/32695675?v=4","gravatar_id":"","url":"https://api.github.com/users/epochayur","html_url":"https://github.com/epochayur","followers_url":"https://api.github.com/users/epochayur/followers","following_url":"https://api.github.com/users/epochayur/following{/other_user}","gists_url":"https://api.github.com/users/epochayur/gists{/gist_id}","starred_url":"https://api.github.com/users/epochayur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epochayur/subscriptions","organizations_url":"https://api.github.com/users/epochayur/orgs","repos_url":"https://api.github.com/users/epochayur/repos","events_url":"https://api.github.com/users/epochayur/events{/privacy}","received_events_url":"https://api.github.com/users/epochayur/received_events","type":"User","site_admin":false},"created_at":"2018-06-18T17:41:45Z","updated_at":"2018-06-18T17:41:45Z","author_association":"CONTRIBUTOR","body":"+1 just for the text recolor"}}
{"actor":{"display_login":"epochayur"}}