<% if (typeof embedded === 'undefined' || !embedded) { %>

<%= typeof panelTitle !== 'undefined' && panelTitle ? panelTitle : 'Inventaire' %>

<% if (!playerInventory.isEmpty) { %> <%= playerInventory.totalItems %> objet(s) <% } %>
<% } else if (!playerInventory.isEmpty) { %>
<%= playerInventory.totalItems %> objet(s)
<% } %> <% if (!db.hasInventoryTable()) { %>

Table inventaire absente. Redémarrez le serveur Hytale pour appliquer la migration personnages.

<% } else if (playerInventory.isEmpty) { %>

Inventaire vide. Les objets sont enregistrés à la déconnexion du personnage en jeu.

<% } else { %>
<% playerInventory.sections.forEach(function(section) { %>

<%= section.label %>

<%= section.used %> / <%= section.capacity %>
<% section.cells.forEach(function(item) { %> <% if (item) { %>
<%= item.name %> <%= item.name %> <% if (item.quantity > 1) { %> ×<%= item.quantity %> <% } %> <% if (item.durability) { %> <%= item.durability %> <% } %>
<% } else { %> <% } %> <% }); %>
<% }); %>
Liste détaillée <% playerInventory.sections.forEach(function(section) { %> <% section.cells.forEach(function(item, index) { %> <% if (item) { %> <% } %> <% }); %> <% }); %>
Section Emplacement Objet Qté Durabilité
<%= section.label %> <%= index + 1 %>
<%= item.name %> <%= item.itemId %>
<%= item.quantity %> <%= item.durability || '—' %>
<% } %>