StatDef.forEach(stat => {
statBreakdown += `<tr>
- <th title="${stat.description}" tabindex="0">${stat.display}</th>
+ <th title="${stat.description}" tabindex="0" class="tooltip">${stat.display}</th>
<td class="${stat.id}">
${player[stat.id].toLocaleString()}
${player.stat_points ? statPointIncreaser(stat) : ''}
const html = `<div id="extra-inventory-info">
<table class="stat-breakdown">
<tr>
- <th title="The total amount of damage you can take before you pass out" tabindex="0">HP</th>
+ <th title="The total amount of damage you can take before you pass out" tabindex="0" class="tooltip">HP</th>
<td>${player.hp.toLocaleString()}/${maxHp(player.constitution, player.level).toLocaleString()}</td>
</tr>
<tr>
- <th title="Your energy level. Low vigor will cause your overall defence and damage to drop." tabindex="0">Vigor</th>
+ <th title="Your energy level. Low vigor will cause your overall defence and damage to drop." tabindex="0" class="tooltip">Vigor</th>
<td>${player.vigor.toLocaleString()}/${maxVigor(player.constitution, player.level).toLocaleString()}</td>
</tr>
<tr>
- <th title="How many experience points you need to get to your next level" tabindex="0">EXP</th>
+ <th title="How many experience points you need to get to your next level" tabindex="0" class="tooltip">EXP</th>
<td>${player.exp.toLocaleString()}/${expToLevel(player.level + 1).toLocaleString()}</td>
</tr>
<tr>
- <th title="The max defence you can have (and your true defence affected by your vigor)" tabindex="0">Defence</th>
+ <th title="The max defence you can have (and your true defence affected by your vigor)" tabindex="0" class="tooltip">Defence</th>
<td>${totalDefence(equipment, player, false).toLocaleString()} (${totalDefence(equipment, player).toLocaleString()})</td>
</tr>
<tr>
- <th title="You can use these to increase the base stats below" tabindex="0">Stat Points</th>
+ <th title="You can use these to increase the base stats below" tabindex="0" class="tooltip">Stat Points</th>
<td class="stat_points">${player.stat_points}</td>
</tr>
${statBreakdown}