Widget:Calculator/Magic/Aurum: Difference between revisions
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 | const price = parseFloat(row.dataset.price); | ||
const minorProfit = 1500 - | const minorProfit = 1500 - price - scrollPrice; | ||
const majorProfit = 3000 - | 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 | ||