44 {{ splitstring .Character.GetDescription 72 " "}}
55 {{ .HealthStatus }}
66 └────────────────────────────────────────────────────────────────────────────┘
7+ {{- $showEmpty := showEmptyEquipmentSlots }}
78{{- $hasEquipment := false }}
89{{- if and (not .Equipment.Weapon.IsDisabled) (gt .Equipment.Weapon.ItemId 0) }}{{ $hasEquipment = true }}{{ end }}
910{{- if and (not .Equipment.Offhand.IsDisabled) (gt .Equipment.Offhand.ItemId 0) }}{{ $hasEquipment = true }}{{ end }}
1516{{- if and (not .Equipment.Ring.IsDisabled) (gt .Equipment.Ring.ItemId 0) }}{{ $hasEquipment = true }}{{ end }}
1617{{- if and (not .Equipment.Legs.IsDisabled) (gt .Equipment.Legs.ItemId 0) }}{{ $hasEquipment = true }}{{ end }}
1718{{- if and (not .Equipment.Feet.IsDisabled) (gt .Equipment.Feet.ItemId 0) }}{{ $hasEquipment = true }}{{ end }}
18- {{- if $hasEquipment }}
19+ {{- if not $hasEquipment }}
20+ {{- if not $showEmpty }}
21+ <ansi fg="yellow">{{ .Character.Name }}</ansi> is not wearing anything.
22+ {{- else }}
23+ ┌─ <ansi fg="black-bold">.:</ansi><ansi fg="20">Equipment</ansi> ──────────────────────────────────────────────────────────────┐
24+ {{ if or (and (not .Equipment.Weapon.IsDisabled) (gt .Equipment.Weapon.ItemId 0)) (and $showEmpty (not .Equipment.Weapon.IsDisabled)) }} <ansi fg="yellow">Weapon: </ansi>{{ if gt .Equipment.Weapon.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Weapon.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
25+ {{ end -}}
26+ {{- if or (and (not .Equipment.Offhand.IsDisabled) (gt .Equipment.Offhand.ItemId 0)) (and $showEmpty (not .Equipment.Offhand.IsDisabled)) }} <ansi fg="yellow">Offhand: </ansi>{{ if gt .Equipment.Offhand.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Offhand.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
27+ {{ end -}}
28+ {{- if or (and (not .Equipment.Head.IsDisabled) (gt .Equipment.Head.ItemId 0)) (and $showEmpty (not .Equipment.Head.IsDisabled)) }} <ansi fg="yellow">Head: </ansi>{{ if gt .Equipment.Head.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Head.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
29+ {{ end -}}
30+ {{- if or (and (not .Equipment.Neck.IsDisabled) (gt .Equipment.Neck.ItemId 0)) (and $showEmpty (not .Equipment.Neck.IsDisabled)) }} <ansi fg="yellow">Neck: </ansi>{{ if gt .Equipment.Neck.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Neck.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
31+ {{ end -}}
32+ {{- if or (and (not .Equipment.Body.IsDisabled) (gt .Equipment.Body.ItemId 0)) (and $showEmpty (not .Equipment.Body.IsDisabled)) }} <ansi fg="yellow">Body: </ansi>{{ if gt .Equipment.Body.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Body.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
33+ {{ end -}}
34+ {{- if or (and (not .Equipment.Belt.IsDisabled) (gt .Equipment.Belt.ItemId 0)) (and $showEmpty (not .Equipment.Belt.IsDisabled)) }} <ansi fg="yellow">Belt: </ansi>{{ if gt .Equipment.Belt.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Belt.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
35+ {{ end -}}
36+ {{- if or (and (not .Equipment.Gloves.IsDisabled) (gt .Equipment.Gloves.ItemId 0)) (and $showEmpty (not .Equipment.Gloves.IsDisabled)) }} <ansi fg="yellow">Gloves: </ansi>{{ if gt .Equipment.Gloves.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Gloves.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
37+ {{ end -}}
38+ {{- if or (and (not .Equipment.Ring.IsDisabled) (gt .Equipment.Ring.ItemId 0)) (and $showEmpty (not .Equipment.Ring.IsDisabled)) }} <ansi fg="yellow">Ring: </ansi>{{ if gt .Equipment.Ring.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Ring.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
39+ {{ end -}}
40+ {{- if or (and (not .Equipment.Legs.IsDisabled) (gt .Equipment.Legs.ItemId 0)) (and $showEmpty (not .Equipment.Legs.IsDisabled)) }} <ansi fg="yellow">Legs: </ansi>{{ if gt .Equipment.Legs.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Legs.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
41+ {{ end -}}
42+ {{- if or (and (not .Equipment.Feet.IsDisabled) (gt .Equipment.Feet.ItemId 0)) (and $showEmpty (not .Equipment.Feet.IsDisabled)) }} <ansi fg="yellow">Feet: </ansi>{{ if gt .Equipment.Feet.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Feet.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
43+ {{ end }} └────────────────────────────────────────────────────────────────────────────┘
44+ {{- end }}
45+ {{- else }}
46+ {{- if $showEmpty }}
47+ ┌─ <ansi fg="black-bold">.:</ansi><ansi fg="20">Equipment</ansi> ──────────────────────────────────────────────────────────────┐
48+ {{ if or (and (not .Equipment.Weapon.IsDisabled) (gt .Equipment.Weapon.ItemId 0)) (and $showEmpty (not .Equipment.Weapon.IsDisabled)) }} <ansi fg="yellow">Weapon: </ansi>{{ if gt .Equipment.Weapon.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Weapon.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
49+ {{ end -}}
50+ {{- if or (and (not .Equipment.Offhand.IsDisabled) (gt .Equipment.Offhand.ItemId 0)) (and $showEmpty (not .Equipment.Offhand.IsDisabled)) }} <ansi fg="yellow">Offhand: </ansi>{{ if gt .Equipment.Offhand.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Offhand.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
51+ {{ end -}}
52+ {{- if or (and (not .Equipment.Head.IsDisabled) (gt .Equipment.Head.ItemId 0)) (and $showEmpty (not .Equipment.Head.IsDisabled)) }} <ansi fg="yellow">Head: </ansi>{{ if gt .Equipment.Head.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Head.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
53+ {{ end -}}
54+ {{- if or (and (not .Equipment.Neck.IsDisabled) (gt .Equipment.Neck.ItemId 0)) (and $showEmpty (not .Equipment.Neck.IsDisabled)) }} <ansi fg="yellow">Neck: </ansi>{{ if gt .Equipment.Neck.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Neck.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
55+ {{ end -}}
56+ {{- if or (and (not .Equipment.Body.IsDisabled) (gt .Equipment.Body.ItemId 0)) (and $showEmpty (not .Equipment.Body.IsDisabled)) }} <ansi fg="yellow">Body: </ansi>{{ if gt .Equipment.Body.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Body.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
57+ {{ end -}}
58+ {{- if or (and (not .Equipment.Belt.IsDisabled) (gt .Equipment.Belt.ItemId 0)) (and $showEmpty (not .Equipment.Belt.IsDisabled)) }} <ansi fg="yellow">Belt: </ansi>{{ if gt .Equipment.Belt.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Belt.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
59+ {{ end -}}
60+ {{- if or (and (not .Equipment.Gloves.IsDisabled) (gt .Equipment.Gloves.ItemId 0)) (and $showEmpty (not .Equipment.Gloves.IsDisabled)) }} <ansi fg="yellow">Gloves: </ansi>{{ if gt .Equipment.Gloves.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Gloves.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
61+ {{ end -}}
62+ {{- if or (and (not .Equipment.Ring.IsDisabled) (gt .Equipment.Ring.ItemId 0)) (and $showEmpty (not .Equipment.Ring.IsDisabled)) }} <ansi fg="yellow">Ring: </ansi>{{ if gt .Equipment.Ring.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Ring.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
63+ {{ end -}}
64+ {{- if or (and (not .Equipment.Legs.IsDisabled) (gt .Equipment.Legs.ItemId 0)) (and $showEmpty (not .Equipment.Legs.IsDisabled)) }} <ansi fg="yellow">Legs: </ansi>{{ if gt .Equipment.Legs.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Legs.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
65+ {{ end -}}
66+ {{- if or (and (not .Equipment.Feet.IsDisabled) (gt .Equipment.Feet.ItemId 0)) (and $showEmpty (not .Equipment.Feet.IsDisabled)) }} <ansi fg="yellow">Feet: </ansi>{{ if gt .Equipment.Feet.ItemId 0 }}<ansi fg="itemname">{{ .Equipment.Feet.NameSimple }}</ansi>{{ else }}<ansi fg="black-bold">-nothing-</ansi>{{ end }}
67+ {{ end }} └────────────────────────────────────────────────────────────────────────────┘
68+ {{- else }}
1969 ┌─ <ansi fg="black-bold">.:</ansi><ansi fg="20">Equipment</ansi> ──────────────────────────────────────────────────────────────┐
2070{{ if and (not .Equipment.Weapon.IsDisabled) (gt .Equipment.Weapon.ItemId 0) }} <ansi fg="yellow">Weapon: </ansi><ansi fg="itemname">{{ .Equipment.Weapon.NameSimple }}</ansi>
2171{{ end -}}
3787{{ end -}}
3888{{- if and (not .Equipment.Feet.IsDisabled) (gt .Equipment.Feet.ItemId 0) }} <ansi fg="yellow">Feet: </ansi><ansi fg="itemname">{{ .Equipment.Feet.NameSimple }}</ansi>
3989{{ end }} └────────────────────────────────────────────────────────────────────────────┘
90+ {{- end }}
4091{{- end }}
4192 Carrying: {{ .CarryingStatus }} objects
0 commit comments