{"action":"created","comment":{"url":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments/25834268","id":25834268,"diff_hunk":"@@ -0,0 +1,298 @@\n+\n+//Worm Segments, Dummy, has no AI, relies on the head.\n+/mob/living/simple_animal/hostile/spaceWorm\n+\tname = \"space worm segment\"\n+\tdesc = \"A part of a space worm.\"\n+\ticon = 'icons/mob/animal.dmi'\n+\ticon_state = \"spaceworm\"\n+\ticon_living = \"spaceworm\"\n+\ticon_dead = \"spacewormdead\"\n+\tstatus_flags = 0\n+\n+\tspeak_emote = list(\"screeches\")\n+\temote_hear = list(\"screeches\")\n+\n+\tresponse_help  = \"touches\"\n+\tresponse_disarm = \"flails at\"\n+\tresponse_harm   = \"punches\"\n+\n+\tharm_intent_damage = 2\n+\n+\tmaxHealth = 50\n+\thealth = 50\n+\n+\tstop_automated_movement = 1\n+\tanimate_movement = SYNC_STEPS\n+\n+\tminbodytemp = 0\n+\tmaxbodytemp = 350\n+\tmin_oxy = 0\n+\tmax_co2 = 0\n+\tmax_tox = 0\n+\n+\ta_intent = \"harm\" //so they don't get pushed around\n+\n+\tenvironment_smash = 1\n+\n+\tspeed = -1\n+\n+\tAIenabled = 0 //The body isn't conscious\n+\n+\tfaction = list(\"spaceworms\")\n+\n+\tvar/mob/living/simple_animal/hostile/spaceWorm/previousWorm //next/previous segments, correspondingly\n+\tvar/mob/living/simple_animal/hostile/spaceWorm/nextWorm     //head is the nextest segment\n+\n+\tvar/mob/living/simple_animal/hostile/spaceWorm/wormHead/myHead\t\t//Can be the same as next, just a general reference to the main worm.\n+\n+\tvar/stomachProcessProbability = 50\n+\tvar/digestionProbability = 20\n+\n+\tvar/atom/currentlyEating //what the worm is currently eating\n+\tvar/plasmaPoopPotential = 5 //this mainly exists for the name\n+\n+\n+//Worm Head, Controls the AI for the entire worm \"entity\"\n+/mob/living/simple_animal/hostile/spaceWorm/wormHead\n+\tname = \"space worm head\"\n+\ticon_state = \"spacewormhead\"\n+\ticon_living = \"spacewormhead\"\n+\ticon_dead = \"spacewormdead\"\n+\n+\t//Stronger than normal segments\n+\tmaxHealth = 125\n+\thealth = 125\n+\n+\tmelee_damage_lower = 20\n+\tmelee_damage_upper = 25\n+\tattacktext = \"bites\"\n+\n+\tanimate_movement = SLIDE_STEPS\n+\n+\tAIenabled = 1//The head is conscious\n+\tstop_automated_movement = 0 //Ditto ^\n+\n+\t//head specific variables\n+\tvar/spawnWithSegments = 6\n+\tvar/list/totalWormSegments = list() //doesn't contain src\n+\tvar/catastrophicDeathProb = 15 //15% chance for the death of the head to kill the whole thing\n+\n+\n+/mob/living/simple_animal/hostile/spaceWorm/wormHead/New(var/location, var/segments = spawnWithSegments)\n+\t..()\n+\n+\tif(!src)//This is to prevent a runtime.\n+\t\treturn\n+\n+\tmyHead = src //It's it's own head.\n+\n+\t//Used in the for to attach each worm segment to the next in the sequence, instead of all of them to src\n+\tvar/mob/living/simple_animal/hostile/spaceWorm/currentWormSeg = src\n+\n+\tfor(var/i = 1 to segments)\n+\t\tvar/mob/living/simple_animal/hostile/spaceWorm/newSegment = new /mob/living/simple_animal/hostile/spaceWorm(loc)\n+\t\tcurrentWormSeg.Attach(newSegment)\n+\t\tcurrentWormSeg = newSegment\n+\n+\tfor(var/mob/living/simple_animal/hostile/spaceWorm/SW in totalWormSegments)\n+\t\tSW.update_icon()\n+\n+/mob/living/simple_animal/hostile/spaceWorm/wormHead/update_icon()\n+\tif(stat == CONSCIOUS || stat == UNCONSCIOUS)\n+\t\ticon_state = \"spacewormhead[previousWorm ? 1 : 0]\"\n+\t\tif(previousWorm)\n+\t\t\tdir = get_dir(previousWorm,src)\n+\telse\n+\t\ticon_state = \"spacewormheaddead\"\n+\n+\tfor(var/mob/living/simple_animal/hostile/spaceWorm/SW in totalWormSegments)\n+\t\tif(SW == src)//incase src ends up in here we don't want an infinite loop\n+\t\t\tcontinue\n+\t\tSW.update_icon()\n+\n+\n+//Try to move onto target's turf and eat them\n+/mob/living/simple_animal/hostile/spaceWorm/wormHead/AttackingTarget()\n+\t..()\n+\tattemptToEat(target)\n+\n+//Attempt to eat things we bump into, Mobs, Walls, Clowns\n+/mob/living/simple_animal/hostile/spaceWorm/wormHead/Bump(atom/obstacle)\n+\tattemptToEat(obstacle)","path":"code/modules/mob/living/simple_animal/hostile/spaceworms.dm","position":121,"original_position":121,"commit_id":"bb47410c91e22608450f2ad5d7862cc5b21270ac","original_commit_id":"bb47410c91e22608450f2ad5d7862cc5b21270ac","user":{"login":"Anonus","id":3886584,"avatar_url":"https://avatars.githubusercontent.com/u/3886584?v=3","gravatar_id":"","url":"https://api.github.com/users/Anonus","html_url":"https://github.com/Anonus","followers_url":"https://api.github.com/users/Anonus/followers","following_url":"https://api.github.com/users/Anonus/following{/other_user}","gists_url":"https://api.github.com/users/Anonus/gists{/gist_id}","starred_url":"https://api.github.com/users/Anonus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anonus/subscriptions","organizations_url":"https://api.github.com/users/Anonus/orgs","repos_url":"https://api.github.com/users/Anonus/repos","events_url":"https://api.github.com/users/Anonus/events{/privacy}","received_events_url":"https://api.github.com/users/Anonus/received_events","type":"User","site_admin":false},"body":"Well, I'm mostly noting this because they won't tunnel around unless they're player-controlled otherwise.","created_at":"2015-03-05T02:04:40Z","updated_at":"2015-03-05T02:04:40Z","html_url":"https://github.com/tgstation/-tg-station/pull/8150#discussion_r25834268","pull_request_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/8150","_links":{"self":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments/25834268"},"html":{"href":"https://github.com/tgstation/-tg-station/pull/8150#discussion_r25834268"},"pull_request":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/8150"}}},"pull_request":{"url":"https://api.github.com/repos/tgstation/-tg-station/pulls/8150","id":30482256,"html_url":"https://github.com/tgstation/-tg-station/pull/8150","diff_url":"https://github.com/tgstation/-tg-station/pull/8150.diff","patch_url":"https://github.com/tgstation/-tg-station/pull/8150.patch","issue_url":"https://api.github.com/repos/tgstation/-tg-station/issues/8150","number":8150,"state":"open","locked":false,"title":"Revenge of the Space Worms","user":{"login":"RemieRichards","id":4043781,"avatar_url":"https://avatars.githubusercontent.com/u/4043781?v=3","gravatar_id":"","url":"https://api.github.com/users/RemieRichards","html_url":"https://github.com/RemieRichards","followers_url":"https://api.github.com/users/RemieRichards/followers","following_url":"https://api.github.com/users/RemieRichards/following{/other_user}","gists_url":"https://api.github.com/users/RemieRichards/gists{/gist_id}","starred_url":"https://api.github.com/users/RemieRichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RemieRichards/subscriptions","organizations_url":"https://api.github.com/users/RemieRichards/orgs","repos_url":"https://api.github.com/users/RemieRichards/repos","events_url":"https://api.github.com/users/RemieRichards/events{/privacy}","received_events_url":"https://api.github.com/users/RemieRichards/received_events","type":"User","site_admin":false},"body":"* Space worms are now a Hostile mob (Meaning they have AI!)\r\n* General code cleanup/reworking\r\n* Still poop plasma\r\n* Spawn on mining with the same rarity as a gold grub\r\n* Spawn on mining with a random size between 6 and  8 segments long\r\n* Tend to update and look a bit better than before (still look a bit odd in places but an art update could solve that, I'm no spriter and I'd rather not delay their return)\r\n","created_at":"2015-03-04T16:49:31Z","updated_at":"2015-03-05T02:04:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47c868573abf6d82857eec20e7f2372332a4d8c1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/8150/commits","review_comments_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/8150/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/8150/comments","statuses_url":"https://api.github.com/repos/tgstation/-tg-station/statuses/bb47410c91e22608450f2ad5d7862cc5b21270ac","head":{"label":"RemieRichards:RevengeOfTheSpaceWorms","ref":"RevengeOfTheSpaceWorms","sha":"bb47410c91e22608450f2ad5d7862cc5b21270ac","user":{"login":"RemieRichards","id":4043781,"avatar_url":"https://avatars.githubusercontent.com/u/4043781?v=3","gravatar_id":"","url":"https://api.github.com/users/RemieRichards","html_url":"https://github.com/RemieRichards","followers_url":"https://api.github.com/users/RemieRichards/followers","following_url":"https://api.github.com/users/RemieRichards/following{/other_user}","gists_url":"https://api.github.com/users/RemieRichards/gists{/gist_id}","starred_url":"https://api.github.com/users/RemieRichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RemieRichards/subscriptions","organizations_url":"https://api.github.com/users/RemieRichards/orgs","repos_url":"https://api.github.com/users/RemieRichards/repos","events_url":"https://api.github.com/users/RemieRichards/events{/privacy}","received_events_url":"https://api.github.com/users/RemieRichards/received_events","type":"User","site_admin":false},"repo":{"id":12466296,"name":"-tg-station","full_name":"RemieRichards/-tg-station","owner":{"login":"RemieRichards","id":4043781,"avatar_url":"https://avatars.githubusercontent.com/u/4043781?v=3","gravatar_id":"","url":"https://api.github.com/users/RemieRichards","html_url":"https://github.com/RemieRichards","followers_url":"https://api.github.com/users/RemieRichards/followers","following_url":"https://api.github.com/users/RemieRichards/following{/other_user}","gists_url":"https://api.github.com/users/RemieRichards/gists{/gist_id}","starred_url":"https://api.github.com/users/RemieRichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RemieRichards/subscriptions","organizations_url":"https://api.github.com/users/RemieRichards/orgs","repos_url":"https://api.github.com/users/RemieRichards/repos","events_url":"https://api.github.com/users/RemieRichards/events{/privacy}","received_events_url":"https://api.github.com/users/RemieRichards/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RemieRichards/-tg-station","description":"/tg/'s SS13 branch","fork":true,"url":"https://api.github.com/repos/RemieRichards/-tg-station","forks_url":"https://api.github.com/repos/RemieRichards/-tg-station/forks","keys_url":"https://api.github.com/repos/RemieRichards/-tg-station/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RemieRichards/-tg-station/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RemieRichards/-tg-station/teams","hooks_url":"https://api.github.com/repos/RemieRichards/-tg-station/hooks","issue_events_url":"https://api.github.com/repos/RemieRichards/-tg-station/issues/events{/number}","events_url":"https://api.github.com/repos/RemieRichards/-tg-station/events","assignees_url":"https://api.github.com/repos/RemieRichards/-tg-station/assignees{/user}","branches_url":"https://api.github.com/repos/RemieRichards/-tg-station/branches{/branch}","tags_url":"https://api.github.com/repos/RemieRichards/-tg-station/tags","blobs_url":"https://api.github.com/repos/RemieRichards/-tg-station/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RemieRichards/-tg-station/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RemieRichards/-tg-station/git/refs{/sha}","trees_url":"https://api.github.com/repos/RemieRichards/-tg-station/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RemieRichards/-tg-station/statuses/{sha}","languages_url":"https://api.github.com/repos/RemieRichards/-tg-station/languages","stargazers_url":"https://api.github.com/repos/RemieRichards/-tg-station/stargazers","contributors_url":"https://api.github.com/repos/RemieRichards/-tg-station/contributors","subscribers_url":"https://api.github.com/repos/RemieRichards/-tg-station/subscribers","subscription_url":"https://api.github.com/repos/RemieRichards/-tg-station/subscription","commits_url":"https://api.github.com/repos/RemieRichards/-tg-station/commits{/sha}","git_commits_url":"https://api.github.com/repos/RemieRichards/-tg-station/git/commits{/sha}","comments_url":"https://api.github.com/repos/RemieRichards/-tg-station/comments{/number}","issue_comment_url":"https://api.github.com/repos/RemieRichards/-tg-station/issues/comments{/number}","contents_url":"https://api.github.com/repos/RemieRichards/-tg-station/contents/{+path}","compare_url":"https://api.github.com/repos/RemieRichards/-tg-station/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RemieRichards/-tg-station/merges","archive_url":"https://api.github.com/repos/RemieRichards/-tg-station/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RemieRichards/-tg-station/downloads","issues_url":"https://api.github.com/repos/RemieRichards/-tg-station/issues{/number}","pulls_url":"https://api.github.com/repos/RemieRichards/-tg-station/pulls{/number}","milestones_url":"https://api.github.com/repos/RemieRichards/-tg-station/milestones{/number}","notifications_url":"https://api.github.com/repos/RemieRichards/-tg-station/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RemieRichards/-tg-station/labels{/name}","releases_url":"https://api.github.com/repos/RemieRichards/-tg-station/releases{/id}","created_at":"2013-08-29T17:14:29Z","updated_at":"2014-06-19T15:13:34Z","pushed_at":"2015-03-04T16:46:45Z","git_url":"git://github.com/RemieRichards/-tg-station.git","ssh_url":"git@github.com:RemieRichards/-tg-station.git","clone_url":"https://github.com/RemieRichards/-tg-station.git","svn_url":"https://github.com/RemieRichards/-tg-station","homepage":"","size":449411,"stargazers_count":0,"watchers_count":0,"language":"DM","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"e2554c55e69d77f3582a4935d3fc92a52eca75a1","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":"/tg/'s SS13 branch","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-03-05T01:39:05Z","pushed_at":"2015-03-05T01:39:05Z","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":613129,"stargazers_count":189,"watchers_count":189,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":674,"mirror_url":null,"open_issues_count":781,"forks":674,"open_issues":781,"watchers":189,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/8150"},"html":{"href":"https://github.com/tgstation/-tg-station/pull/8150"},"issue":{"href":"https://api.github.com/repos/tgstation/-tg-station/issues/8150"},"comments":{"href":"https://api.github.com/repos/tgstation/-tg-station/issues/8150/comments"},"review_comments":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/8150/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/8150/commits"},"statuses":{"href":"https://api.github.com/repos/tgstation/-tg-station/statuses/bb47410c91e22608450f2ad5d7862cc5b21270ac"}}}}