jaredlyon / JareBot

A revisited JS project
GNU General Public License v3.0
5 stars 1 forks source link

User balance and statistics desyncs prior to inventory sale #10

Closed jaredlyon closed 5 years ago

jaredlyon commented 5 years ago

A user's balance differs from their reported statistics due to profit margins being reported after sale rather than both after cast and after sale: image

Inventory sale resyncs the balance and statistics: image

jaredlyon commented 5 years ago

Fixed with the most recent hot fix - see above commit.

Essentially, both the cast and sell commands were set to write to the statistics storage file in order to keep user balances and reported statistics synced.