{{ $level := (cond (gt .dungeon.level.n 0) (.dungeon.level.descriptive | lower) .dungeon.level.descriptive) }}
{{ if .death.cause }}🪦{{ end }}

{{ time.Format "January 2, 2006" .end_date }}

{{ .character.abbreviated }}

{{ .character.name }}, a {{ .character.alignment.descriptive | lower }} {{ .character.race.descriptive | lower }} {{ .character.gender.descriptive | lower }} {{ .character.role.descriptive }}, died {{ if gt .death.count 1 }}for the last time{{ end }} in {{ .dungeon.name }} on {{ $level }}. She was {{ .death.cause }}.

{{- $startDate := time.Format "January, 02 2006" .start_date -}} {{- $startDatetime := time.Format "2006-01-02" .start_date -}} {{/* When I first wrote the importer script, I read about the log file format on the Nethackwiki. It labeled a field as "maximum level", which I interpreted as maximum character level. Turns out it's actually maximum *dungeon* level. The script has been updated, but I won't be able to update all the imported logfiles. https://nethackwiki.com/wiki/Logfile */}} {{ with .dungeon.max_level }} {{ else }} {{ with .character.max_level }}{{ end }} {{ end }}
Began {{ .score | lang.FormatNumber 0 }} points{{ .descriptive }}Level {{ . }}{{ cond (gt .character.hp.n 0) (printf "%s / %s" .character.hp.n .character.hp.max) .character.hp.max }} hp