Bug in Landgrabbing

Chezz

Harvester
Joined
Mar 30, 2008
Messages
175
I was attacked recently and lost some land. I had 750 before the attack and the BR was:

[close] 130,000 allied Hippy attacked, distracting 122,587 hostile staff.
[close] 130,000 allied Yob attacked, disabling 144,203 hostile staff.
[close] 3,210 hostile Wheelbarrower stole 89 land. [12] tree. [74] bush. [0] flower. [3] grass. [0] uncultivated.

Distracted: 122,587 [£291,278,200] enemies distracted.
Disabled: 144,203 [£378,271,800] enemies disabled.

You gained 241 effectiveness.

The landgrab rate of wheelies is 12%, meaning that the maximum possible is 0.12*750=90. Also, each wheelie can grab 0.03 land, so 3210 is more than enough to grab 90 land. However, only 89 land was lost. Any ideas why?

PS. I'm not complaining that I have 1 more acre than I was supposed to have!:p
 

Tombi

Harvester
Joined
Mar 7, 2009
Messages
173
Location
Suffolk
I was attacked recently and lost some land. I had 750 before the attack and the BR was:

[close] 130,000 allied Hippy attacked, distracting 122,587 hostile staff.
[close] 130,000 allied Yob attacked, disabling 144,203 hostile staff.
[close] 3,210 hostile Wheelbarrower stole 89 land. [12] tree. [74] bush. [0] flower. [3] grass. [0] uncultivated.

Distracted: 122,587 [£291,278,200] enemies distracted.
Disabled: 144,203 [£378,271,800] enemies disabled.

You gained 241 effectiveness.

The landgrab rate of wheelies is 12%, meaning that the maximum possible is 0.12*750=90. Also, each wheelie can grab 0.03 land, so 3210 is more than enough to grab 90 land. However, only 89 land was lost. Any ideas why?

PS. I'm not complaining that I have 1 more acre than I was supposed to have!:p
Probably just the way it rounded out or something.
 

CFalcon

Official Helper
Joined
Dec 14, 2007
Messages
680
Location
Kent UK
Nobody can have done 3 route developments yet, so it won't be anything to do with land cap.

My guess would be the problem is when the ticker tries to decide what type of acre you are going to steal. True, you should have lost 90, but that 90 might have been 12.2 tree, 74.7 bush, 0 flower, 3.1 grass (pulling numbers out of the air here).

You'd think that the 74.7 would be rounded up. I don't know how bush is written, but in alot of scripting languages decimal numbers are always rounded down, not up. That's probably the reason, because seeing as you are mostly bush acres, any decimal on bush acres should be greater than 0.5.

Short answer: rounding error :)
 

Chezz

Harvester
Joined
Mar 30, 2008
Messages
175
Perhaps, but 3210*0.03 = 96.3 > 90 ! That's quite a large difference!
 

Martin

Garden Designer
Super Moderator
Community Operator
Joined
Dec 14, 2007
Messages
970
Location
England
I think it does it based on the individual acre counts. So it is so so so so rare you get a 'full' grab, without missing the odd 1-2 acres.
 

Azzer

Administrator
Staff member
Administrator
Joined
Dec 13, 2007
Messages
1,215
Yeah, always rounds down too, for acres and troop losses, never rounds up.
 
Top