aboutsummaryrefslogtreecommitdiff
path: root/src/common/Logging/AppenderConsole.h
diff options
context:
space:
mode:
authorpete318 <pete318@hotmail.com>2015-10-02 03:20:42 +0100
committerpete318 <pete318@hotmail.com>2015-12-14 19:54:58 +0100
commit0ac442f19fcfa8c39775c5ae06bba8f3bcbd0407 (patch)
treeca323a2a4cab2a668e4ca3763138752d0d7877e4 /src/common/Logging/AppenderConsole.h
parent54424aff3051bdc2a05d44cbd56adf6f47b98229 (diff)
Improved Auction house deposit handling.
Including the weird quirks. Changes: * Deposit caculated according to same rule as client. (detailed below). Should always match client deposit now * Deposit for multiple auctions now only collected once. Deferred calculation of deposit until all auctions listed. Deposit calculation is as follows: Base deposit calculation = MSV x 15/75% (depending on AH). However this is not rounded. Case to int is used (so always round down) The remainder is held in a float. The base is then multiplied by number of items, and the time multiplier (x2 for 24 hour, x4 for 48 hour) The nearest (no of items or lower) no of items when multiplied by the remainder that creates a whole number is then multiplied by the time multiplier (x1/x2/x4) and then added to deposit. Example: Item sell price 1s25. Deposit 18.75c (15% of 1s25). So base deposit = 18, remainder 0.75. Time 24h (x2) Item count 1 = 36c. Remainder = 0.75 (n) Min = 1s. Deposit 1s Item sell price 1s25. Deposit 18.75c (15% of 1s25). So base deposit = 18, remainder 0.75. Time 24h (x2) Item count 2 = 72c. Remainder = 1.50 (n) Min = 1s. Deposit 1s Item sell price 1s25. Deposit 18.75c (15% of 1s25). So base deposit = 18, remainder 0.75. Time 24h (x2) Item count 3 = 108c. Remainder = 2.25 (n) Min = 1s. Deposit 1s08c Item sell price 1s25. Deposit 18.75c (15% of 1s25). So base deposit = 18, remainder 0.75. Time 24h (x2) Item count 4 = 144c. Remainder = 3.00 (n) Min = 1s. Deposit 1s50c (144c + (3c * 2)) Horrible kludge, to re-create a very weird deposit method. Closes #15674 (PR) Closes #15643 (Issue)
Diffstat (limited to 'src/common/Logging/AppenderConsole.h')
0 files changed, 0 insertions, 0 deletions