{"action":"created","comment":{"url":"https://api.github.com/repos/tgstation/tgstation/pulls/comments/347072999","pull_request_review_id":317949062,"id":347072999,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM0NzA3Mjk5OQ==","diff_hunk":"@@ -423,9 +423,64 @@ GLOBAL_LIST_EMPTY(vending_products)\n \t\t\tif(loaded)\n \t\t\t\tto_chat(user, \"<span class='notice'>You insert [loaded] dishes into [src]'s compartment.</span>\")\n \t\t\t\tupdateUsrDialog()\n-\n \telse\n-\t\t..()\n+\t\t. = ..()\n+\t\tif(I.force && !tilted)\n+\t\t\tswitch(rand(1, 100))\n+\t\t\t\tif(1 to 4)\n+\t\t\t\t\tfreebie(user, 3)\n+\t\t\t\tif(5 to 12)\n+\t\t\t\t\tfreebie(user, 2)\n+\t\t\t\tif(13 to 20)\n+\t\t\t\t\tfreebie(user, 1)\n+\t\t\t\tif(76 to 100)\n+\t\t\t\t\ttilt(user)\n+\n+/obj/machinery/vending/proc/freebie(mob/fatty, freebies)\n+\tsrc.visible_message(\"<span class='notice'>\\The [src] yields [freebies > 1 ? \"several free goodies\" : \"a free goody\"]!</span>\")\n+\n+\tfor(var/i=0, i<freebies, i++)\n+\t\tplaysound(src, 'sound/machines/machine_vend.ogg', 50, TRUE, extrarange = -3)\n+\t\tfor(var/datum/data/vending_product/R in shuffle(product_records))\n+\n+\t\t\tif(R.amount <= 0) //Try to use a record that actually has something to dump.\n+\t\t\t\tcontinue\n+\t\t\tvar/dump_path = R.product_path\n+\t\t\tif(!dump_path)\n+\t\t\t\tcontinue\n+\n+\t\t\tR.amount--\n+\t\t\tnew dump_path(get_turf(src))\n+\t\t\tbreak\n+\n+/obj/machinery/vending/proc/tilt(mob/fatty)\n+\tsrc.visible_message(\"<span class='danger'>\\The [src] tips over!</span>\")\n+\ttilted = TRUE\n+\tanchored = FALSE\n+\n+\tfor(var/mob/living/L in get_turf(fatty))\n+\t\tL.Paralyze(60)\n+\t\tL.emote(\"scream\")\n+\t\tplaysound(L, 'sound/effects/blobattack.ogg', 40, TRUE)\n+\t\tplaysound(L, 'sound/effects/splat.ogg', 50, TRUE)\n+\t\tL.visible_message(\"<span class='danger'>[L] is crushed by \\the [src]!</span>\", \\\n+\t\t\t\"<span class='userdanger'>You are crushed by \\the [src]!</span>\")\n+\t\tL.apply_damage(95, forced=TRUE, spread_damage=TRUE)\n+\n+\tvar/matrix/M = matrix()\n+\tM.Turn(pick(90, 270))\n+\tsrc.transform = M\n+\n+\tsrc.throw_at(get_turf(fatty), 2, 2, spin=FALSE)\n+\n+/obj/machinery/vending/proc/untilt(mob/user)\n+\tuser.visible_message(\"<span class='notice'>[user] rights /the [src].\", \\\n+\t\t\"<span class='notice'>You right \\the [src].\")\n+\ttilted = FALSE","path":"code/modules/vending/_vending.dm","position":84,"original_position":77,"commit_id":"a8d40e4a335f4a23b09047244cb4665181618747","original_commit_id":"1e02fb911fe6ccfbd788b973b6b11a79b9dc3489","user":{"login":"Couls","id":30060146,"node_id":"MDQ6VXNlcjMwMDYwMTQ2","avatar_url":"https://avatars0.githubusercontent.com/u/30060146?v=4","gravatar_id":"","url":"https://api.github.com/users/Couls","html_url":"https://github.com/Couls","followers_url":"https://api.github.com/users/Couls/followers","following_url":"https://api.github.com/users/Couls/following{/other_user}","gists_url":"https://api.github.com/users/Couls/gists{/gist_id}","starred_url":"https://api.github.com/users/Couls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Couls/subscriptions","organizations_url":"https://api.github.com/users/Couls/orgs","repos_url":"https://api.github.com/users/Couls/repos","events_url":"https://api.github.com/users/Couls/events{/privacy}","received_events_url":"https://api.github.com/users/Couls/received_events","type":"User","site_admin":false},"body":"you restored the layer back to normal but it's still unanchored after being untilted","created_at":"2019-11-16T03:01:15Z","updated_at":"2019-11-16T03:01:15Z","html_url":"https://github.com/tgstation/tgstation/pull/47799#discussion_r347072999","pull_request_url":"https://api.github.com/repos/tgstation/tgstation/pulls/47799","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/comments/347072999"},"html":{"href":"https://github.com/tgstation/tgstation/pull/47799#discussion_r347072999"},"pull_request":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/47799"}},"in_reply_to_id":346723877},"pull_request":{"url":"https://api.github.com/repos/tgstation/tgstation/pulls/47799","id":341329463,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQxMzI5NDYz","html_url":"https://github.com/tgstation/tgstation/pull/47799","diff_url":"https://github.com/tgstation/tgstation/pull/47799.diff","patch_url":"https://github.com/tgstation/tgstation/pull/47799.patch","issue_url":"https://api.github.com/repos/tgstation/tgstation/issues/47799","number":47799,"state":"open","locked":false,"title":"Adds beating vending machines for free stuff/getting crushed to death","user":{"login":"Shapsy","id":3589655,"node_id":"MDQ6VXNlcjM1ODk2NTU=","avatar_url":"https://avatars0.githubusercontent.com/u/3589655?v=4","gravatar_id":"","url":"https://api.github.com/users/Shapsy","html_url":"https://github.com/Shapsy","followers_url":"https://api.github.com/users/Shapsy/followers","following_url":"https://api.github.com/users/Shapsy/following{/other_user}","gists_url":"https://api.github.com/users/Shapsy/gists{/gist_id}","starred_url":"https://api.github.com/users/Shapsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shapsy/subscriptions","organizations_url":"https://api.github.com/users/Shapsy/orgs","repos_url":"https://api.github.com/users/Shapsy/repos","events_url":"https://api.github.com/users/Shapsy/events{/privacy}","received_events_url":"https://api.github.com/users/Shapsy/received_events","type":"User","site_admin":false},"body":"<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. -->\r\n<!-- You can view Contributing.MD for a detailed description of the pull request process. -->\r\n\r\n## About The Pull Request\r\n[![dreamseeker_2019-11-15_01-46-36.png](https://i.imgur.com/02pHsJa.png)](https://i.imgur.com/g607zYm.png)\r\n\r\nYou can attack vending machines with objects to try and knock free things loose! You have a chance of getting a few trinkets for free for each whack! You also have a chance of the vendor falling over on your cheapass head and squish you and anyone else on the tile for 95 brute (or something like that, I'm open to interesting/funny ideas)\r\n\r\nMight be balance implications to this? If there's any machines that really shouldn't be giving stuff away unauthorized I can turn it off for them\r\n<!-- Describe The Pull Request. Please be sure every change is documented or this can delay review and even discourage maintainers from merging your PR! -->\r\n\r\n## Why It's Good For The Game\r\nAssistants squishing themselves to death trying to get free cigarettes is funny\r\n<!-- Please add a short description of why you think these changes would benefit the game. If you can't justify it in words, it might not be worth adding. -->\r\n\r\n## Changelog\r\n:cl: Ryll/Shaps\r\nadd: You can now beat on vending machines to try and knock loose free stuff! You can also almost kill yourself doing it, so it's your call if your life is worth ten bucks.\r\n/:cl:\r\n\r\n<!-- Both :cl:'s are required for the changelog to work! You can put your name to the right of the first :cl: if you want to overwrite your GitHub username as author ingame. -->\r\n<!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. -->\r\n","created_at":"2019-11-15T07:11:22Z","updated_at":"2019-11-16T03:01:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b61adbc4148a6fbd00f6a7acd8d6400b35b3c9ce","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":149581322,"node_id":"MDU6TGFiZWwxNDk1ODEzMjI=","url":"https://api.github.com/repos/tgstation/tgstation/labels/Feature","name":"Feature","color":"009800","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/tgstation/tgstation/pulls/47799/commits","review_comments_url":"https://api.github.com/repos/tgstation/tgstation/pulls/47799/comments","review_comment_url":"https://api.github.com/repos/tgstation/tgstation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tgstation/tgstation/issues/47799/comments","statuses_url":"https://api.github.com/repos/tgstation/tgstation/statuses/a8d40e4a335f4a23b09047244cb4665181618747","head":{"label":"Shapsy:i-wanted-ORANGE-not-LEMON-LIME-_crash_","ref":"i-wanted-ORANGE-not-LEMON-LIME-_crash_","sha":"a8d40e4a335f4a23b09047244cb4665181618747","user":{"login":"Shapsy","id":3589655,"node_id":"MDQ6VXNlcjM1ODk2NTU=","avatar_url":"https://avatars0.githubusercontent.com/u/3589655?v=4","gravatar_id":"","url":"https://api.github.com/users/Shapsy","html_url":"https://github.com/Shapsy","followers_url":"https://api.github.com/users/Shapsy/followers","following_url":"https://api.github.com/users/Shapsy/following{/other_user}","gists_url":"https://api.github.com/users/Shapsy/gists{/gist_id}","starred_url":"https://api.github.com/users/Shapsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shapsy/subscriptions","organizations_url":"https://api.github.com/users/Shapsy/orgs","repos_url":"https://api.github.com/users/Shapsy/repos","events_url":"https://api.github.com/users/Shapsy/events{/privacy}","received_events_url":"https://api.github.com/users/Shapsy/received_events","type":"User","site_admin":false},"repo":{"id":192015361,"node_id":"MDEwOlJlcG9zaXRvcnkxOTIwMTUzNjE=","name":"tgstation","full_name":"Shapsy/tgstation","private":false,"owner":{"login":"Shapsy","id":3589655,"node_id":"MDQ6VXNlcjM1ODk2NTU=","avatar_url":"https://avatars0.githubusercontent.com/u/3589655?v=4","gravatar_id":"","url":"https://api.github.com/users/Shapsy","html_url":"https://github.com/Shapsy","followers_url":"https://api.github.com/users/Shapsy/followers","following_url":"https://api.github.com/users/Shapsy/following{/other_user}","gists_url":"https://api.github.com/users/Shapsy/gists{/gist_id}","starred_url":"https://api.github.com/users/Shapsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shapsy/subscriptions","organizations_url":"https://api.github.com/users/Shapsy/orgs","repos_url":"https://api.github.com/users/Shapsy/repos","events_url":"https://api.github.com/users/Shapsy/events{/privacy}","received_events_url":"https://api.github.com/users/Shapsy/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Shapsy/tgstation","description":"the /tg/station branch of SS13","fork":true,"url":"https://api.github.com/repos/Shapsy/tgstation","forks_url":"https://api.github.com/repos/Shapsy/tgstation/forks","keys_url":"https://api.github.com/repos/Shapsy/tgstation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shapsy/tgstation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shapsy/tgstation/teams","hooks_url":"https://api.github.com/repos/Shapsy/tgstation/hooks","issue_events_url":"https://api.github.com/repos/Shapsy/tgstation/issues/events{/number}","events_url":"https://api.github.com/repos/Shapsy/tgstation/events","assignees_url":"https://api.github.com/repos/Shapsy/tgstation/assignees{/user}","branches_url":"https://api.github.com/repos/Shapsy/tgstation/branches{/branch}","tags_url":"https://api.github.com/repos/Shapsy/tgstation/tags","blobs_url":"https://api.github.com/repos/Shapsy/tgstation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shapsy/tgstation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shapsy/tgstation/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shapsy/tgstation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shapsy/tgstation/statuses/{sha}","languages_url":"https://api.github.com/repos/Shapsy/tgstation/languages","stargazers_url":"https://api.github.com/repos/Shapsy/tgstation/stargazers","contributors_url":"https://api.github.com/repos/Shapsy/tgstation/contributors","subscribers_url":"https://api.github.com/repos/Shapsy/tgstation/subscribers","subscription_url":"https://api.github.com/repos/Shapsy/tgstation/subscription","commits_url":"https://api.github.com/repos/Shapsy/tgstation/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shapsy/tgstation/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shapsy/tgstation/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shapsy/tgstation/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shapsy/tgstation/contents/{+path}","compare_url":"https://api.github.com/repos/Shapsy/tgstation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shapsy/tgstation/merges","archive_url":"https://api.github.com/repos/Shapsy/tgstation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shapsy/tgstation/downloads","issues_url":"https://api.github.com/repos/Shapsy/tgstation/issues{/number}","pulls_url":"https://api.github.com/repos/Shapsy/tgstation/pulls{/number}","milestones_url":"https://api.github.com/repos/Shapsy/tgstation/milestones{/number}","notifications_url":"https://api.github.com/repos/Shapsy/tgstation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shapsy/tgstation/labels{/name}","releases_url":"https://api.github.com/repos/Shapsy/tgstation/releases{/id}","deployments_url":"https://api.github.com/repos/Shapsy/tgstation/deployments","created_at":"2019-06-14T23:16:07Z","updated_at":"2019-11-15T06:50:03Z","pushed_at":"2019-11-16T01:45:43Z","git_url":"git://github.com/Shapsy/tgstation.git","ssh_url":"git@github.com:Shapsy/tgstation.git","clone_url":"https://github.com/Shapsy/tgstation.git","svn_url":"https://github.com/Shapsy/tgstation","homepage":"https://www.tgstation13.org/","size":1406433,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tgstation:master","ref":"master","sha":"61e70bf67ce34ce813b329ce714c06d48d3e7529","user":{"login":"tgstation","id":1363778,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjM3Nzg=","avatar_url":"https://avatars2.githubusercontent.com/u/1363778?v=4","gravatar_id":"","url":"https://api.github.com/users/tgstation","html_url":"https://github.com/tgstation","followers_url":"https://api.github.com/users/tgstation/followers","following_url":"https://api.github.com/users/tgstation/following{/other_user}","gists_url":"https://api.github.com/users/tgstation/gists{/gist_id}","starred_url":"https://api.github.com/users/tgstation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgstation/subscriptions","organizations_url":"https://api.github.com/users/tgstation/orgs","repos_url":"https://api.github.com/users/tgstation/repos","events_url":"https://api.github.com/users/tgstation/events{/privacy}","received_events_url":"https://api.github.com/users/tgstation/received_events","type":"Organization","site_admin":false},"repo":{"id":3234987,"node_id":"MDEwOlJlcG9zaXRvcnkzMjM0OTg3","name":"tgstation","full_name":"tgstation/tgstation","private":false,"owner":{"login":"tgstation","id":1363778,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNjM3Nzg=","avatar_url":"https://avatars2.githubusercontent.com/u/1363778?v=4","gravatar_id":"","url":"https://api.github.com/users/tgstation","html_url":"https://github.com/tgstation","followers_url":"https://api.github.com/users/tgstation/followers","following_url":"https://api.github.com/users/tgstation/following{/other_user}","gists_url":"https://api.github.com/users/tgstation/gists{/gist_id}","starred_url":"https://api.github.com/users/tgstation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgstation/subscriptions","organizations_url":"https://api.github.com/users/tgstation/orgs","repos_url":"https://api.github.com/users/tgstation/repos","events_url":"https://api.github.com/users/tgstation/events{/privacy}","received_events_url":"https://api.github.com/users/tgstation/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/tgstation/tgstation","description":"the /tg/station branch of SS13","fork":false,"url":"https://api.github.com/repos/tgstation/tgstation","forks_url":"https://api.github.com/repos/tgstation/tgstation/forks","keys_url":"https://api.github.com/repos/tgstation/tgstation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tgstation/tgstation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tgstation/tgstation/teams","hooks_url":"https://api.github.com/repos/tgstation/tgstation/hooks","issue_events_url":"https://api.github.com/repos/tgstation/tgstation/issues/events{/number}","events_url":"https://api.github.com/repos/tgstation/tgstation/events","assignees_url":"https://api.github.com/repos/tgstation/tgstation/assignees{/user}","branches_url":"https://api.github.com/repos/tgstation/tgstation/branches{/branch}","tags_url":"https://api.github.com/repos/tgstation/tgstation/tags","blobs_url":"https://api.github.com/repos/tgstation/tgstation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tgstation/tgstation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tgstation/tgstation/git/refs{/sha}","trees_url":"https://api.github.com/repos/tgstation/tgstation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tgstation/tgstation/statuses/{sha}","languages_url":"https://api.github.com/repos/tgstation/tgstation/languages","stargazers_url":"https://api.github.com/repos/tgstation/tgstation/stargazers","contributors_url":"https://api.github.com/repos/tgstation/tgstation/contributors","subscribers_url":"https://api.github.com/repos/tgstation/tgstation/subscribers","subscription_url":"https://api.github.com/repos/tgstation/tgstation/subscription","commits_url":"https://api.github.com/repos/tgstation/tgstation/commits{/sha}","git_commits_url":"https://api.github.com/repos/tgstation/tgstation/git/commits{/sha}","comments_url":"https://api.github.com/repos/tgstation/tgstation/comments{/number}","issue_comment_url":"https://api.github.com/repos/tgstation/tgstation/issues/comments{/number}","contents_url":"https://api.github.com/repos/tgstation/tgstation/contents/{+path}","compare_url":"https://api.github.com/repos/tgstation/tgstation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tgstation/tgstation/merges","archive_url":"https://api.github.com/repos/tgstation/tgstation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tgstation/tgstation/downloads","issues_url":"https://api.github.com/repos/tgstation/tgstation/issues{/number}","pulls_url":"https://api.github.com/repos/tgstation/tgstation/pulls{/number}","milestones_url":"https://api.github.com/repos/tgstation/tgstation/milestones{/number}","notifications_url":"https://api.github.com/repos/tgstation/tgstation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tgstation/tgstation/labels{/name}","releases_url":"https://api.github.com/repos/tgstation/tgstation/releases{/id}","deployments_url":"https://api.github.com/repos/tgstation/tgstation/deployments","created_at":"2012-01-21T17:32:47Z","updated_at":"2019-11-16T02:07:28Z","pushed_at":"2019-11-16T02:08:35Z","git_url":"git://github.com/tgstation/tgstation.git","ssh_url":"git@github.com:tgstation/tgstation.git","clone_url":"https://github.com/tgstation/tgstation.git","svn_url":"https://github.com/tgstation/tgstation","homepage":"https://www.tgstation13.org/","size":1406272,"stargazers_count":899,"watchers_count":899,"language":"DM","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2447,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1314,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":2447,"open_issues":1314,"watchers":899,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/47799"},"html":{"href":"https://github.com/tgstation/tgstation/pull/47799"},"issue":{"href":"https://api.github.com/repos/tgstation/tgstation/issues/47799"},"comments":{"href":"https://api.github.com/repos/tgstation/tgstation/issues/47799/comments"},"review_comments":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/47799/comments"},"review_comment":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tgstation/tgstation/pulls/47799/commits"},"statuses":{"href":"https://api.github.com/repos/tgstation/tgstation/statuses/a8d40e4a335f4a23b09047244cb4665181618747"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Couls"}}