Arx Libertatis Bug Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
OPEN  Bug report #1637  -  15 Mental prevents odd values of Object Knowledge
Posted Jun 29, 2022 - updated Jun 29, 2022   Shortlink: http://arx.vg/1637
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
Issue details
  • Type of issue
    Bug report
  • Status
     
    New
  • Assigned to
    Not assigned to anyone
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     Guest user
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Category
    Not determined
  • Resolution
    Not determined
  • Priority
    Not determined
  • Reproducability
    Always
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • OS
    icon_customdatatype.png Not determined
  • Architecture
    icon_customdatatype.png Not determined
  • Fixed in
    icon_customdatatype.png Not determined
Issue description
If the MC has 15 Mental, he cannot have an odd number in Object Knowledge. Investing 1 point into Object Knowledge does not change it from an even number, and investing a second point upgrades it to the next even number. I first noticed this while playing, but the same thing happens in the new character screen. Reinstallation did not fix this.
Steps to reproduce this issue
  1. Start a new game
  2. Change Mental to 15
  3. Invest points into Object Knowledge to see it either not change or increase to the next even number.

#1
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Jun 29, 17:05
The skills are actually floating point values internally and with one or all of mental, dexterity and strength being odd the fractional part of the object knowledge skill will end up at exactly .5 which ends up being rounded to the nearest even value for display.

So the actual skill value does increase by one for every point you put in it and that *does* let you identify items one identify value higher. Howerver the display just doesn't show it as e.g. 15.5 gets rounded up to 16 an 16.5 gets rounded down to 16 again.

This only happens when the skill values end up at exactly something.5 but we should still fix it to use a better rounding mode. I'm not even sure if rounding up here ever makes sense or if we should just truncate the fractional part for displaying player stats. Or perhaps we should show one fractional digit since .5 values are not uncommon.