20%
(0% drop rate)
@@ -214,6 +247,12 @@
Experience Penalty
refresh_calculation();
function refresh_calculation()
{
+ const penalty_pob = [
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0,
+ 1.0];
const penalty_poewiki = [
1.0 / 1.0650,
1.0 / 1.1150,
@@ -237,6 +276,12 @@
Experience Penalty
const playerLevel = Math.max(1, Math.min(99, parseInt(playerLevelElement.value) || 1));
const areaLevel = Math.max(1, Math.min(99, parseInt(areaLevelElement.value) || 1));
+ calculate_xp_and_set_dom(
+ playerLevel, areaLevel, penalty_pob,
+ document.getElementById("penaltyPoB"),
+ document.getElementById("penaltyPoBRate"),
+ document.getElementById("penaltyPoBExample"));
+
calculate_xp_and_set_dom(
playerLevel, areaLevel, penalty_poewiki,
document.getElementById("penaltyPoEWiki"),
@@ -286,7 +331,7 @@
Experience Penalty
element.innerHTML =
(1.0 - xpMultiplier).toLocaleString(undefined, { style: 'percent', minimumFractionDigits: 2 });
elementrate.innerHTML = "(" + xpMultiplier.toLocaleString(undefined, { style: 'percent', minimumFractionDigits: 2 }) + " XP rate)";
- elementexample.innerHTML = "a 10000xp rhoa gives you " + parseInt(10000 * xpMultiplier) + "xp";
+ elementexample.innerHTML = parseInt(10000 * xpMultiplier) + "xp";
}
function calculate_xp_actual(playerLevel, areaLevel, penalty)