Widget:PriceCalculator: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(logging for deubg)
(bring me the REAL value)
Line 52: Line 52:


     function do_calculation() {
     function do_calculation() {
         let get_value = (selector) => document.querySelector(selector).getAttribute("value");
         let get_value = (selector) => document.querySelector(selector).value;
         let item_value = sanitize(get_value('#item-value'));
         let item_value = sanitize(get_value('#item-value'));
         let persuasion_mod = sanitize(get_value('#persuasion-mod')) * 0.05;
         let persuasion_mod = sanitize(get_value('#persuasion-mod')) * 0.05;

Revision as of 18:00, 4 October 2023