From 2c2e9db744d71ed183fa52921eb88c50a5543b1d Mon Sep 17 00:00:00 2001 From: Jessomadic Date: Tue, 2 Apr 2024 21:31:04 -0400 Subject: [PATCH] Reverted Changes Reverted Routes and PDF Spec changes to remove Feature 3 --- src/clj/orcpub/routes.clj | 1 - src/cljc/orcpub/pdf_spec.cljc | 27 --------------------------- 2 files changed, 28 deletions(-) diff --git a/src/clj/orcpub/routes.clj b/src/clj/orcpub/routes.clj index 55f80278..7606e9ac 100644 --- a/src/clj/orcpub/routes.clj +++ b/src/clj/orcpub/routes.clj @@ -402,7 +402,6 @@ :flaws 8 :features-and-traits 8 :features-and-traits-2 8 - :features-and-traits-3 8 :attacks-and-spellcasting 8 :backstory 8 :other-profs 8 diff --git a/src/cljc/orcpub/pdf_spec.cljc b/src/cljc/orcpub/pdf_spec.cljc index 4a25fb22..9aa5d0a1 100644 --- a/src/cljc/orcpub/pdf_spec.cljc +++ b/src/cljc/orcpub/pdf_spec.cljc @@ -145,33 +145,6 @@ (actions-string "-----------Other Traits------------" traits)])) traits-str))})) -(defn traits-fields [built-char] - (let [traits-by-type (group-by :type (es/entity-val built-char :traits)) - bonus-actions (sort-by :name (concat (es/entity-val built-char :bonus-actions) - (traits-by-type :b-action))) - actions (sort-by :name (concat (es/entity-val built-char :actions) - (traits-by-type :action))) - reactions (sort-by :name (concat (es/entity-val built-char :reactions) - (traits-by-type :reaction))) - traits (sort-by :name (traits-by-type nil)) - traits-str (traits-string traits) - actions? (or (seq bonus-actions) - (seq actions) - (seq reactions) - (seq traits)) - header (features-and-traits-header built-char) - ] - {:features-and-traits-3 (str header "\n\n" - (if actions? - (s/join - "\n\n" - (remove nil? - [(actions-string "----------Bonus Actions----------" bonus-actions) - (actions-string "---------------Actions--------------" actions) - (actions-string "-------------Reactions-------------" reactions) - (actions-string "-----------Other Traits------------" traits)])) - traits-str))})) - (defn attack-string [attack] (str "- " (trait-string (:name attack) (disp5e/attack-description attack))))