[b34] Inconsistent rounding in UI

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
lukep
Sher'Tul Godslayer
Posts: 1712
Joined: Mon Mar 14, 2011 10:32 am
Location: Canada

[b34] Inconsistent rounding in UI

#1 Post by lukep »

I hit a snake for "36" (actually 35.16) blight damage, when it had "35" HP; it survived with 1 hp left.
Some of my tools for helping make talents:
Melee Talent Creator
Annotated Talent Code (incomplete)

tiger_eye
Perspiring Physicist
Posts: 889
Joined: Thu Feb 17, 2011 5:20 am

Re: [b34] Inconsistent rounding in UI

#2 Post by tiger_eye »

I'd like to add another inconsistency. Some talents still don't round values to integers that should be integers (such as duration, range, radius, etc.). For example, the displayed duration for "Perfect Strikes" can be different depending on whether I compile ToME myself or use a pre-compiled version. The effect remained the same, though, which means the displayed duration was incorrect for one of the versions (the pre-compiled executable, iirc).

I think it would require some grunt-work to determine which talents (other than "Perfect Strikes") use non-integer integers, and I for one don't feel like volunteering to search for 'em :wink: . Plus, somebody would have to decide how to deal with 'em: floor, ceil, or use getTalentLevelRaw.

Post Reply