{"action":"created","comment":{"url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/comments/29885947","id":29885947,"diff_hunk":"@@ -299,9 +298,95 @@\n \t\timg = P\n \t\tuser.drop_item(P, src)\n \t\tuser << \"<span class='notice'>You attach the photo to the piece of paper.</span>\"\n+\telse if(P.is_hot())\n+\t\tsrc.burn_paper(user)\n+\t\treturn //no fingerprints, paper is gone\n \tadd_fingerprint(user)\n+\treturn ..()\n+\n+/obj/item/proc/burn_paper(mob/user)\n+\tvar/prot = 0\n+\tif(ishuman(user))\n+\t\tvar/mob/living/carbon/human/H = user\n+\t\tif (M_RESIST_HEAT in H.mutations)\n+\t\t\tprot = 1\n+\t\telse if(H.gloves)\n+\t\t\tvar/obj/item/clothing/gloves/G = H.gloves\n+\t\t\tif(G.max_heat_protection_temperature)\n+\t\t\t\tprot = (G.max_heat_protection_temperature > AUTOIGNITION_PAPER)\n+\t\tif(!prot && (M_CLUMSY in H.mutations) && prob(50)) //only fail if human\n+\t\t\tH.apply_damage(10,BURN,(pick(\"l_hand\", \"r_hand\")))\n+\t\t\tuser.drop_hands()\n+\t\t\tuser.visible_message( \\\n+\t\t\t\t\"<span class='notice'>[user] tries to burn the [src.name], but burns \\his hand trying!</span>\", \\\n+\t\t\t\t\"<span class='warning'>You try to burn the [src.name], but burn your hand trying!</span>\")\n+\t\t\treturn //you fail before even managing to burn the paper!\n+\tif(prot) //user is human and is protected from fire, let's make them a badass\n+\t\tuser.visible_message( \\\n+\t\t\t\"<span class='warning'>[user] holds up the [src.name] and sets it on fire, holding it in \\his hand as it burns down to ashes. Damn, \\he's cold.</span>\", \\\n+\t\t\t\"<span class='warning'>You hold up the [src.name] and set it on fire, holding it in your hand as it burns down to ashes. Damn, you're cold.</span>\")\n+\telse\n+\t\tuser.visible_message( \\\n+\t\t\t\"<span class='warning'>[user] holds up the [src.name] and sets it on fire, reducing it to a heap of ashes.</span>\", \\\n+\t\t\t\"<span class='warning'>You hold up the [src.name] and set it on fire, reducing it to a heap of ashes.</span>\")\n+\tnew ashtype(get_turf(src)) //not using ashify() since it calls for src.loc rather than get_turf(src), and requires the object to be on fire also\n+\tqdel(src)\n \treturn\n \n+var/global/list/paper_folding_results = list ( \\\n+\t\"paper plane\" = /obj/item/weapon/p_folded/plane,\n+\t\"paper hat\" = /obj/item/weapon/p_folded/hat,\n+\t\"ball of paper\" = /obj/item/weapon/p_folded/ball,\n+\t\"folded note\" = /obj/item/weapon/p_folded/note_small,\n+\t\"origami crane\" = /obj/item/weapon/p_folded/crane,\n+\t\"origami boat\" = /obj/item/weapon/p_folded/boat,\n+\t\"origami heart\" = /obj/item/weapon/p_folded/folded_heart,\n+\t)\n+\n+/obj/item/weapon/paper/verb/fold()\n+\tset category = \"Object\"\n+\tset name = \"Fold paper\"\n+\tset src in usr\n+\n+\tif (!canfold(usr)) return\n+\t. = paper_folding_results[(input(\"What do you want to make the paper into?\", \"Paper Folding\") as null|anything in paper_folding_results)]\n+\tif (. == null) return\n+\tif (!canfold(usr)) return //second check in case some chucklefuck moves the paper or falls down while the menu is open\n+\n+\tusr.drop_item(src)\t//Drop the original paper to free our hand and call proper inventory handling code\n+\tvar/obj/item/weapon/p_folded/P = new .(get_turf(usr)) \t//Let's make a new item\n+\tP.unfolded = src\t\t\t\t\t\t\t\t\t\t//that unfolds into the original paper\n+\tsrc.loc = P\t\t\t\t\t\t\t\t\t\t\t\t//and also contains it, for good measure.\n+\tusr.put_in_hands(P)\n+\tP.pixel_y = src.pixel_y\n+\tP.pixel_x = src.pixel_x\n+\tif (istype(src, /obj/item/weapon/paper/nano))\n+\t\tP.color = \"#9A9A9A\"\n+\t\tP.nano = 1\n+\tusr.visible_message(\"<span class='notice'>[usr] folds \\the [src.name] into a [P.name].</span>\", \"<span class='notice'>You fold \\the [src.name] into a [P.name].</span>\")\n+\tP.add_fingerprint(usr)\n+\treturn\n+\n+/obj/item/weapon/paper/proc/canfold(mob/user)\n+\tif(!user)\n+\t\treturn 0\n+\tif(user.stat || user.restrained())\n+\t\tusr << \"<span class='notice'>You can't do that while restrained.</span>\"\n+\t\treturn 0\n+\tif(user.l_hand != src && user.r_hand != src)\n+\t\tusr << \"<span class='notice'>You'll need [src] in your hands to do that.</span>\"\n+\t\treturn 0\n+\treturn 1\n+\n+/obj/item/weapon/paper/verb/wipe_color() //since we don't have erasers or anything","path":"code/modules/paperwork/paper.dm","position":null,"original_position":150,"commit_id":"ab20d9711e42582bd2d9aa53005e6555bf4725de","original_commit_id":"1d73f3b9eb57e2a4d4d09784cc39a3b3df328c0d","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":"That's a possibility, yeah. But then I'd have to go around the maps, scattering erasers everywhere where a pen is found, and make map-changing PRs just to make it available.\r\nAnd also sprite the eraser, which I'm awful at.","created_at":"2015-05-07T19:14:34Z","updated_at":"2015-05-07T19:14:34Z","html_url":"https://github.com/d3athrow/vgstation13/pull/4333#discussion_r29885947","pull_request_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/4333","_links":{"self":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/comments/29885947"},"html":{"href":"https://github.com/d3athrow/vgstation13/pull/4333#discussion_r29885947"},"pull_request":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/4333"}}},"pull_request":{"url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/4333","id":34946454,"html_url":"https://github.com/d3athrow/vgstation13/pull/4333","diff_url":"https://github.com/d3athrow/vgstation13/pull/4333.diff","patch_url":"https://github.com/d3athrow/vgstation13/pull/4333.patch","issue_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/4333","number":4333,"state":"open","locked":false,"title":"Paper folding, paper burning, & other long-overdue useless paper stuff","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":"Something like two and a half months ago, I said to myself \"I will learn how to code for spess\", so I gave myself a small project, inconsequential enough that it wouldn't matter if the code ended up being so shit I had to scrap it. So I did this silly stuff with paper planes, to teach myself BYOND and attackby() and verbs and whatnot.\r\nAnd so the code ended up being so shit, I scrapped it.\r\nNow that I actually know what I'm doing, I hastily patched it back to acceptable code.\r\n\r\nCHANGELOG:\r\n* You can now fold paper via the right-click \"Fold paper\" verb. Includes paper planes, paper cranes, balls of paper, and 4 (four) (cuatro) more things. In all cases, the paper can be unfolded back.\r\n* Paper hats are now actually an item, rather than wearing a plain sheet of paper on your head and it somehow becoming a hat.\r\n* You can now burn (ashify) paper by slapping it with a lighter or welding tool or similar.\r\n* Fixed throw_impact to always pass the user variable, previously it was only called when the item hit the ground.\r\n* You can color folded paper with crayons. However I then had to deal with what to do with the coloring after you unfold the paper, so I made it so that if a paper has a custom color, the window popup changes it's background color to that of the paper's (but if you want to actually color the paper you have to fold it first, then color it and then unfold it, since using a crayon on the raw paper just writes on it instead). I then also had to deal with how to clear the coloring if you ever wanted to actually do that, so I had to make a \"wipe color\" verb that only appears when the paper is colored, since there are no erasers or anything of the sort. What a trainwreck of unnecessary, unintuitive features that was.\r\n\r\nPOSSIBLE BALANCE ISSUES:\r\nCult talisman papers are a child of paper, which means they are affected by this stuff. A clever Cultist could fold a talisman into a non-suspicious paper crane, then unfold it when he wants to use it. Or carry around a lighter and burn his talismans if he thinks he might be about to get caught.\r\n\r\nOTHER STUFF:\r\nI would have added more origami shapes, but I am a terrible spriter. Anyone's welcome to improve my attempts.\r\nDemonstration .whebbum: http://puu.sh/hF01m/69d80dec7b.webm","created_at":"2015-05-07T18:54:06Z","updated_at":"2015-05-07T19:14:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d5d08159c662b209cd123cfd020a2aec63f6f201","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/4333/commits","review_comments_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/4333/comments","review_comment_url":"https://api.github.com/repos/d3athrow/vgstation13/pulls/comments{/number}","comments_url":"https://api.github.com/repos/d3athrow/vgstation13/issues/4333/comments","statuses_url":"https://api.github.com/repos/d3athrow/vgstation13/statuses/ab20d9711e42582bd2d9aa53005e6555bf4725de","head":{"label":"9600bauds:paper2thepapening","ref":"paper2thepapening","sha":"ab20d9711e42582bd2d9aa53005e6555bf4725de","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},"repo":{"id":30905092,"name":"vgstation13","full_name":"9600bauds/vgstation13","owner":{"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},"private":false,"html_url":"https://github.com/9600bauds/vgstation13","description":"This is the vgstation's fork of baystation12's code.","fork":true,"url":"https://api.github.com/repos/9600bauds/vgstation13","forks_url":"https://api.github.com/repos/9600bauds/vgstation13/forks","keys_url":"https://api.github.com/repos/9600bauds/vgstation13/keys{/key_id}","collaborators_url":"https://api.github.com/repos/9600bauds/vgstation13/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/9600bauds/vgstation13/teams","hooks_url":"https://api.github.com/repos/9600bauds/vgstation13/hooks","issue_events_url":"https://api.github.com/repos/9600bauds/vgstation13/issues/events{/number}","events_url":"https://api.github.com/repos/9600bauds/vgstation13/events","assignees_url":"https://api.github.com/repos/9600bauds/vgstation13/assignees{/user}","branches_url":"https://api.github.com/repos/9600bauds/vgstation13/branches{/branch}","tags_url":"https://api.github.com/repos/9600bauds/vgstation13/tags","blobs_url":"https://api.github.com/repos/9600bauds/vgstation13/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/9600bauds/vgstation13/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/9600bauds/vgstation13/git/refs{/sha}","trees_url":"https://api.github.com/repos/9600bauds/vgstation13/git/trees{/sha}","statuses_url":"https://api.github.com/repos/9600bauds/vgstation13/statuses/{sha}","languages_url":"https://api.github.com/repos/9600bauds/vgstation13/languages","stargazers_url":"https://api.github.com/repos/9600bauds/vgstation13/stargazers","contributors_url":"https://api.github.com/repos/9600bauds/vgstation13/contributors","subscribers_url":"https://api.github.com/repos/9600bauds/vgstation13/subscribers","subscription_url":"https://api.github.com/repos/9600bauds/vgstation13/subscription","commits_url":"https://api.github.com/repos/9600bauds/vgstation13/commits{/sha}","git_commits_url":"https://api.github.com/repos/9600bauds/vgstation13/git/commits{/sha}","comments_url":"https://api.github.com/repos/9600bauds/vgstation13/comments{/number}","issue_comment_url":"https://api.github.com/repos/9600bauds/vgstation13/issues/comments{/number}","contents_url":"https://api.github.com/repos/9600bauds/vgstation13/contents/{+path}","compare_url":"https://api.github.com/repos/9600bauds/vgstation13/compare/{base}...{head}","merges_url":"https://api.github.com/repos/9600bauds/vgstation13/merges","archive_url":"https://api.github.com/repos/9600bauds/vgstation13/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/9600bauds/vgstation13/downloads","issues_url":"https://api.github.com/repos/9600bauds/vgstation13/issues{/number}","pulls_url":"https://api.github.com/repos/9600bauds/vgstation13/pulls{/number}","milestones_url":"https://api.github.com/repos/9600bauds/vgstation13/milestones{/number}","notifications_url":"https://api.github.com/repos/9600bauds/vgstation13/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/9600bauds/vgstation13/labels{/name}","releases_url":"https://api.github.com/repos/9600bauds/vgstation13/releases{/id}","created_at":"2015-02-17T06:15:00Z","updated_at":"2015-02-17T06:15:11Z","pushed_at":"2015-05-07T19:09:06Z","git_url":"git://github.com/9600bauds/vgstation13.git","ssh_url":"git@github.com:9600bauds/vgstation13.git","clone_url":"https://github.com/9600bauds/vgstation13.git","svn_url":"https://github.com/9600bauds/vgstation13","homepage":"","size":869920,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"Bleeding-Edge"}},"base":{"label":"d3athrow:Bleeding-Edge","ref":"Bleeding-Edge","sha":"c6a43be1312fa187c1f5bc00714faaa6b609ce04","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":"This is the vgstation's fork of baystation12's code.","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}","created_at":"2013-06-02T19:39:54Z","updated_at":"2015-05-07T18:01:50Z","pushed_at":"2015-05-07T19:09:07Z","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":1067728,"stargazers_count":56,"watchers_count":56,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":164,"mirror_url":null,"open_issues_count":485,"forks":164,"open_issues":485,"watchers":56,"default_branch":"Bleeding-Edge"}},"_links":{"self":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/4333"},"html":{"href":"https://github.com/d3athrow/vgstation13/pull/4333"},"issue":{"href":"https://api.github.com/repos/d3athrow/vgstation13/issues/4333"},"comments":{"href":"https://api.github.com/repos/d3athrow/vgstation13/issues/4333/comments"},"review_comments":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/4333/comments"},"review_comment":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/d3athrow/vgstation13/pulls/4333/commits"},"statuses":{"href":"https://api.github.com/repos/d3athrow/vgstation13/statuses/ab20d9711e42582bd2d9aa53005e6555bf4725de"}}}}