add basic infos to inventory
This commit is contained in:
@@ -229,6 +229,16 @@ export function Documentation() {
|
||||
<h1 className="doc">{docTile.displayName}</h1>
|
||||
<p><code>{docEntry.data?.statement}</code></p>
|
||||
<Markdown>{t(docEntry.data?.content, {ns: gameId})}</Markdown>
|
||||
{/* TODO: The condition below should be updated so that the section
|
||||
is displayed whenever it's non-empty. */}
|
||||
{docTile.proven && <>
|
||||
<h2>Further details</h2>
|
||||
<ul>
|
||||
{docTile.proven && <li>Proven in: <a href={`#/${gameId}/world/${docTile.world}/level/${docTile.level}`}>{docTile.world} level {docTile.level}</a></li>}
|
||||
</ul>
|
||||
</>
|
||||
}
|
||||
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ structure InventoryTile where
|
||||
hidden := false
|
||||
/-- hover text -/
|
||||
altTitle : String := default
|
||||
deriving ToJson, FromJson, Repr, Inhabited
|
||||
deriving ToJson, FromJson, Repr, Inhabited, BEq
|
||||
|
||||
def InventoryItem.toTile (item : InventoryItem) : InventoryTile := {
|
||||
name := item.name,
|
||||
|
||||
Reference in New Issue
Block a user