{"action":"created","issue":{"url":"https://api.github.com/repos/Civcraft/RealisticBiomes/issues/42","labels_url":"https://api.github.com/repos/Civcraft/RealisticBiomes/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/Civcraft/RealisticBiomes/issues/42/comments","events_url":"https://api.github.com/repos/Civcraft/RealisticBiomes/issues/42/events","html_url":"https://github.com/Civcraft/RealisticBiomes/issues/42","id":96946710,"number":42,"title":"GrowthConfig.getRate rewrite","user":{"login":"gipsy-king","id":310215,"avatar_url":"https://avatars.githubusercontent.com/u/310215?v=3","gravatar_id":"","url":"https://api.github.com/users/gipsy-king","html_url":"https://github.com/gipsy-king","followers_url":"https://api.github.com/users/gipsy-king/followers","following_url":"https://api.github.com/users/gipsy-king/following{/other_user}","gists_url":"https://api.github.com/users/gipsy-king/gists{/gist_id}","starred_url":"https://api.github.com/users/gipsy-king/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gipsy-king/subscriptions","organizations_url":"https://api.github.com/users/gipsy-king/orgs","repos_url":"https://api.github.com/users/gipsy-king/repos","events_url":"https://api.github.com/users/gipsy-king/events{/privacy}","received_events_url":"https://api.github.com/users/gipsy-king/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Civcraft/RealisticBiomes/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Civcraft/RealisticBiomes/labels/P2%20-%20Needed","name":"P2 - Needed","color":"eb6420"},{"url":"https://api.github.com/repos/Civcraft/RealisticBiomes/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-24T02:29:43Z","updated_at":"2015-07-30T02:55:13Z","closed_at":null,"body":"@WildWeazel @Maxopoly can you check this?\r\nPseucode as follows:\r\n\r\n    rate = base_rate * biome_rate\r\n    // always return if the plant cannot grow in given biome - this eliminates greenhouse_ignore_biome flag\r\n    if rate == 0 then return\r\n    \r\n    if greenhouse_enabled and block_under_greenhouse\r\n    // always apply greenhouse, the player should figure out when to use it\r\n    then rate *= greenhouse_rate\r\n    // get \"sun\" from plant block if transparent, else from block above\r\n    else if sun < max_sun\r\n    then\r\n        if needs_sunlight\r\n        // exponential penalty inversely proportional to light level\r\n        then rate *= (sun / max_sun)^3\r\n        // not_full_sunlight_modifier can be a boost or a penalty\r\n        rate *= not_full_sunlight_modifier\r\n    \r\n    // there used to be an \"irrigated water\" check at this point, I think it is not being used for anything\r\n    \r\n    if soil_bonus\r\n    then rate *= 1 + soil_bonus * soil_blocks_found\r\n    \r\n    return rate"},"comment":{"url":"https://api.github.com/repos/Civcraft/RealisticBiomes/issues/comments/126167307","html_url":"https://github.com/Civcraft/RealisticBiomes/issues/42#issuecomment-126167307","issue_url":"https://api.github.com/repos/Civcraft/RealisticBiomes/issues/42","id":126167307,"user":{"login":"Maxopoly","id":12138136,"avatar_url":"https://avatars.githubusercontent.com/u/12138136?v=3","gravatar_id":"","url":"https://api.github.com/users/Maxopoly","html_url":"https://github.com/Maxopoly","followers_url":"https://api.github.com/users/Maxopoly/followers","following_url":"https://api.github.com/users/Maxopoly/following{/other_user}","gists_url":"https://api.github.com/users/Maxopoly/gists{/gist_id}","starred_url":"https://api.github.com/users/Maxopoly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maxopoly/subscriptions","organizations_url":"https://api.github.com/users/Maxopoly/orgs","repos_url":"https://api.github.com/users/Maxopoly/repos","events_url":"https://api.github.com/users/Maxopoly/events{/privacy}","received_events_url":"https://api.github.com/users/Maxopoly/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T02:55:13Z","updated_at":"2015-07-30T02:55:13Z","body":"I guess so. I can just make some java code out of the pseudo code gipsy wrote out, tomorrow, if noone else wants to do it."}}