1.04b1 Off-by-one in max attacked calculation?

Moderator: Vic

Post Reply
ydmatrix2
Posts: 286
Joined: Thu Jun 11, 2020 12:55 pm

1.04b1 Off-by-one in max attacked calculation?

Post by ydmatrix2 »

I looked a bit more at the detailed combat log with the latest beta, and the short version is - I think the "max attacked" penalty is off by one, being applied one attack later than it should have been - at least going by the description in the manual.

For example, looking at the attacks on a Raider Militia:
* Only the first 3 attacks on them have no penalty. Logically, this would imply they have "max attacked" setting of 3
* However, the numbers then don't match up - attack 4 on them has a penalty of -33%, and attack 5 a penalty of -50%.
* By the manual description, only attack 6 (double the "max attacked" value) should have penalty of -50%.

Similar results for Militia Buggy being attacked:
* No penalty for first 5 attacks - implies "max attacked" of 5?
* But we get to penalty of -50% too early - by attack 9 instead of 10.

The more plausible conclusion?

If we assume that the actual "max attacked" numbers are 2 for Raider Militia and 4 for Militia Buggy, the calculated penalty matches perfectly with the actual penalty currently - only with an offset of one (penalty should start one attack earlier).


Image
Attachments
20200702..tReader.jpg
20200702..tReader.jpg (112.58 KiB) Viewed 121 times
User avatar
GodwinW
Posts: 511
Joined: Thu Jun 04, 2020 9:05 pm

RE: 1.04b1 Off-by-one in max attacked calculation?

Post by GodwinW »

Nice find.
zgrssd
Posts: 5105
Joined: Tue Jun 09, 2020 1:02 pm

RE: 1.04b1 Off-by-one in max attacked calculation?

Post by zgrssd »

"The two hardest things in programming are: Naming things, cache Invalidations and Off-by-one Errors."
Post Reply

Return to “Tech Support”