Skip to content

Commit

Permalink
Merge pull request #590 from ryceg:Fix-underworshipped-deities-not-re…
Browse files Browse the repository at this point in the history
…ndering-percentage-properly

Fix underworshipped deities not rendering percentage properly
  • Loading branch information
ryceg authored Apr 25, 2021
2 parents ba8a166 + 825e766 commit dd9f83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Religion/Components/Followers.twee
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:: Followers [nobr]
<<set _religionPercentageContent to lib.getPantheonPercentages($town, State.metadata.get('pantheon'))[$currentPassage.key].toFixed(2)>>
<<set _religionPercentageContent to lib.getAllPantheonPercentages($town, State.metadata.get('pantheon'))[$currentPassage.key].toFixed(2)>>
<h2>Followers</h2>
<<set _followers to Object.fromEntries(Object.entries($npcs).filter(([key, npc]) => npc.religion.deity === $currentPassage.name))>>
<<include "Maxim">>
Expand Down

0 comments on commit dd9f83c

Please sign in to comment.