Widget:PriceCalculator: Difference between revisions
Jump to navigation
Jump to search
(Double attitude/persuasion strength) |
(Use math.round) |
||
Line 63: | Line 63: | ||
let price_mod = Math.max(1.0, 2.5 - persuasion_mod - attitude - difficulty); | let price_mod = Math.max(1.0, 2.5 - persuasion_mod - attitude - difficulty); | ||
let price_buy = Math. | let price_buy = Math.round(item_value * price_mod); | ||
let price_sell = Math. | let price_sell = Math.round(item_value / price_mod); | ||
output.textContent = ''; | output.textContent = ''; | ||
let table = document.createElement('table'); | let table = document.createElement('table'); |