And so, hello everyone, my friend the master expressed sincere dissatisfaction that this module converts all currency into platinum, so I propose my first change related to saving coins from the player and the seller
I checked its functionality before uploading. but if you find a bug, tell me and I'll fix it/
The algorithm turned out to be a little more sophisticated than we would like
First he tries to pay with the same denomination as the item
Then he starts playing with numbers
I also moved away from float to integer
this should theoretically improve the accuracy of calculations
And so, hello everyone, my friend the master expressed sincere dissatisfaction that this module converts all currency into platinum, so I propose my first change related to saving coins from the player and the seller
I checked its functionality before uploading. but if you find a bug, tell me and I'll fix it/
The algorithm turned out to be a little more sophisticated than we would like First he tries to pay with the same denomination as the item
Then he starts playing with numbers I also moved away from float to integer this should theoretically improve the accuracy of calculations