price = price_total.reduce((a, b) => a + b, 0);
if (server === "na" || server === "oce") {
price = price * 1.2;
currency = "USD";
currency_s = "$";
if (current_tier >= 6 || desired_tier >= 6) {
price = price * 1.1;
} else {
price = price * 1.2;
}
} else {
currency = "EUR";
currency_s = "€";
}
...
price = price_total.reduce((a, b) => a + b, 0);
if (server === "na" || server === "oce") {
price = price * 1.2; // 100 * 1.2 = 120
currency = "USD";
currency_s = "$";
if (current_tier >= 6 || desired_tier >= 6) {
price = price * 1.1;
} else {
price = price * 1.2; // 120 * 1.2 = 144
}
} else {
currency = "EUR";
currency_s = "€";
}
...