Widget:PriceCalculator: Difference between revisions

From bg3.wiki
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.floor(item_value * price_mod);
         let price_buy = Math.round(item_value * price_mod);
         let price_sell = Math.floor(item_value / price_mod);
         let price_sell = Math.round(item_value / price_mod);
         output.textContent = '';
         output.textContent = '';
         let table = document.createElement('table');
         let table = document.createElement('table');

Latest revision as of 22:37, 22 November 2023