lower deposit fee by 40%, should be more accurate according to nelethor

This commit is contained in:
gwetchen
2025-06-25 16:48:02 +02:00
parent 2b73866943
commit 697726e3b7
+1
View File
@@ -365,6 +365,7 @@ function update_item_configuration()
local duration_factor = UIDropDownMenu_GetSelectedValue(duration_dropdown) / 120
local stack_size, stack_count = selected_item.max_charges and 1 or stack_size_slider:GetValue(), stack_count_slider:GetValue()
local amount = floor(selected_item.unit_vendor_price * deposit_factor * stack_size) * stack_count * duration_factor
amount = floor(amount * 0.6) --according to nelethor this should be more accurate, would like to get accurate fee eventually
deposit:SetText('Deposit: ' .. money.to_string(amount, nil, nil, aux.color.text.enabled))
end