Brotato

Brotato

Not enough ratings
Fruit Compressor
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
9.167 KB
30 Nov @ 8:31pm
18 Dec @ 8:18pm
5 Change Notes ( view )

Subscribe to download
Fruit Compressor

Description
Compresses fruit in order to reduce lag in the late game. The way it works:
- should the fruit spawn too fast for the game to handle, slow down their spawn rate
- in exchange, any On Consume effect is respectively magnified (heal by fruit, Farmer's harvesting, Spicy Sauce damage, Chubby's explosions)
- arbitrary cap at a single fruit every 2 seconds

So if a garden was to produce 4 fruit a second normally, with this mod gardens will produce a fruit worth 8 fruits every 2 seconds. This allows gardens to truly produce what they are supposed to, without causing lag. Vanilla gardens have a soft cap explained below.

Warning: Negative effects are also magnified. Your Druid run may end if you have high enough consumable heal.

Nerd talk below:
There is actually a limit how fast gardens can spawn fruit. The speed, or rather cooldown in between spawns is bound by how many times a second the game does processing. To give the numbers:
• each second the game may process the game loop up to 60 times (or the game runs at 60 ticks per second)
• gardens' default cooldown is defined as 900 ticks, being 60 ticks times 15 seconds
• the cooldown is also influenced by the gardens' animation speed, in a similar way melee weapons can't hit as fast as ranged do shoot
• theoretically the limit is 60 fruit per second per garden, or the cooldown of 1, but from tests, at attack speed of 9999999999999% the cooldown until next fruit was still somewhere between 1.7 and 2.5 (due to - you guessed it - the animation speed). Quite crazy, given that this much attack speed should spawn over 11 billion fruits a second
• in that test harvesting jumped from 23 to 453, giving 430 fruit consumed from a single garden over a 60 second round
• due to the vague influence of the animation speed, that gives us 7.16 fruit a second
• or a fruit spawned every 8.37 ticks, and that is essentially the soft cap on how many fruit you can get
8 Comments
Amon Grabmore 19 Dec @ 3:45am 
btw its funny how loud and demon lost their place ast best endless Brtotaos (farmer maybe) to druid because pearl ist super brocken on him^^
Amon Grabmore 19 Dec @ 3:31am 
yes but its not a problem so long you know what you are doning i go for no heal frome fruit asap anyway i heal over crits and material pick up most of the time.
Thanks for the mod men.
Mo  [author] 18 Dec @ 8:16pm 
Finally had time to look into it. I completely overlooked that poisoned fruit used a different effect (consumable_damage_effect) than regular. There was nothing negative about it, but rather outright not working. Well it is fixed now and a patch should be pushed to you soon.

Fair warning - unless you have negative consumable heal, compressed poisoned fruit can and will kill you
bnbqq8 18 Dec @ 9:07am 
I think its negative to druid. When I turn this MOD off, I gain 10x more Luck per wave than when i turn it on, in successive waves. I think you should warn this neg feature in your description, since many of us are druid players. It almost kill my godroll start QAQ
Amon Grabmore 15 Dec @ 1:34am 
yes i would do it like that, because late game you have to play him on at least -5 fruit heal anyway and then they should do 0 damage when you make them scale. because they do 0 on thier own.
Mo  [author] 14 Dec @ 10:48pm 
I'll look into druid more. I thought I made it kind of work, but his growth code is kind of seperate from the rest (I am guessing since he also produces bad fruit). Speaking of which, I want to hear your opinions: do I make bad fruit scale as well, potentially one shoting you?
Amon Grabmore 14 Dec @ 8:06am 
hey men can you make it work with druid i tested befor the mod i got 1900 luck per round with mod 400 luck per round. I like the mod a lot
科比布莱恩特 8 Dec @ 4:38am 
好用吗