Widget:Calculator/Magic/Aurum: Difference between revisions

From HighSpell Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:


   document.querySelectorAll('#aurum-table tbody tr').forEach(row => {
   document.querySelectorAll('#aurum-table tbody tr').forEach(row => {
     const buyPrice = parseFloat(row.dataset.buyprice);
     const price = parseFloat(row.dataset.price);
      
      
     const minorProfit = 1500 - buyPrice - scrollPrice;
     const minorProfit = 1500 - price - scrollPrice;
     const majorProfit = 3000 - buyPrice - (scrollPrice * 3);
     const majorProfit = 3000 - price - (scrollPrice * 3);
     const totalProfit = (majorProfit * quantity); // you could switch to minor here
     const totalProfit = (majorProfit * quantity); // you could switch to minor here
      
      

Revision as of 13:57, 26 June 2025

Scroll Price:
Quantity: