{"action":"created","comment":{"url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/comments/67555594","id":67555594,"diff_hunk":"@@ -0,0 +1,143 @@\n+//Pop-out cake!\n+//A huge cake that can fit a person inside\n+//You can cut the cake up to 16 times to receive a cake slice. After that the cake is destroyed and a large cardboard box is left\n+\n+/obj/structure/popout_cake\n+\tname = \"large cake\"\n+\tdesc = \"An enormous multi-tiered cake.\"\n+\n+\ticon_state = \"popout_cake\"\n+\n+\tanchored = 0\n+\topacity = 0\n+\tdensity = 1\n+\n+\tvar/slices_amount = 16\n+\tvar/string_pulled = 0\n+\n+/obj/structure/popout_cake/Destroy()\n+\tfor(var/mob/living/L in locked_atoms + contents) //Release all mobs inside\n+\t\trelaymove(L, NORTH)\n+\n+\t..()\n+\n+/obj/structure/popout_cake/examine(mob/user)\n+\t.=..()\n+\n+\tuser.show_message(\"<span class='info'>There are [slices_amount] slices remaining.</span>\", MESSAGE_SEE)\n+\n+/obj/structure/popout_cake/attack_hand(mob/living/user)\n+\tif(locate(/mob/living) in contents)\n+\t\tto_chat(user, \"<span class='info'>There appears to be something inside of \\the [src]!</span>\")\n+\t\treturn\n+\n+\tuser.visible_message(\"<span class='notice'>[user] starts climbing into \\the [src]!</span>\")\n+\tif(do_after(user, src, 60))\n+\t\tuser.forceMove(src)\n+\t\tto_chat(user, \"<span class='info'><b>You are now inside the cake! When you're ready to emerge from the cake in a blaze of confetti and party horns, pull on the string. If you wish to leave without setting off the confetti, just attempt to move out of the cake!</b></span>\")\n+\n+/obj/structure/popout_cake/attack_slime(mob/user)\n+\treturn attack_hand(user)\n+\n+/obj/structure/popout_cake/attack_paw(mob/user)\n+\treturn attack_hand(user)\n+\n+/obj/structure/popout_cake/attackby(obj/item/W, mob/user)\n+\tif(W.is_sharp())\n+\t\tuser.visible_message(\"<span class='notice'>[user] starts cutting a slice from \\the [src].</span>\")\n+\n+\t\tspawn() //So that the proc can return 1, delaying the next attack\n+\t\t\tif(do_after(user, src, 10))\n+\t\t\t\tdrop_slice()\n+\t\t\t\tcheck_slices()\n+\n+\t\treturn 1\n+\n+/obj/structure/popout_cake/proc/drop_slice()\n+\tslices_amount--\n+\n+\treturn new /obj/item/weapon/reagent_containers/food/snacks/plaincakeslice/full(get_turf(src))\n+\n+/obj/structure/popout_cake/proc/check_slices()\n+\tif(slices_amount <= 0)\n+\t\tnew /obj/item/weapon/storage/box/large(get_turf(src))\n+\n+\t\tqdel(src)\n+\n+/obj/structure/popout_cake/verb/pull_string()\n+\tset name = \"Pull Party String\"\n+\tset desc = \"Activate a simple mechanism that lifts you out of the cake. This can only be done once!\"\n+\tset category = \"Object\"\n+\tset src = usr.loc\n+\n+\tif(!isturf(loc))\n+\t\treturn\n+\n+\tvar/mob/living/L = usr\n+\tif(!istype(L))\n+\t\treturn\n+\n+\tif(L.incapacitated())\n+\t\treturn\n+\n+\tif(string_pulled)\n+\t\tto_chat(L, \"<span class='info'>The string has already been pulled!</span>\")\n+\t\treturn\n+\n+\tvisible_message(\"<span class='notice'>All of a sudden, something emerges from \\the [src]!</span>\")\n+\tto_chat(L, \"<span class='info'>You pull on the party string!</span>\")\n+\n+\tL.forceMove(get_turf(src))","path":"code/game/objects/structures/popout_cake.dm","position":90,"original_position":90,"commit_id":"1a19e7bad7295c7aa4ee8dec2e7bf16d4b5a9af5","original_commit_id":"1a19e7bad7295c7aa4ee8dec2e7bf16d4b5a9af5","user":{"login":"9600bauds","id":6526157,"avatar_url":"https://avatars.githubusercontent.com/u/6526157?v=3","gravatar_id":"","url":"https://api.github.com/users/9600bauds","html_url":"https://github.com/9600bauds","followers_url":"https://api.github.com/users/9600bauds/followers","following_url":"https://api.github.com/users/9600bauds/following{/other_user}","gists_url":"https://api.github.com/users/9600bauds/gists{/gist_id}","starred_url":"https://api.github.com/users/9600bauds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9600bauds/subscriptions","organizations_url":"https://api.github.com/users/9600bauds/orgs","repos_url":"https://api.github.com/users/9600bauds/repos","events_url":"https://api.github.com/users/9600bauds/events{/privacy}","received_events_url":"https://api.github.com/users/9600bauds/received_events","type":"User","site_admin":false},"body":"Did you test pulling the string as someone other than the occupant?","created_at":"2016-06-17T18:32:46Z","updated_at":"2016-06-17T18:32:46Z","html_url":"https://github.com/d3athrow/vgstation13/pull/10604#discussion_r67555594","pull_request_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/10604","_links":{"self":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/comments/67555594"},"html":{"href":"https://github.com/d3athrow/vgstation13/pull/10604#discussion_r67555594"},"pull_request":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/10604"}}},"pull_request":{"url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/10604","id":74272667,"html_url":"https://github.com/d3athrow/vgstation13/pull/10604","diff_url":"https://github.com/d3athrow/vgstation13/pull/10604.diff","patch_url":"https://github.com/d3athrow/vgstation13/pull/10604.patch","issue_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/10604","number":10604,"state":"open","locked":false,"title":"Pop out cakes","user":{"login":"unid15","id":9512290,"avatar_url":"https://avatars.githubusercontent.com/u/9512290?v=3","gravatar_id":"","url":"https://api.github.com/users/unid15","html_url":"https://github.com/unid15","followers_url":"https://api.github.com/users/unid15/followers","following_url":"https://api.github.com/users/unid15/following{/other_user}","gists_url":"https://api.github.com/users/unid15/gists{/gist_id}","starred_url":"https://api.github.com/users/unid15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unid15/subscriptions","organizations_url":"https://api.github.com/users/unid15/orgs","repos_url":"https://api.github.com/users/unid15/repos","events_url":"https://api.github.com/users/unid15/events{/privacy}","received_events_url":"https://api.github.com/users/unid15/received_events","type":"User","site_admin":false},"body":"![ambush](https://cloud.githubusercontent.com/assets/9512290/16158133/2533a560-34bc-11e6-86f3-0dede32d6387.gif)\r\n\r\n\r\nAdds pop out cakes - huge edible cakes that can store a person inside of them - a stripper, an infected catbeast, a nuclear operative, the clown, the possibilities are endless...\r\n\r\nThe occupant can leave the cake at any time - either by simply moving out of it, or by pulling the party string. Pulling the party string activates party horns, shoots some sparks and slowly ejects the occupant. The party string can only be used once\r\n\r\nThe cake can be cut with any sharp item up to 16 times, producing fully edible cake slices (each contains 4 nutriment). When there are no more slices left, the cake disappears, leaving behind a cardboard box\r\n\r\nNuclear operatives can buy the cake for 3 telecrystals, and chefs can cook it in the microwave using 15 milk, 45 flour, 6 eggs and 6 cardboard sheets\r\n\r\nPARTY HORN SOUND: https://raw.githubusercontent.com/unid15/vgstation13/1a19e7bad7295c7aa4ee8dec2e7bf16d4b5a9af5/sound/effects/party_horn.ogg","created_at":"2016-06-17T16:51:26Z","updated_at":"2016-06-17T18:32:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd1feeee2a459f9abcb9cb56ab1c6b9dd4fb6cb7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/10604/commits","review_comments_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/10604/comments","review_comment_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/comments{/number}","comments_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/10604/comments","statuses_url":"https://api.github.com/repos/d3athrow/vgstation13/statuses/1a19e7bad7295c7aa4ee8dec2e7bf16d4b5a9af5","head":{"label":"unid15:suprise","ref":"suprise","sha":"1a19e7bad7295c7aa4ee8dec2e7bf16d4b5a9af5","user":{"login":"unid15","id":9512290,"avatar_url":"https://avatars.githubusercontent.com/u/9512290?v=3","gravatar_id":"","url":"https://api.github.com/users/unid15","html_url":"https://github.com/unid15","followers_url":"https://api.github.com/users/unid15/followers","following_url":"https://api.github.com/users/unid15/following{/other_user}","gists_url":"https://api.github.com/users/unid15/gists{/gist_id}","starred_url":"https://api.github.com/users/unid15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unid15/subscriptions","organizations_url":"https://api.github.com/users/unid15/orgs","repos_url":"https://api.github.com/users/unid15/repos","events_url":"https://api.github.com/users/unid15/events{/privacy}","received_events_url":"https://api.github.com/users/unid15/received_events","type":"User","site_admin":false},"repo":{"id":26714964,"name":"vgstation13","full_name":"unid15/vgstation13","owner":{"login":"unid15","id":9512290,"avatar_url":"https://avatars.githubusercontent.com/u/9512290?v=3","gravatar_id":"","url":"https://api.github.com/users/unid15","html_url":"https://github.com/unid15","followers_url":"https://api.github.com/users/unid15/followers","following_url":"https://api.github.com/users/unid15/following{/other_user}","gists_url":"https://api.github.com/users/unid15/gists{/gist_id}","starred_url":"https://api.github.com/users/unid15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unid15/subscriptions","organizations_url":"https://api.github.com/users/unid15/orgs","repos_url":"https://api.github.com/users/unid15/repos","events_url":"https://api.github.com/users/unid15/events{/privacy}","received_events_url":"https://api.github.com/users/unid15/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/unid15/vgstation13","description":"This is the vgstation's fork of baystation12's code.","fork":true,"url":"https://api.github.com/repos/unid15/vgstation13","forks_url":"https://api.github.com/repos/unid15/vgstation13/forks","keys_url":"https://api.github.com/repos/unid15/vgstation13/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unid15/vgstation13/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unid15/vgstation13/teams","hooks_url":"https://api.github.com/repos/unid15/vgstation13/hooks","issue_events_url":"https://api.github.com/repos/unid15/vgstation13/issues/events{/number}","events_url":"https://api.github.com/repos/unid15/vgstation13/events","assignees_url":"https://api.github.com/repos/unid15/vgstation13/assignees{/user}","branches_url":"https://api.github.com/repos/unid15/vgstation13/branches{/branch}","tags_url":"https://api.github.com/repos/unid15/vgstation13/tags","blobs_url":"https://api.github.com/repos/unid15/vgstation13/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unid15/vgstation13/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unid15/vgstation13/git/refs{/sha}","trees_url":"https://api.github.com/repos/unid15/vgstation13/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unid15/vgstation13/statuses/{sha}","languages_url":"https://api.github.com/repos/unid15/vgstation13/languages","stargazers_url":"https://api.github.com/repos/unid15/vgstation13/stargazers","contributors_url":"https://api.github.com/repos/unid15/vgstation13/contributors","subscribers_url":"https://api.github.com/repos/unid15/vgstation13/subscribers","subscription_url":"https://api.github.com/repos/unid15/vgstation13/subscription","commits_url":"https://api.github.com/repos/unid15/vgstation13/commits{/sha}","git_commits_url":"https://api.github.com/repos/unid15/vgstation13/git/commits{/sha}","comments_url":"https://api.github.com/repos/unid15/vgstation13/comments{/number}","issue_comment_url":"https://api.github.com/repos/unid15/vgstation13/issues/comments{/number}","contents_url":"https://api.github.com/repos/unid15/vgstation13/contents/{+path}","compare_url":"https://api.github.com/repos/unid15/vgstation13/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unid15/vgstation13/merges","archive_url":"https://api.github.com/repos/unid15/vgstation13/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unid15/vgstation13/downloads","issues_url":"https://api.github.com/repos/unid15/vgstation13/issues{/number}","pulls_url":"https://api.github.com/repos/unid15/vgstation13/pulls{/number}","milestones_url":"https://api.github.com/repos/unid15/vgstation13/milestones{/number}","notifications_url":"https://api.github.com/repos/unid15/vgstation13/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unid15/vgstation13/labels{/name}","releases_url":"https://api.github.com/repos/unid15/vgstation13/releases{/id}","deployments_url":"https://api.github.com/repos/unid15/vgstation13/deployments","created_at":"2014-11-16T13:31:27Z","updated_at":"2016-02-12T21:38:10Z","pushed_at":"2016-06-17T16:36:49Z","git_url":"git://github.com/unid15/vgstation13.git","ssh_url":"git@github.com:unid15/vgstation13.git","clone_url":"https://github.com/unid15/vgstation13.git","svn_url":"https://github.com/unid15/vgstation13","homepage":"","size":892953,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"d3athrow:Bleeding-Edge","ref":"Bleeding-Edge","sha":"f25e3736735eed99b09f1384eb403b4df660be71","user":{"login":"d3athrow","id":706947,"avatar_url":"https://avatars.githubusercontent.com/u/706947?v=3","gravatar_id":"","url":"https://api.github.com/users/d3athrow","html_url":"https://github.com/d3athrow","followers_url":"https://api.github.com/users/d3athrow/followers","following_url":"https://api.github.com/users/d3athrow/following{/other_user}","gists_url":"https://api.github.com/users/d3athrow/gists{/gist_id}","starred_url":"https://api.github.com/users/d3athrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3athrow/subscriptions","organizations_url":"https://api.github.com/users/d3athrow/orgs","repos_url":"https://api.github.com/users/d3athrow/repos","events_url":"https://api.github.com/users/d3athrow/events{/privacy}","received_events_url":"https://api.github.com/users/d3athrow/received_events","type":"User","site_admin":false},"repo":{"id":10441188,"name":"vgstation13","full_name":"d3athrow/vgstation13","owner":{"login":"d3athrow","id":706947,"avatar_url":"https://avatars.githubusercontent.com/u/706947?v=3","gravatar_id":"","url":"https://api.github.com/users/d3athrow","html_url":"https://github.com/d3athrow","followers_url":"https://api.github.com/users/d3athrow/followers","following_url":"https://api.github.com/users/d3athrow/following{/other_user}","gists_url":"https://api.github.com/users/d3athrow/gists{/gist_id}","starred_url":"https://api.github.com/users/d3athrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3athrow/subscriptions","organizations_url":"https://api.github.com/users/d3athrow/orgs","repos_url":"https://api.github.com/users/d3athrow/repos","events_url":"https://api.github.com/users/d3athrow/events{/privacy}","received_events_url":"https://api.github.com/users/d3athrow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/d3athrow/vgstation13","description":"Butts","fork":true,"url":"https://api.github.com/repos/d3athrow/vgstation13","forks_url":"https://api.github.com/repos/d3athrow/vgstation13/forks","keys_url":"https://api.github.com/repos/d3athrow/vgstation13/keys{/key_id}","collaborators_url":"https://api.github.com/repos/d3athrow/vgstation13/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/d3athrow/vgstation13/teams","hooks_url":"https://api.github.com/repos/d3athrow/vgstation13/hooks","issue_events_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/events{/number}","events_url":"https://api.github.com/repos/d3athrow/vgstation13/events","assignees_url":"https://api.github.com/repos/d3athrow/vgstation13/assignees{/user}","branches_url":"https://api.github.com/repos/d3athrow/vgstation13/branches{/branch}","tags_url":"https://api.github.com/repos/d3athrow/vgstation13/tags","blobs_url":"https://api.github.com/repos/d3athrow/vgstation13/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/d3athrow/vgstation13/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/d3athrow/vgstation13/git/refs{/sha}","trees_url":"https://api.github.com/repos/d3athrow/vgstation13/git/trees{/sha}","statuses_url":"https://api.github.com/repos/d3athrow/vgstation13/statuses/{sha}","languages_url":"https://api.github.com/repos/d3athrow/vgstation13/languages","stargazers_url":"https://api.github.com/repos/d3athrow/vgstation13/stargazers","contributors_url":"https://api.github.com/repos/d3athrow/vgstation13/contributors","subscribers_url":"https://api.github.com/repos/d3athrow/vgstation13/subscribers","subscription_url":"https://api.github.com/repos/d3athrow/vgstation13/subscription","commits_url":"https://api.github.com/repos/d3athrow/vgstation13/commits{/sha}","git_commits_url":"https://api.github.com/repos/d3athrow/vgstation13/git/commits{/sha}","comments_url":"https://api.github.com/repos/d3athrow/vgstation13/comments{/number}","issue_comment_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/comments{/number}","contents_url":"https://api.github.com/repos/d3athrow/vgstation13/contents/{+path}","compare_url":"https://api.github.com/repos/d3athrow/vgstation13/compare/{base}...{head}","merges_url":"https://api.github.com/repos/d3athrow/vgstation13/merges","archive_url":"https://api.github.com/repos/d3athrow/vgstation13/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/d3athrow/vgstation13/downloads","issues_url":"https://api.github.com/repos/d3athrow/vgstation13/issues{/number}","pulls_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls{/number}","milestones_url":"https://api.github.com/repos/d3athrow/vgstation13/milestones{/number}","notifications_url":"https://api.github.com/repos/d3athrow/vgstation13/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/d3athrow/vgstation13/labels{/name}","releases_url":"https://api.github.com/repos/d3athrow/vgstation13/releases{/id}","deployments_url":"https://api.github.com/repos/d3athrow/vgstation13/deployments","created_at":"2013-06-02T19:39:54Z","updated_at":"2016-06-15T20:29:13Z","pushed_at":"2016-06-17T16:51:26Z","git_url":"git://github.com/d3athrow/vgstation13.git","ssh_url":"git@github.com:d3athrow/vgstation13.git","clone_url":"https://github.com/d3athrow/vgstation13.git","svn_url":"https://github.com/d3athrow/vgstation13","homepage":"","size":1128655,"stargazers_count":86,"watchers_count":86,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":247,"mirror_url":null,"open_issues_count":1624,"forks":247,"open_issues":1624,"watchers":86,"default_branch":"Bleeding-Edge"}},"_links":{"self":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/10604"},"html":{"href":"https://github.com/d3athrow/vgstation13/pull/10604"},"issue":{"href":"https://api.github.com/repos/d3athrow/vgstation13/issues/10604"},"comments":{"href":"https://api.github.com/repos/d3athrow/vgstation13/issues/10604/comments"},"review_comments":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/10604/comments"},"review_comment":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/10604/commits"},"statuses":{"href":"https://api.github.com/repos/d3athrow/vgstation13/statuses/1a19e7bad7295c7aa4ee8dec2e7bf16d4b5a9af5"}}}}
{"actor":{"display_login":"9600bauds"}}