aikaterna / gobcog

RPG Adventure Cog for Red v3
44 stars 69 forks source link

[Command Bug] Insight incorrect rounding #392

Closed Dark-lame closed 1 year ago

Dark-lame commented 2 years ago

Insight rounds up on HP when it doesn't need to be rounded.

Complete these first

Command name

insight

Expected Behavior

When a user does insight, it should accurately give information based on the roll. Resulting insight HP should be rounded up when necessary in accordance with the mob HP decimal.

Current Behavior

adventure version 3.5.3 The insight command rounded up unnecessarily.
image Resulting mob HP: image The mob HP's are 1 less than the insighted HP's.

Possible Solution

Possible solution could be to check where the decimals are coming from? Could be slight miscalculations pertaining to modifiers and past raid results. Or something got cast somewhere incorrectly.

Steps to Reproduce

  1. Change to hardmode and psychic if not already
  2. Keep doing insight command until rounding error is found

Context (Environment)

Has not resulted in bot crash or error logs, so this would be a QoL fix. However this is a very minor one with it only being a 1 hp difference, so not at all high priority.

Detailed Description

Possible Implementation