{"action":"created","comment":{"url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/pulls/comments/222077618","pull_request_review_id":160880244,"id":222077618,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjA3NzYxOA==","diff_hunk":"@@ -1,14 +1,43 @@\n+#define DUCTTAPE_NEEDED_BLINDFOLD 8\n+#define DUCTTAPE_NEEDED_GAG 8\n+#define DUCTTAPE_NEEDED_CUFF 10\n+\n /obj/item/weapon/tape_roll\n \tname = \"duct tape\"\n \tdesc = \"A roll of sticky tape. Possibly for taping ducks... or was that ducts?\"\n \ticon = 'icons/obj/bureaucracy.dmi'\n \ticon_state = \"taperoll\"\n \tw_class = ITEM_SIZE_SMALL\n+\tvar/uses_left = 30\n+\n+/obj/item/weapon/tape_roll/proc/has_enough_tape_left(var/amount_needed)\n+\treturn (uses_left >= amount_needed)? TRUE : FALSE\n+\n+/obj/item/weapon/tape_roll/proc/delete_if_empty()\n+\tif(uses_left < 1)\n+\t\tqdel(src)\n+\n+//Meant to be used by external entities wanting tape for their purpose\n+//It does a check to see if there's enough and then delete the roll if its empty after use\n+//Return 0 when not enough tape, returns true when there was enough\n+/obj/item/weapon/tape_roll/proc/use_tape(var/amount)\n+\tif(!has_enough_tape_left(amount))\n+\t\treturn FALSE\n+\tuses_left -= amount\n+\tdelete_if_empty()\n+\treturn TRUE","path":"code/game/objects/items/weapons/tape.dm","position":25,"original_position":28,"commit_id":"49ce2d45dcd8f4a90dcbe6379bb8bf2aad64aa80","original_commit_id":"8d48e7602812b5e5ba50c9566a48335c209b8138","user":{"login":"PsyCommando","id":8772299,"node_id":"MDQ6VXNlcjg3NzIyOTk=","avatar_url":"https://avatars3.githubusercontent.com/u/8772299?v=4","gravatar_id":"","url":"https://api.github.com/users/PsyCommando","html_url":"https://github.com/PsyCommando","followers_url":"https://api.github.com/users/PsyCommando/followers","following_url":"https://api.github.com/users/PsyCommando/following{/other_user}","gists_url":"https://api.github.com/users/PsyCommando/gists{/gist_id}","starred_url":"https://api.github.com/users/PsyCommando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PsyCommando/subscriptions","organizations_url":"https://api.github.com/users/PsyCommando/orgs","repos_url":"https://api.github.com/users/PsyCommando/repos","events_url":"https://api.github.com/users/PsyCommando/events{/privacy}","received_events_url":"https://api.github.com/users/PsyCommando/received_events","type":"User","site_admin":false},"body":"That's an interesting take. And I knew about the redundancy, but I didn't really see it worth making a fuss about since its literally a number comparison. But I can try your suggestion.\r\n","created_at":"2018-10-02T19:13:45Z","updated_at":"2018-10-02T19:13:45Z","html_url":"https://github.com/Persistent-SS13/Persistent-Bay/pull/766#discussion_r222077618","pull_request_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/pulls/766","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/pulls/comments/222077618"},"html":{"href":"https://github.com/Persistent-SS13/Persistent-Bay/pull/766#discussion_r222077618"},"pull_request":{"href":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/pulls/766"}},"in_reply_to_id":221524851},"pull_request":{"url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/pulls/766","id":219286063,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5Mjg2MDYz","html_url":"https://github.com/Persistent-SS13/Persistent-Bay/pull/766","diff_url":"https://github.com/Persistent-SS13/Persistent-Bay/pull/766.diff","patch_url":"https://github.com/Persistent-SS13/Persistent-Bay/pull/766.patch","issue_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/issues/766","number":766,"state":"open","locked":false,"title":"Finite duct tape","user":{"login":"PsyCommando","id":8772299,"node_id":"MDQ6VXNlcjg3NzIyOTk=","avatar_url":"https://avatars3.githubusercontent.com/u/8772299?v=4","gravatar_id":"","url":"https://api.github.com/users/PsyCommando","html_url":"https://github.com/PsyCommando","followers_url":"https://api.github.com/users/PsyCommando/followers","following_url":"https://api.github.com/users/PsyCommando/following{/other_user}","gists_url":"https://api.github.com/users/PsyCommando/gists{/gist_id}","starred_url":"https://api.github.com/users/PsyCommando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PsyCommando/subscriptions","organizations_url":"https://api.github.com/users/PsyCommando/orgs","repos_url":"https://api.github.com/users/PsyCommando/repos","events_url":"https://api.github.com/users/PsyCommando/events{/privacy}","received_events_url":"https://api.github.com/users/PsyCommando/received_events","type":"User","site_admin":false},"body":"<!-- \r\n!!IMPORTANT!!\r\nChanges must be reviewed and approved by a developer before being merged.\r\n\r\nIf a developer has approved your PR, any other developer may immediately merge it, or the same developer may merge it after 24 hours.\r\n\r\nA developer may not merge their own PR without the approval of two other developers.\r\n\r\nDo not forget to add a changelog when you have made admin/player facing changes that can alter gameplay.\r\nExamples which require a changelog entry include:\r\n* Adding/removing objects that players may interact with, or the way they function.\r\n* Adding/removing/altering admin tools.\r\n* Changing the map.\r\n\r\nExamples were changelog entries are optional/not typically required:\r\n* Cosmetic changes such as descriptions, sound effects, etc.\r\n* Optimizations and other changes to underlying systems which do not affect gameplay.\r\n* Minor bug fixes.\r\n\r\nYou find a README and example file in .\\html\\changelogs\\ for further instructions.\r\n-->\r\nTweaked duct tape to have a limited amount of uses.\r\nHas 30 uses, but some usage will consume more than one use, like cuffing, gagging, blindfolding, crafting, repairing, and surgery using duct tape.  Sticking paper to walls and stuff still consumes a single use.\r\n\r\nI wasn't sure if I should have used a datum or something for the numbers, considering how spread out duct tape uses were, so I just defined some macros with the needed quantities where it was used.","created_at":"2018-10-01T07:48:39Z","updated_at":"2018-10-02T19:13:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d772621a92f9c3ab8aff0ae339d8d6f6f3923704","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1071074657,"node_id":"MDU6TGFiZWwxMDcxMDc0NjU3","url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/labels/Approved%20for%20DEV","name":"Approved for DEV","color":"37b7ba","default":false},{"id":1046946641,"node_id":"MDU6TGFiZWwxMDQ2OTQ2NjQx","url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/labels/Feature%20Change","name":"Feature Change","color":"e8e53a","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/pulls/766/commits","review_comments_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/pulls/766/comments","review_comment_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/issues/766/comments","statuses_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/statuses/49ce2d45dcd8f4a90dcbe6379bb8bf2aad64aa80","head":{"label":"PsyCommando:Finite-duct-tape","ref":"Finite-duct-tape","sha":"49ce2d45dcd8f4a90dcbe6379bb8bf2aad64aa80","user":{"login":"PsyCommando","id":8772299,"node_id":"MDQ6VXNlcjg3NzIyOTk=","avatar_url":"https://avatars3.githubusercontent.com/u/8772299?v=4","gravatar_id":"","url":"https://api.github.com/users/PsyCommando","html_url":"https://github.com/PsyCommando","followers_url":"https://api.github.com/users/PsyCommando/followers","following_url":"https://api.github.com/users/PsyCommando/following{/other_user}","gists_url":"https://api.github.com/users/PsyCommando/gists{/gist_id}","starred_url":"https://api.github.com/users/PsyCommando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PsyCommando/subscriptions","organizations_url":"https://api.github.com/users/PsyCommando/orgs","repos_url":"https://api.github.com/users/PsyCommando/repos","events_url":"https://api.github.com/users/PsyCommando/events{/privacy}","received_events_url":"https://api.github.com/users/PsyCommando/received_events","type":"User","site_admin":false},"repo":{"id":148505010,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg1MDUwMTA=","name":"Persistent-Bay","full_name":"PsyCommando/Persistent-Bay","private":false,"owner":{"login":"PsyCommando","id":8772299,"node_id":"MDQ6VXNlcjg3NzIyOTk=","avatar_url":"https://avatars3.githubusercontent.com/u/8772299?v=4","gravatar_id":"","url":"https://api.github.com/users/PsyCommando","html_url":"https://github.com/PsyCommando","followers_url":"https://api.github.com/users/PsyCommando/followers","following_url":"https://api.github.com/users/PsyCommando/following{/other_user}","gists_url":"https://api.github.com/users/PsyCommando/gists{/gist_id}","starred_url":"https://api.github.com/users/PsyCommando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PsyCommando/subscriptions","organizations_url":"https://api.github.com/users/PsyCommando/orgs","repos_url":"https://api.github.com/users/PsyCommando/repos","events_url":"https://api.github.com/users/PsyCommando/events{/privacy}","received_events_url":"https://api.github.com/users/PsyCommando/received_events","type":"User","site_admin":false},"html_url":"https://github.com/PsyCommando/Persistent-Bay","description":"A fork of baycode that saves and loads characters and the station.","fork":true,"url":"https://api.github.com/repos/PsyCommando/Persistent-Bay","forks_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/forks","keys_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/teams","hooks_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/hooks","issue_events_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/issues/events{/number}","events_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/events","assignees_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/assignees{/user}","branches_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/branches{/branch}","tags_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/tags","blobs_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/git/refs{/sha}","trees_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/statuses/{sha}","languages_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/languages","stargazers_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/stargazers","contributors_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/contributors","subscribers_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/subscribers","subscription_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/subscription","commits_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/commits{/sha}","git_commits_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/git/commits{/sha}","comments_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/comments{/number}","issue_comment_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/issues/comments{/number}","contents_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/contents/{+path}","compare_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/merges","archive_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/downloads","issues_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/issues{/number}","pulls_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/pulls{/number}","milestones_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/milestones{/number}","notifications_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/labels{/name}","releases_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/releases{/id}","deployments_url":"https://api.github.com/repos/PsyCommando/Persistent-Bay/deployments","created_at":"2018-09-12T15:51:09Z","updated_at":"2018-09-23T18:34:47Z","pushed_at":"2018-10-01T17:40:56Z","git_url":"git://github.com/PsyCommando/Persistent-Bay.git","ssh_url":"git@github.com:PsyCommando/Persistent-Bay.git","clone_url":"https://github.com/PsyCommando/Persistent-Bay.git","svn_url":"https://github.com/PsyCommando/Persistent-Bay","homepage":null,"size":1016320,"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,"open_issues_count":0,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"Persistent-SS13:dev","ref":"dev","sha":"8032263e296b7f7ae4a2d146165caf3ec67fee69","user":{"login":"Persistent-SS13","id":33099172,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzMDk5MTcy","avatar_url":"https://avatars1.githubusercontent.com/u/33099172?v=4","gravatar_id":"","url":"https://api.github.com/users/Persistent-SS13","html_url":"https://github.com/Persistent-SS13","followers_url":"https://api.github.com/users/Persistent-SS13/followers","following_url":"https://api.github.com/users/Persistent-SS13/following{/other_user}","gists_url":"https://api.github.com/users/Persistent-SS13/gists{/gist_id}","starred_url":"https://api.github.com/users/Persistent-SS13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Persistent-SS13/subscriptions","organizations_url":"https://api.github.com/users/Persistent-SS13/orgs","repos_url":"https://api.github.com/users/Persistent-SS13/repos","events_url":"https://api.github.com/users/Persistent-SS13/events{/privacy}","received_events_url":"https://api.github.com/users/Persistent-SS13/received_events","type":"Organization","site_admin":false},"repo":{"id":113623633,"node_id":"MDEwOlJlcG9zaXRvcnkxMTM2MjM2MzM=","name":"Persistent-Bay","full_name":"Persistent-SS13/Persistent-Bay","private":false,"owner":{"login":"Persistent-SS13","id":33099172,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzMDk5MTcy","avatar_url":"https://avatars1.githubusercontent.com/u/33099172?v=4","gravatar_id":"","url":"https://api.github.com/users/Persistent-SS13","html_url":"https://github.com/Persistent-SS13","followers_url":"https://api.github.com/users/Persistent-SS13/followers","following_url":"https://api.github.com/users/Persistent-SS13/following{/other_user}","gists_url":"https://api.github.com/users/Persistent-SS13/gists{/gist_id}","starred_url":"https://api.github.com/users/Persistent-SS13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Persistent-SS13/subscriptions","organizations_url":"https://api.github.com/users/Persistent-SS13/orgs","repos_url":"https://api.github.com/users/Persistent-SS13/repos","events_url":"https://api.github.com/users/Persistent-SS13/events{/privacy}","received_events_url":"https://api.github.com/users/Persistent-SS13/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Persistent-SS13/Persistent-Bay","description":"A fork of baycode that saves and loads characters and the station.","fork":false,"url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay","forks_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/forks","keys_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/teams","hooks_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/hooks","issue_events_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/issues/events{/number}","events_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/events","assignees_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/assignees{/user}","branches_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/branches{/branch}","tags_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/tags","blobs_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/git/refs{/sha}","trees_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/statuses/{sha}","languages_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/languages","stargazers_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/stargazers","contributors_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/contributors","subscribers_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/subscribers","subscription_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/subscription","commits_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/commits{/sha}","git_commits_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/git/commits{/sha}","comments_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/comments{/number}","issue_comment_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/issues/comments{/number}","contents_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/contents/{+path}","compare_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/merges","archive_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/downloads","issues_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/issues{/number}","pulls_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/pulls{/number}","milestones_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/milestones{/number}","notifications_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/labels{/name}","releases_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/releases{/id}","deployments_url":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/deployments","created_at":"2017-12-08T22:38:39Z","updated_at":"2018-10-02T08:21:40Z","pushed_at":"2018-10-02T17:01:36Z","git_url":"git://github.com/Persistent-SS13/Persistent-Bay.git","ssh_url":"git@github.com:Persistent-SS13/Persistent-Bay.git","clone_url":"https://github.com/Persistent-SS13/Persistent-Bay.git","svn_url":"https://github.com/Persistent-SS13/Persistent-Bay","homepage":null,"size":1017151,"stargazers_count":18,"watchers_count":18,"language":"DM","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":45,"open_issues":39,"watchers":18,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/pulls/766"},"html":{"href":"https://github.com/Persistent-SS13/Persistent-Bay/pull/766"},"issue":{"href":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/issues/766"},"comments":{"href":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/issues/766/comments"},"review_comments":{"href":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/pulls/766/comments"},"review_comment":{"href":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/pulls/766/commits"},"statuses":{"href":"https://api.github.com/repos/Persistent-SS13/Persistent-Bay/statuses/49ce2d45dcd8f4a90dcbe6379bb8bf2aad64aa80"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"PsyCommando"}}