Post:Smelting bug rears its ugly head at me - 11/19/2015 - 20:11
Jump to navigation
Jump to search
Re: Smelting bug rears its ugly head at me · on 11/19/2015 08:11 PM CST | 2404 |
---|---|
This appears to be a result of the algorithm I implemented and the integer-truncation that occurs at each step. Damn lack of floating point is always making my life difficult!
The [smelting] algorithm grabs the first metal in the crucible and averages the quality with the second. This quality is an integer, and so rounds down. It then grabs the next metal and calculates the averages between them. And so on, losing a bit of precision with each operation. The end result is the decimals all drop, so quality is lower on average than if we could do decimal math or if I was able to plug it all into an array and do the algorithm on the array. While a bit inconvenient for folks, I can't see myself having time to improve this right now. Sorry for the bad news... I've grown much better at anticipating these sorts of issues and accounting for them up front. | |
This message was originally posted in Lore \ Bugs - Lore, by DR-KODIUS on the play.net forums. |