Skip to content

Commit

Permalink
Reverted Changes
Browse files Browse the repository at this point in the history
Reverted Routes and PDF Spec changes to remove Feature 3
  • Loading branch information
Jessomadic committed Apr 3, 2024
1 parent ff35a94 commit 2c2e9db
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
1 change: 0 additions & 1 deletion src/clj/orcpub/routes.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
27 changes: 0 additions & 27 deletions src/cljc/orcpub/pdf_spec.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -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))))

Expand Down

0 comments on commit 2c2e9db

Please sign in to comment.