{"action":"created","comment":{"url":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments/47741421","id":47741421,"diff_hunk":"@@ -428,3 +428,102 @@\n \tdesc = \"A special bulky suit that protects against hazardous, low pressure environments. Has an additional layer of armor.\"\n \tarmor = list(melee = 45, bullet = 25, laser = 30, energy = 10, bomb = 25, bio = 100, rad = 50)\n \thelmettype = /obj/item/clothing/head/helmet/space/hardsuit/security/hos\n+\n+\n+\n+/////////////SHIELDED//////////////////////////////////\n+\n+/obj/item/clothing/suit/space/hardsuit/shielded\n+\tname = \"shielded hardsuit\"\n+\tdesc = \"A hardsuit with built in energy shielding. Will rapidly recharge when not under fire.\"\n+\ticon_state = \"hardsuit-hos\"\n+\thelmettype = /obj/item/clothing/head/helmet/space/hardsuit/security/hos\n+\tvar/current_charges = 3\n+\tvar/max_charges = 3 //How many charges total the shielding has\n+\tvar/recharge_delay = 200 //How long after we've been shot before we can start recharging. 20 seconds here\n+\tvar/recharge_cooldown = 0 //Time since we've last been shot\n+\tvar/recharge_rate = 1 //How quickly the shield recharges once it starts charging\n+\tvar/SHIELD_STATE = \"shield-old\"\n+\tvar/SHIELD_ON = \"shield-old\"\n+\n+/obj/item/clothing/suit/space/hardsuit/shielded/hit_reaction(mob/living/carbon/human/owner, attack_text)\n+\tif(current_charges > 0)\n+\t\tvar/datum/effect_system/spark_spread/s = new\n+\t\ts.set_up(2, 1, src)\n+\t\ts.start()\n+\t\towner.visible_message(\"The [attack_text] sparks harmlessly off [owner]'s shields!\")\n+\t\tcurrent_charges--\n+\t\trecharge_cooldown = world.time + recharge_delay\n+\t\tif(current_charges <= 0)\n+\t\t\towner.visible_message(\"[owner]'s shield overloads!\")\n+\t\t\tSHIELD_STATE = \"broken\"\n+\t\t\towner.update_inv_wear_suit()\n+\t\treturn 1\n+\treturn 0\n+\n+\n+\n+/obj/item/clothing/suit/space/hardsuit/shielded/New()\n+\t..()\n+\tSSobj.processing |= src\n+\n+/obj/item/clothing/suit/space/hardsuit/shielded/Destroy()\n+\tSSobj.processing.Remove(src)\n+\treturn ..()","path":"code/modules/clothing/spacesuits/hardsuit.dm","position":45,"original_position":45,"commit_id":"b0584947e2be4edd8d46bffa45f1ce7651d94d17","original_commit_id":"b0584947e2be4edd8d46bffa45f1ce7651d94d17","user":{"login":"tkdrg","id":6563111,"avatar_url":"https://avatars.githubusercontent.com/u/6563111?v=3","gravatar_id":"","url":"https://api.github.com/users/tkdrg","html_url":"https://github.com/tkdrg","followers_url":"https://api.github.com/users/tkdrg/followers","following_url":"https://api.github.com/users/tkdrg/following{/other_user}","gists_url":"https://api.github.com/users/tkdrg/gists{/gist_id}","starred_url":"https://api.github.com/users/tkdrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkdrg/subscriptions","organizations_url":"https://api.github.com/users/tkdrg/orgs","repos_url":"https://api.github.com/users/tkdrg/repos","events_url":"https://api.github.com/users/tkdrg/events{/privacy}","received_events_url":"https://api.github.com/users/tkdrg/received_events","type":"User","site_admin":false},"body":"This is wasteful. Add it to the processing list on hit_reaction and remove it once fully charged on process(), that way you won't incur needless proccall overhead every tick just from existing, as long as it is idle.","created_at":"2015-12-16T06:42:12Z","updated_at":"2015-12-16T06:42:12Z","html_url":"https://github.com/tgstation/-tg-station/pull/13515#discussion_r47741421","pull_request_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/13515","_links":{"self":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments/47741421"},"html":{"href":"https://github.com/tgstation/-tg-station/pull/13515#discussion_r47741421"},"pull_request":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/13515"}}},"pull_request":{"url":"https://api.github.com/repos/tgstation/-tg-station/pulls/13515","id":53072578,"html_url":"https://github.com/tgstation/-tg-station/pull/13515","diff_url":"https://github.com/tgstation/-tg-station/pull/13515.diff","patch_url":"https://github.com/tgstation/-tg-station/pull/13515.patch","issue_url":"https://api.github.com/repos/tgstation/-tg-station/issues/13515","number":13515,"state":"open","locked":false,"title":"Shielded hardsuit armor","user":{"login":"KorPhaeron","id":14340985,"avatar_url":"https://avatars.githubusercontent.com/u/14340985?v=3","gravatar_id":"","url":"https://api.github.com/users/KorPhaeron","html_url":"https://github.com/KorPhaeron","followers_url":"https://api.github.com/users/KorPhaeron/followers","following_url":"https://api.github.com/users/KorPhaeron/following{/other_user}","gists_url":"https://api.github.com/users/KorPhaeron/gists{/gist_id}","starred_url":"https://api.github.com/users/KorPhaeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KorPhaeron/subscriptions","organizations_url":"https://api.github.com/users/KorPhaeron/orgs","repos_url":"https://api.github.com/users/KorPhaeron/repos","events_url":"https://api.github.com/users/KorPhaeron/events{/privacy}","received_events_url":"https://api.github.com/users/KorPhaeron/received_events","type":"User","site_admin":false},"body":"Remade because I did something weird to the list PR and its easier to copypaste the one file over than figure out what.\r\n\r\nShielded hardsuit armour will block all hits until it runs out of charges.\r\n\r\nAfter a time of not being shot it will begin to recharge (being shot again interrupts it).\r\n\r\nNumber of charges, how quickly these charges regenerate, and how long of a delay until they regenerate are all tweakable via the objects vars.\r\n\r\nThank you @RemieRichards for the help with overlays\r\n\r\n\r\n:cl: Kor\r\nrscadd: Adds hardsuits with built in energy shielding. Adminspawn only.\r\n/:cl:","created_at":"2015-12-09T03:30:55Z","updated_at":"2015-12-16T06:42:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"880321a268897cfc49250f284163ed66ad56792f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/13515/commits","review_comments_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/13515/comments","review_comment_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tgstation/-tg-station/issues/13515/comments","statuses_url":"https://api.github.com/repos/tgstation/-tg-station/statuses/b0584947e2be4edd8d46bffa45f1ce7651d94d17","head":{"label":"KorPhaeron:343","ref":"343","sha":"b0584947e2be4edd8d46bffa45f1ce7651d94d17","user":{"login":"KorPhaeron","id":14340985,"avatar_url":"https://avatars.githubusercontent.com/u/14340985?v=3","gravatar_id":"","url":"https://api.github.com/users/KorPhaeron","html_url":"https://github.com/KorPhaeron","followers_url":"https://api.github.com/users/KorPhaeron/followers","following_url":"https://api.github.com/users/KorPhaeron/following{/other_user}","gists_url":"https://api.github.com/users/KorPhaeron/gists{/gist_id}","starred_url":"https://api.github.com/users/KorPhaeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KorPhaeron/subscriptions","organizations_url":"https://api.github.com/users/KorPhaeron/orgs","repos_url":"https://api.github.com/users/KorPhaeron/repos","events_url":"https://api.github.com/users/KorPhaeron/events{/privacy}","received_events_url":"https://api.github.com/users/KorPhaeron/received_events","type":"User","site_admin":false},"repo":{"id":42754791,"name":"kortg","full_name":"KorPhaeron/kortg","owner":{"login":"KorPhaeron","id":14340985,"avatar_url":"https://avatars.githubusercontent.com/u/14340985?v=3","gravatar_id":"","url":"https://api.github.com/users/KorPhaeron","html_url":"https://github.com/KorPhaeron","followers_url":"https://api.github.com/users/KorPhaeron/followers","following_url":"https://api.github.com/users/KorPhaeron/following{/other_user}","gists_url":"https://api.github.com/users/KorPhaeron/gists{/gist_id}","starred_url":"https://api.github.com/users/KorPhaeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KorPhaeron/subscriptions","organizations_url":"https://api.github.com/users/KorPhaeron/orgs","repos_url":"https://api.github.com/users/KorPhaeron/repos","events_url":"https://api.github.com/users/KorPhaeron/events{/privacy}","received_events_url":"https://api.github.com/users/KorPhaeron/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KorPhaeron/kortg","description":"the /tg/station branch of SS13","fork":true,"url":"https://api.github.com/repos/KorPhaeron/kortg","forks_url":"https://api.github.com/repos/KorPhaeron/kortg/forks","keys_url":"https://api.github.com/repos/KorPhaeron/kortg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KorPhaeron/kortg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KorPhaeron/kortg/teams","hooks_url":"https://api.github.com/repos/KorPhaeron/kortg/hooks","issue_events_url":"https://api.github.com/repos/KorPhaeron/kortg/issues/events{/number}","events_url":"https://api.github.com/repos/KorPhaeron/kortg/events","assignees_url":"https://api.github.com/repos/KorPhaeron/kortg/assignees{/user}","branches_url":"https://api.github.com/repos/KorPhaeron/kortg/branches{/branch}","tags_url":"https://api.github.com/repos/KorPhaeron/kortg/tags","blobs_url":"https://api.github.com/repos/KorPhaeron/kortg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KorPhaeron/kortg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KorPhaeron/kortg/git/refs{/sha}","trees_url":"https://api.github.com/repos/KorPhaeron/kortg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KorPhaeron/kortg/statuses/{sha}","languages_url":"https://api.github.com/repos/KorPhaeron/kortg/languages","stargazers_url":"https://api.github.com/repos/KorPhaeron/kortg/stargazers","contributors_url":"https://api.github.com/repos/KorPhaeron/kortg/contributors","subscribers_url":"https://api.github.com/repos/KorPhaeron/kortg/subscribers","subscription_url":"https://api.github.com/repos/KorPhaeron/kortg/subscription","commits_url":"https://api.github.com/repos/KorPhaeron/kortg/commits{/sha}","git_commits_url":"https://api.github.com/repos/KorPhaeron/kortg/git/commits{/sha}","comments_url":"https://api.github.com/repos/KorPhaeron/kortg/comments{/number}","issue_comment_url":"https://api.github.com/repos/KorPhaeron/kortg/issues/comments{/number}","contents_url":"https://api.github.com/repos/KorPhaeron/kortg/contents/{+path}","compare_url":"https://api.github.com/repos/KorPhaeron/kortg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KorPhaeron/kortg/merges","archive_url":"https://api.github.com/repos/KorPhaeron/kortg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KorPhaeron/kortg/downloads","issues_url":"https://api.github.com/repos/KorPhaeron/kortg/issues{/number}","pulls_url":"https://api.github.com/repos/KorPhaeron/kortg/pulls{/number}","milestones_url":"https://api.github.com/repos/KorPhaeron/kortg/milestones{/number}","notifications_url":"https://api.github.com/repos/KorPhaeron/kortg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KorPhaeron/kortg/labels{/name}","releases_url":"https://api.github.com/repos/KorPhaeron/kortg/releases{/id}","created_at":"2015-09-19T01:35:06Z","updated_at":"2015-09-19T01:38:28Z","pushed_at":"2015-12-16T05:31:21Z","git_url":"git://github.com/KorPhaeron/kortg.git","ssh_url":"git@github.com:KorPhaeron/kortg.git","clone_url":"https://github.com/KorPhaeron/kortg.git","svn_url":"https://github.com/KorPhaeron/kortg","homepage":"http://www.tgstation13.org/","size":587078,"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":"master"}},"base":{"label":"tgstation:master","ref":"master","sha":"90f6e491c12f6312138fc1ff09db84b418275689","user":{"login":"tgstation","id":1363778,"avatar_url":"https://avatars.githubusercontent.com/u/1363778?v=3","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,"name":"-tg-station","full_name":"tgstation/-tg-station","owner":{"login":"tgstation","id":1363778,"avatar_url":"https://avatars.githubusercontent.com/u/1363778?v=3","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},"private":false,"html_url":"https://github.com/tgstation/-tg-station","description":"the /tg/station branch of SS13","fork":false,"url":"https://api.github.com/repos/tgstation/-tg-station","forks_url":"https://api.github.com/repos/tgstation/-tg-station/forks","keys_url":"https://api.github.com/repos/tgstation/-tg-station/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tgstation/-tg-station/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tgstation/-tg-station/teams","hooks_url":"https://api.github.com/repos/tgstation/-tg-station/hooks","issue_events_url":"https://api.github.com/repos/tgstation/-tg-station/issues/events{/number}","events_url":"https://api.github.com/repos/tgstation/-tg-station/events","assignees_url":"https://api.github.com/repos/tgstation/-tg-station/assignees{/user}","branches_url":"https://api.github.com/repos/tgstation/-tg-station/branches{/branch}","tags_url":"https://api.github.com/repos/tgstation/-tg-station/tags","blobs_url":"https://api.github.com/repos/tgstation/-tg-station/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tgstation/-tg-station/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tgstation/-tg-station/git/refs{/sha}","trees_url":"https://api.github.com/repos/tgstation/-tg-station/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tgstation/-tg-station/statuses/{sha}","languages_url":"https://api.github.com/repos/tgstation/-tg-station/languages","stargazers_url":"https://api.github.com/repos/tgstation/-tg-station/stargazers","contributors_url":"https://api.github.com/repos/tgstation/-tg-station/contributors","subscribers_url":"https://api.github.com/repos/tgstation/-tg-station/subscribers","subscription_url":"https://api.github.com/repos/tgstation/-tg-station/subscription","commits_url":"https://api.github.com/repos/tgstation/-tg-station/commits{/sha}","git_commits_url":"https://api.github.com/repos/tgstation/-tg-station/git/commits{/sha}","comments_url":"https://api.github.com/repos/tgstation/-tg-station/comments{/number}","issue_comment_url":"https://api.github.com/repos/tgstation/-tg-station/issues/comments{/number}","contents_url":"https://api.github.com/repos/tgstation/-tg-station/contents/{+path}","compare_url":"https://api.github.com/repos/tgstation/-tg-station/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tgstation/-tg-station/merges","archive_url":"https://api.github.com/repos/tgstation/-tg-station/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tgstation/-tg-station/downloads","issues_url":"https://api.github.com/repos/tgstation/-tg-station/issues{/number}","pulls_url":"https://api.github.com/repos/tgstation/-tg-station/pulls{/number}","milestones_url":"https://api.github.com/repos/tgstation/-tg-station/milestones{/number}","notifications_url":"https://api.github.com/repos/tgstation/-tg-station/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tgstation/-tg-station/labels{/name}","releases_url":"https://api.github.com/repos/tgstation/-tg-station/releases{/id}","created_at":"2012-01-21T17:32:47Z","updated_at":"2015-12-13T12:42:51Z","pushed_at":"2015-12-16T06:29:53Z","git_url":"git://github.com/tgstation/-tg-station.git","ssh_url":"git@github.com:tgstation/-tg-station.git","clone_url":"https://github.com/tgstation/-tg-station.git","svn_url":"https://github.com/tgstation/-tg-station","homepage":"http://www.tgstation13.org/","size":732849,"stargazers_count":252,"watchers_count":252,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":895,"mirror_url":null,"open_issues_count":924,"forks":895,"open_issues":924,"watchers":252,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/13515"},"html":{"href":"https://github.com/tgstation/-tg-station/pull/13515"},"issue":{"href":"https://api.github.com/repos/tgstation/-tg-station/issues/13515"},"comments":{"href":"https://api.github.com/repos/tgstation/-tg-station/issues/13515/comments"},"review_comments":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/13515/comments"},"review_comment":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/13515/commits"},"statuses":{"href":"https://api.github.com/repos/tgstation/-tg-station/statuses/b0584947e2be4edd8d46bffa45f1ce7651d94d17"}}}}