Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private static void adjustPrice(String categoryId, String itemId, int amount, bo
if (item == null) return;

// Calculate the adjustment factor based on the amount
double factor = Math.log10(amount + 1) * 0.0001; // Logarithmic scale for adjustment
double factor = Math.log10(amount + 1) * 0.0005; // Logarithmic scale for adjustment

double newSell = item.getActualSellPrice() * (isBuying ? 1 + factor : 1 - factor); // Calculate new sell price
double newBuy = item.getActualBuyPrice() * (isBuying ? 1 + factor : 1 - factor); // Calculate new buy price
Expand Down
Loading