{"action":"created","issue":{"url":"https://api.github.com/repos/Aurorastation/Aurora.3/issues/286","repository_url":"https://api.github.com/repos/Aurorastation/Aurora.3","labels_url":"https://api.github.com/repos/Aurorastation/Aurora.3/issues/286/labels{/name}","comments_url":"https://api.github.com/repos/Aurorastation/Aurora.3/issues/286/comments","events_url":"https://api.github.com/repos/Aurorastation/Aurora.3/issues/286/events","html_url":"https://github.com/Aurorastation/Aurora.3/issues/286","id":153548072,"number":286,"title":"Unstable Mutagen mutation chance is set too low","user":{"login":"NanakoAC","id":18094775,"avatar_url":"https://avatars.githubusercontent.com/u/18094775?v=3","gravatar_id":"","url":"https://api.github.com/users/NanakoAC","html_url":"https://github.com/NanakoAC","followers_url":"https://api.github.com/users/NanakoAC/followers","following_url":"https://api.github.com/users/NanakoAC/following{/other_user}","gists_url":"https://api.github.com/users/NanakoAC/gists{/gist_id}","starred_url":"https://api.github.com/users/NanakoAC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NanakoAC/subscriptions","organizations_url":"https://api.github.com/users/NanakoAC/orgs","repos_url":"https://api.github.com/users/NanakoAC/repos","events_url":"https://api.github.com/users/NanakoAC/events{/privacy}","received_events_url":"https://api.github.com/users/NanakoAC/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Aurorastation/Aurora.3/labels/Bug","name":"Bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-06T22:07:55Z","updated_at":"2016-05-30T22:20:49Z","closed_at":"2016-05-30T22:20:49Z","body":"Chemistry-Reagents-Toxins.dm, line 233, reads:\r\n\r\nif(prob(removed * 0.1)) // Approx. one mutation per 10 injected/20 ingested/30 touching units\r\n\r\nIt seems that whoever wrote this line falsely believed that prob() tests against a random value in the range 0..1. This is a reasonable belief since it's often how random numbers are done in many other languages and environments, and with that belief it would mean a 10% chance per unit.\r\n\r\nHowever, prob() actually tests against a value in the range 0..100, making this event far less likely than intended.\r\n\r\nTo fix it, change the line to:\r\nif(prob(removed * 10)) // Approx. one mutation per 10 injected/20 ingested/30 touching units\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Aurorastation/Aurora.3/issues/comments/222560910","html_url":"https://github.com/Aurorastation/Aurora.3/issues/286#issuecomment-222560910","issue_url":"https://api.github.com/repos/Aurorastation/Aurora.3/issues/286","id":222560910,"user":{"login":"skull132","id":6318408,"avatar_url":"https://avatars.githubusercontent.com/u/6318408?v=3","gravatar_id":"","url":"https://api.github.com/users/skull132","html_url":"https://github.com/skull132","followers_url":"https://api.github.com/users/skull132/followers","following_url":"https://api.github.com/users/skull132/following{/other_user}","gists_url":"https://api.github.com/users/skull132/gists{/gist_id}","starred_url":"https://api.github.com/users/skull132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skull132/subscriptions","organizations_url":"https://api.github.com/users/skull132/orgs","repos_url":"https://api.github.com/users/skull132/repos","events_url":"https://api.github.com/users/skull132/events{/privacy}","received_events_url":"https://api.github.com/users/skull132/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T22:20:49Z","updated_at":"2016-05-30T22:20:49Z","body":"Fixed in #343 ."}}
{"actor":{"display_login":"skull132"}}