Grid Sage Forums

Grid Sage Forums

  • November 23, 2024, 10:31:17 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

LINKS: Website | Steam | Wiki

Author Topic: Melee analysis suite bonus.  (Read 992 times)

Kalkkis

  • Derelict
  • **
  • Wiki Contributor Bug Hunter Weekly Seed Participant
  • Posts: 35
    • View Profile
Melee analysis suite bonus.
« on: October 02, 2016, 10:32:44 PM »

Melee analysis suite gives 500% bonus instead of 5%. Also hit chance is capped at 94% instead of 95%.
Logged

Kyzrati

  • Administrator
  • True Cogmind
  • *****
  • Posts: 4477
    • View Profile
    • Cogmind
Re: Melee analysis suite bonus.
« Reply #1 on: October 02, 2016, 10:54:58 PM »

Urg, and that's another reason I hate using floats xD

Accuracy started out with float-based calculations many years ago and I simply kept using that same system, despite it becoming increasingly complex with lots of new components. Most of those new components are integer-based (as per my normal tendency towards "super simple math" :P), and several times now I've forgotten to convert a new feature. That one's been in there forever, though! Probably because they are underused... Okay, no more freebie modified melee attacks! 5 was supposed to be 0.05. Thanks and fixed.

Regarding the cap, it's actually set at 95%, but because it's handled as a decimal the final value might come out to be something like 0.949999. All display values are integers, however, which are simply truncated rather than rounded. (The manual makes mention of this.) In practice it's more accurate than that, because a decimal value is used for your hit attempt.
Logged
Josh Ge, Developer - Dev Blog | @GridSageGames | Patreon