{"action":"created","comment":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/22760884","id":22760884,"diff_hunk":"@@ -45,6 +45,10 @@\n \r\n \tlog_debug(\"Event '[EM.name]' has completed at [worldtime2text()].\")\r\n \r\n+/datum/event_manager/proc/delay_events(var/container, var/delay)\r\n+\tvar/list/datum/event_container/EC = event_containers[container]\r","path":"code/modules/events/event_manager.dm","position":5,"original_position":5,"commit_id":"e49a3a86aed66023c5afd9e85e4f427ec5ebef04","original_commit_id":"e49a3a86aed66023c5afd9e85e4f427ec5ebef04","user":{"login":"PsiOmegaDelta","id":496895,"avatar_url":"https://avatars.githubusercontent.com/u/496895?v=3","gravatar_id":"","url":"https://api.github.com/users/PsiOmegaDelta","html_url":"https://github.com/PsiOmegaDelta","followers_url":"https://api.github.com/users/PsiOmegaDelta/followers","following_url":"https://api.github.com/users/PsiOmegaDelta/following{/other_user}","gists_url":"https://api.github.com/users/PsiOmegaDelta/gists{/gist_id}","starred_url":"https://api.github.com/users/PsiOmegaDelta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PsiOmegaDelta/subscriptions","organizations_url":"https://api.github.com/users/PsiOmegaDelta/orgs","repos_url":"https://api.github.com/users/PsiOmegaDelta/repos","events_url":"https://api.github.com/users/PsiOmegaDelta/events{/privacy}","received_events_url":"https://api.github.com/users/PsiOmegaDelta/received_events","type":"User","site_admin":false},"body":"````var/container```` should perhaps be ````var/severity```` to match code elsewhere.","created_at":"2015-01-10T18:20:29Z","updated_at":"2015-01-10T18:20:29Z","html_url":"https://github.com/Baystation12/Baystation12/pull/7772#discussion_r22760884","pull_request_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/7772","_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/22760884"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/7772#discussion_r22760884"},"pull_request":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/7772"}}},"pull_request":{"url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/7772","id":27145547,"html_url":"https://github.com/Baystation12/Baystation12/pull/7772","diff_url":"https://github.com/Baystation12/Baystation12/pull/7772.diff","patch_url":"https://github.com/Baystation12/Baystation12/pull/7772.patch","issue_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/7772","number":7772,"state":"open","locked":false,"title":"Moderate level event weightings and balance","user":{"login":"mwerezak","id":242428,"avatar_url":"https://avatars.githubusercontent.com/u/242428?v=3","gravatar_id":"","url":"https://api.github.com/users/mwerezak","html_url":"https://github.com/mwerezak","followers_url":"https://api.github.com/users/mwerezak/followers","following_url":"https://api.github.com/users/mwerezak/following{/other_user}","gists_url":"https://api.github.com/users/mwerezak/gists{/gist_id}","starred_url":"https://api.github.com/users/mwerezak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwerezak/subscriptions","organizations_url":"https://api.github.com/users/mwerezak/orgs","repos_url":"https://api.github.com/users/mwerezak/repos","events_url":"https://api.github.com/users/mwerezak/events{/privacy}","received_events_url":"https://api.github.com/users/mwerezak/received_events","type":"User","site_admin":false},"body":"* Moderate level carp event is now limited to between 10 to 30 carp.\r\n* Differentiates moderate and major level virus events. Major virus events can produce greater viruses, while moderate level virus events are restricted to lesser viruses.\r\n* Attempts to balance lesser and greater viruses better by making lesser viruses do nothing in stage 4. Before this there was not much of a difference between greater and lesser viruses as not very many syndromes were restricted (only Gibbington's, Monkism, and Suicide, while many deadly stage 4 effects like DNA reversal were still available for lesser viruses). After this change some lesser viruses can still be deadly if left unmanaged but will generally not be as much of a pressing danger, and may even cure themselves naturally.\r\n* Adjusts the weightings for moderate level events. This was trickier than for the major level events as there were a lot more events to balance. The relative weightings were chosen with the help of input from IRC, and everything was scaled so that with 5 crew members in each department, 2 cyborgs, and an AI, there should be an average of 4 moderate events each round (note that the moderate event trigger fires 4-6 times in a three hour round).\r\n\r\nFor convenience, the weightings, probability per trigger, and expected events per round are given below assuming 5 people in each department, 2 cyborgs and an AI.\r\n\r\n(Note: I pretty much ignored the alien infestation and ninja events when creating these weightings. They happen infrequently enough that they shouldn't influence the following values much)\r\n\r\nEvent | Weight | Probability | Events Per Round | Expected Odds\r\n---|---|---|-----------|-----------------------------------------\r\nCarp School | 250 | 4% | 0.2 | 1 out of 5 rounds\r\nRogue Drones | 120 | 2% | 0.1 | 1 out of 10 rounds\r\nSpace Vines | 250 | 4% | 0.2 | 1 out of 5 rounds\r\nMeteor Shower | 100 | 2% | 0.08 | 1 out of 12 rounds\r\nCommunication Blackout | 1250 | 20% | 1 | once a round\r\nPrison Break | 500 | 8% | 0.4 | 1 out of 2-3 rounds\r\nGrid Check | 500 | 8% | 0.4 | 1 out of 2-3 rounds\r\nElectrical Storm | 500 | 8% | 0.4 | 1 out of 2-3 rounds\r\nRadiation Storm | 250 | 4% | 0.2 | 1 out of 5 rounds\r\nAppendicitis | 50 | 1% | 0.04 | 1 out of 25 rounds\r\nViral Infection | 750 | 12% | 0.6 | 1 out of 1-2 rounds\r\nSpider Infestation | 250 | 4% | 0.2 | 1 out of 5 rounds\r\nIon Storm | 250 | 4% | 0.2 | 1 out of 5 rounds\r\n*Nothing* | 1230 | 20% | - | -\r\n**Total** | 6250 | 100% | 4 | -\r\n\r\nThe next table shows the same data but assuming 1 person per department, an AI and no cyborgs (i.e. lowpop).","created_at":"2015-01-10T07:06:26Z","updated_at":"2015-01-10T18:20:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10f6195face61822c24ed7b46f7b0225018642f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/7772/commits","review_comments_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/7772/comments","review_comment_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/7772/comments","statuses_url":"https://api.github.com/repos/Baystation12/Baystation12/statuses/e49a3a86aed66023c5afd9e85e4f427ec5ebef04","head":{"label":"mwerezak:events","ref":"events","sha":"e49a3a86aed66023c5afd9e85e4f427ec5ebef04","user":{"login":"mwerezak","id":242428,"avatar_url":"https://avatars.githubusercontent.com/u/242428?v=3","gravatar_id":"","url":"https://api.github.com/users/mwerezak","html_url":"https://github.com/mwerezak","followers_url":"https://api.github.com/users/mwerezak/followers","following_url":"https://api.github.com/users/mwerezak/following{/other_user}","gists_url":"https://api.github.com/users/mwerezak/gists{/gist_id}","starred_url":"https://api.github.com/users/mwerezak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwerezak/subscriptions","organizations_url":"https://api.github.com/users/mwerezak/orgs","repos_url":"https://api.github.com/users/mwerezak/repos","events_url":"https://api.github.com/users/mwerezak/events{/privacy}","received_events_url":"https://api.github.com/users/mwerezak/received_events","type":"User","site_admin":false},"repo":{"id":18691192,"name":"Baystation12","full_name":"mwerezak/Baystation12","owner":{"login":"mwerezak","id":242428,"avatar_url":"https://avatars.githubusercontent.com/u/242428?v=3","gravatar_id":"","url":"https://api.github.com/users/mwerezak","html_url":"https://github.com/mwerezak","followers_url":"https://api.github.com/users/mwerezak/followers","following_url":"https://api.github.com/users/mwerezak/following{/other_user}","gists_url":"https://api.github.com/users/mwerezak/gists{/gist_id}","starred_url":"https://api.github.com/users/mwerezak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwerezak/subscriptions","organizations_url":"https://api.github.com/users/mwerezak/orgs","repos_url":"https://api.github.com/users/mwerezak/repos","events_url":"https://api.github.com/users/mwerezak/events{/privacy}","received_events_url":"https://api.github.com/users/mwerezak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mwerezak/Baystation12","description":"The code for Baystation12's branch of SS13. Developers: please don't forget to update the changelog. Thanks!","fork":true,"url":"https://api.github.com/repos/mwerezak/Baystation12","forks_url":"https://api.github.com/repos/mwerezak/Baystation12/forks","keys_url":"https://api.github.com/repos/mwerezak/Baystation12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mwerezak/Baystation12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mwerezak/Baystation12/teams","hooks_url":"https://api.github.com/repos/mwerezak/Baystation12/hooks","issue_events_url":"https://api.github.com/repos/mwerezak/Baystation12/issues/events{/number}","events_url":"https://api.github.com/repos/mwerezak/Baystation12/events","assignees_url":"https://api.github.com/repos/mwerezak/Baystation12/assignees{/user}","branches_url":"https://api.github.com/repos/mwerezak/Baystation12/branches{/branch}","tags_url":"https://api.github.com/repos/mwerezak/Baystation12/tags","blobs_url":"https://api.github.com/repos/mwerezak/Baystation12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mwerezak/Baystation12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mwerezak/Baystation12/git/refs{/sha}","trees_url":"https://api.github.com/repos/mwerezak/Baystation12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mwerezak/Baystation12/statuses/{sha}","languages_url":"https://api.github.com/repos/mwerezak/Baystation12/languages","stargazers_url":"https://api.github.com/repos/mwerezak/Baystation12/stargazers","contributors_url":"https://api.github.com/repos/mwerezak/Baystation12/contributors","subscribers_url":"https://api.github.com/repos/mwerezak/Baystation12/subscribers","subscription_url":"https://api.github.com/repos/mwerezak/Baystation12/subscription","commits_url":"https://api.github.com/repos/mwerezak/Baystation12/commits{/sha}","git_commits_url":"https://api.github.com/repos/mwerezak/Baystation12/git/commits{/sha}","comments_url":"https://api.github.com/repos/mwerezak/Baystation12/comments{/number}","issue_comment_url":"https://api.github.com/repos/mwerezak/Baystation12/issues/comments/{number}","contents_url":"https://api.github.com/repos/mwerezak/Baystation12/contents/{+path}","compare_url":"https://api.github.com/repos/mwerezak/Baystation12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mwerezak/Baystation12/merges","archive_url":"https://api.github.com/repos/mwerezak/Baystation12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mwerezak/Baystation12/downloads","issues_url":"https://api.github.com/repos/mwerezak/Baystation12/issues{/number}","pulls_url":"https://api.github.com/repos/mwerezak/Baystation12/pulls{/number}","milestones_url":"https://api.github.com/repos/mwerezak/Baystation12/milestones{/number}","notifications_url":"https://api.github.com/repos/mwerezak/Baystation12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mwerezak/Baystation12/labels{/name}","releases_url":"https://api.github.com/repos/mwerezak/Baystation12/releases{/id}","created_at":"2014-04-11T23:01:36Z","updated_at":"2014-12-24T05:53:47Z","pushed_at":"2015-01-10T17:47:22Z","git_url":"git://github.com/mwerezak/Baystation12.git","ssh_url":"git@github.com:mwerezak/Baystation12.git","clone_url":"https://github.com/mwerezak/Baystation12.git","svn_url":"https://github.com/mwerezak/Baystation12","homepage":"http://baystation12.net/","size":723095,"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":"Baystation12:dev-freeze","ref":"dev-freeze","sha":"9b534e5f0109ac4f2a427d32d6f1c8be313466cc","user":{"login":"Baystation12","id":1174322,"avatar_url":"https://avatars.githubusercontent.com/u/1174322?v=3","gravatar_id":"","url":"https://api.github.com/users/Baystation12","html_url":"https://github.com/Baystation12","followers_url":"https://api.github.com/users/Baystation12/followers","following_url":"https://api.github.com/users/Baystation12/following{/other_user}","gists_url":"https://api.github.com/users/Baystation12/gists{/gist_id}","starred_url":"https://api.github.com/users/Baystation12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baystation12/subscriptions","organizations_url":"https://api.github.com/users/Baystation12/orgs","repos_url":"https://api.github.com/users/Baystation12/repos","events_url":"https://api.github.com/users/Baystation12/events{/privacy}","received_events_url":"https://api.github.com/users/Baystation12/received_events","type":"Organization","site_admin":false},"repo":{"id":2715933,"name":"Baystation12","full_name":"Baystation12/Baystation12","owner":{"login":"Baystation12","id":1174322,"avatar_url":"https://avatars.githubusercontent.com/u/1174322?v=3","gravatar_id":"","url":"https://api.github.com/users/Baystation12","html_url":"https://github.com/Baystation12","followers_url":"https://api.github.com/users/Baystation12/followers","following_url":"https://api.github.com/users/Baystation12/following{/other_user}","gists_url":"https://api.github.com/users/Baystation12/gists{/gist_id}","starred_url":"https://api.github.com/users/Baystation12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baystation12/subscriptions","organizations_url":"https://api.github.com/users/Baystation12/orgs","repos_url":"https://api.github.com/users/Baystation12/repos","events_url":"https://api.github.com/users/Baystation12/events{/privacy}","received_events_url":"https://api.github.com/users/Baystation12/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Baystation12/Baystation12","description":"The code for Baystation12's branch of SS13","fork":false,"url":"https://api.github.com/repos/Baystation12/Baystation12","forks_url":"https://api.github.com/repos/Baystation12/Baystation12/forks","keys_url":"https://api.github.com/repos/Baystation12/Baystation12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Baystation12/Baystation12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Baystation12/Baystation12/teams","hooks_url":"https://api.github.com/repos/Baystation12/Baystation12/hooks","issue_events_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/events{/number}","events_url":"https://api.github.com/repos/Baystation12/Baystation12/events","assignees_url":"https://api.github.com/repos/Baystation12/Baystation12/assignees{/user}","branches_url":"https://api.github.com/repos/Baystation12/Baystation12/branches{/branch}","tags_url":"https://api.github.com/repos/Baystation12/Baystation12/tags","blobs_url":"https://api.github.com/repos/Baystation12/Baystation12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Baystation12/Baystation12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Baystation12/Baystation12/git/refs{/sha}","trees_url":"https://api.github.com/repos/Baystation12/Baystation12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Baystation12/Baystation12/statuses/{sha}","languages_url":"https://api.github.com/repos/Baystation12/Baystation12/languages","stargazers_url":"https://api.github.com/repos/Baystation12/Baystation12/stargazers","contributors_url":"https://api.github.com/repos/Baystation12/Baystation12/contributors","subscribers_url":"https://api.github.com/repos/Baystation12/Baystation12/subscribers","subscription_url":"https://api.github.com/repos/Baystation12/Baystation12/subscription","commits_url":"https://api.github.com/repos/Baystation12/Baystation12/commits{/sha}","git_commits_url":"https://api.github.com/repos/Baystation12/Baystation12/git/commits{/sha}","comments_url":"https://api.github.com/repos/Baystation12/Baystation12/comments{/number}","issue_comment_url":"https://api.github.com/repos/Baystation12/Baystation12/issues/comments/{number}","contents_url":"https://api.github.com/repos/Baystation12/Baystation12/contents/{+path}","compare_url":"https://api.github.com/repos/Baystation12/Baystation12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Baystation12/Baystation12/merges","archive_url":"https://api.github.com/repos/Baystation12/Baystation12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Baystation12/Baystation12/downloads","issues_url":"https://api.github.com/repos/Baystation12/Baystation12/issues{/number}","pulls_url":"https://api.github.com/repos/Baystation12/Baystation12/pulls{/number}","milestones_url":"https://api.github.com/repos/Baystation12/Baystation12/milestones{/number}","notifications_url":"https://api.github.com/repos/Baystation12/Baystation12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Baystation12/Baystation12/labels{/name}","releases_url":"https://api.github.com/repos/Baystation12/Baystation12/releases{/id}","created_at":"2011-11-05T16:12:41Z","updated_at":"2015-01-08T22:29:53Z","pushed_at":"2015-01-10T08:54:52Z","git_url":"git://github.com/Baystation12/Baystation12.git","ssh_url":"git@github.com:Baystation12/Baystation12.git","clone_url":"https://github.com/Baystation12/Baystation12.git","svn_url":"https://github.com/Baystation12/Baystation12","homepage":"http://baystation12.net/","size":1001944,"stargazers_count":175,"watchers_count":175,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":647,"mirror_url":null,"open_issues_count":137,"forks":647,"open_issues":137,"watchers":175,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/7772"},"html":{"href":"https://github.com/Baystation12/Baystation12/pull/7772"},"issue":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/7772"},"comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/issues/7772/comments"},"review_comments":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/7772/comments"},"review_comment":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Baystation12/Baystation12/pulls/7772/commits"},"statuses":{"href":"https://api.github.com/repos/Baystation12/Baystation12/statuses/e49a3a86aed66023c5afd9e85e4f427ec5ebef04"}}}}