MichalD96 / Perico-heist-goods-counter

MIT License
8 stars 3 forks source link

Weed +Painting solution #11

Open TakatosLeofil opened 1 year ago

TakatosLeofil commented 1 year ago

when you have 2 weed and 1 painting I found out you can take 9 clicks of the first stack of weed then take 4 clicks of the second weed then you can take the painting and then you have a 100% bag

MichalD96 commented 1 year ago

That's exactly what my counter says: image

Every click picks up different amount of weed. Here are pickup steps in %:

[11.111, 22.222, 31.111, 37.778, 42.222, 51.111, 64.444, 77.778, 95.556, 100]

And here amount of weed (in game) units that you pick up on each click:

[75, 75, 60, 45, 30, 60, 90, 90, 120, 30]

let's sum picked units in these two scenarios: 10 clicks + 3 clicks = [75, 75, 60, 45, 30, 60, 90, 90, 120, 30, 75, 75, 60] = 885 units 9 clicks + 4 clicks = [75, 75, 60, 45, 30, 60, 90, 90, 120, 75, 75, 60, 45] = 900 units

Bag capacity is 1800 units, so 9 + 4 clicks is exactly 50% of the bag. But game uses some rounding, and anyway that 885 units are rounded up to 50% of the bag. This rounding works weird sometimes, and that's why, sometimes you can pick up more than your theoretical bag capacity. The more targets you mix in your bag (gold, coke, weed, cash) the more inaccurate it gets.

I have never considered mixing stacks on this way, but my counter seems to be still pretty accurate.

TakatosLeofil commented 1 year ago

I know that you website say 13 clicks too, but when I take 10 click of weed (full stack) then I go and take 3 clicks of the second stack and then I take the painting as you said it will only fill up to 1785/1800 and for me it did not round up to 100% so I did not get the elite chalange...