Closed jpcsupplies closed 9 years ago
I might setup the arrays for this.. balances wont survive reboots but at least i can test out all the idiosyncrocies of arrays.. although my suspicion is the balances might not be visible between clients; which really forces my hand to get the file loading to work if that is the case. If it is visible however we can get it almost to milestone functionality just without the persistence.. at least allows testing anyway
ok setup a mock load class with simulated file data, and feed it into the array and various tests and splits, and i seem to get valid data.. found a bug tho.. one of my arrays go out of bounds some how. but /bal is displaying a derived figure now not just echoing a variable.. so functionally its real.
Pretty much done here, just contemplating a way to allow admins to alter balances other than editing the bank file... might make that a separate todo its not urgent...
Once previous issues resolved; we need a way to /pay amounts between players. Staff should also be able to set a player balance, or display other players balance eg /bal bob set 1000 or /set bal bob 1000 /bal bob
also possibly a debug command to display all balances sorted by largest to smallest, (optionally ignoring players who have just the default starting balance?)