{"action":"created","issue":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/4655","repository_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2","labels_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/4655/labels{/name}","comments_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/4655/comments","events_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/4655/events","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/4655","id":183800641,"number":4655,"title":"Re-refactor peep calculate satisfaction","user":{"login":"duncanspumpkin","id":1277401,"avatar_url":"https://avatars.githubusercontent.com/u/1277401?v=3","gravatar_id":"","url":"https://api.github.com/users/duncanspumpkin","html_url":"https://github.com/duncanspumpkin","followers_url":"https://api.github.com/users/duncanspumpkin/followers","following_url":"https://api.github.com/users/duncanspumpkin/following{/other_user}","gists_url":"https://api.github.com/users/duncanspumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanspumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanspumpkin/subscriptions","organizations_url":"https://api.github.com/users/duncanspumpkin/orgs","repos_url":"https://api.github.com/users/duncanspumpkin/repos","events_url":"https://api.github.com/users/duncanspumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/duncanspumpkin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-18T20:56:02Z","updated_at":"2016-10-19T20:31:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/pulls/4655","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/4655","diff_url":"https://github.com/OpenRCT2/OpenRCT2/pull/4655.diff","patch_url":"https://github.com/OpenRCT2/OpenRCT2/pull/4655.patch"},"body":"Re-refactored the peep ride satisfaction calculations as there were a few bugs with the existing code.\r\n\r\n@zaxcav can you run some tests on this as it will produce some quite different values for rides compared to the existing code."},"comment":{"url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/comments/254931758","html_url":"https://github.com/OpenRCT2/OpenRCT2/pull/4655#issuecomment-254931758","issue_url":"https://api.github.com/repos/OpenRCT2/OpenRCT2/issues/4655","id":254931758,"user":{"login":"duncanspumpkin","id":1277401,"avatar_url":"https://avatars.githubusercontent.com/u/1277401?v=3","gravatar_id":"","url":"https://api.github.com/users/duncanspumpkin","html_url":"https://github.com/duncanspumpkin","followers_url":"https://api.github.com/users/duncanspumpkin/followers","following_url":"https://api.github.com/users/duncanspumpkin/following{/other_user}","gists_url":"https://api.github.com/users/duncanspumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanspumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanspumpkin/subscriptions","organizations_url":"https://api.github.com/users/duncanspumpkin/orgs","repos_url":"https://api.github.com/users/duncanspumpkin/repos","events_url":"https://api.github.com/users/duncanspumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/duncanspumpkin/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T20:31:51Z","updated_at":"2016-10-19T20:31:51Z","body":"I think I see where i had it wrong based on the original code its still different to your suggestion (bear in mind i didnt transpose the returns):\r\n\r\n```\r\n    if (minIntensity <= ride->intensity && maxIntensity >= ride->intensity) {\r\n\t\tintensitySatisfaction--;\r\n    }\r\n    minIntensity -= peep->happiness * 2;\r\n    maxIntensity += peep->happiness;\r\n```"}}
{"actor":{"display_login":"duncanspumpkin"}}