Browse code

Hide equipment weight when it is 0

This is sometimes the case for things that are not actually
items, but appear in the equipment list.

Joseph Weston authored on 19/12/2021 03:46:21
Showing 1 changed files
... ...
@@ -136,7 +136,7 @@
136 136
 (defn- weight
137 137
     [x & {:keys [no-quantity unit] :or {no-quantity false unit pounds}}]
138 138
     (let [unit (if (string? unit) #(spaced % unit) unit)]
139
-      (when (x :weight)
139
+      (when (> (x :weight) 0)
140 140
         (spaced
141 141
           (-> x :weight unit)
142 142
           (when (not no-quantity)