Teufelauto / 2D6D-Dice

Dice Roller for 2D6 Dungeon
MIT License
0 stars 0 forks source link

Room Doubles math #15

Closed Teufelauto closed 4 days ago

Teufelauto commented 1 week ago

On Room Doubles roll: When D66 secondary die skipped over a few dice, the die's value did not add to the room's Y-dimension value. The correct die value shows in scoreboard.

Perhaps adding

if value == 0: wait a small amount and try math again

This is a rare event, so should not cause undue delays.

Teufelauto commented 5 days ago

Moved math directly after greater than zero check. idk that makes a difference. Shouldn't have been able to change because of y linear locking. Making raycasts longer, since they are short enough that rocking die may affect things.

Teufelauto commented 5 days ago

Raycasts were way too short, because I didn't realize how 'wobbly' physics is in a game engine.. Making them longer.

Teufelauto commented 5 days ago

Still have problems. Will implement more robust math algorithm.

Teufelauto commented 4 days ago

Fixed by adding code to prevent dice results functions from executing after dice are nudged.