deposit bugfix

This commit is contained in:
Manuel Simon Hirsig
2017-03-18 13:58:34 +01:00
parent 1829ce6374
commit c086437295
2 changed files with 28 additions and 24 deletions
+1 -1
View File
@@ -326,7 +326,7 @@ function update_item_configuration()
stack_count_slider.editbox:SetNumber(stack_count_slider:GetValue())
do
local deposit_factor = UnitFactionGroup'npc' and .25 or .05
local deposit_factor = UnitFactionGroup'npc' and .05 or .25
local stack_size, stack_count = stack_size_slider:GetValue(), stack_count_slider:GetValue()
local amount = floor(selected_item.unit_vendor_price * deposit_factor * (selected_item.max_charges and 1 or stack_size)) * stack_count * UIDropDownMenu_GetSelectedValue(duration_dropdown) / 120
deposit:SetText('Deposit: ' .. money.to_string(amount, nil, nil, nil, color.text.enabled))