Jump to content

[0.27] Short Range Accuracy Distance Variable Doesn't Work


kabill

Recommended Posts

I reported this a while back but have now been able to confirm it using the debugger. (I'd link the original thread, but I can't find it).

The problematic variable is this one in config:

<ShortRangeHitBonusMinDistance></ShortRangeHitBonusMinDistance>

By default, it's 5. But changing it doesn't make any difference. For example, I changed it to 12 and this was reflected in the displayed to-hit scores, but not in the actual game's calculation of the shot. From the debugger:

[1312] short range hit bonus (7.639) = (5 - dist. to target (4.472) + 1) * short range hit bonus per tile (5)

The number in red, from what I can tell, is the short range distance value, which has retained it's vanilla value. Some extensive testing previously implied that this was the case empirically (hit chances were much lower than they should have been, and when up when I reverted the changes).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...